• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

JAVA and HTML Include Question

santana9

Banned
Hi, I want to create a calendar that is an editable table that the user can add events to with their content managment tool.

Basically, I want to know how can I call an include page say if the current month is April display april.htm.

Any suggestions would be of assistance. Thanks in advance.

 
I am not sure why you mentioned JAVA in the title, but an ASP version of this is very simple:
<Some code
.
.
.
>
<%=server.execute(month(date()) & ".asp")%>

<Some more code if needed
.
.
.
>
Notice, that I have named the file .asp not .htm because including .htm could create a problem of headers being read twice into the buffer, plus, the server does not process .htm - it simply passes it streight to the browser for processing. Any technology-specific file extension would first be processed by the server-side application associated with the mime type in question.
 
Back
Top