JAVA and HTML Include Question

santana9

Banned
Jan 19, 2003
154
0
0
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.

 

GilletteCat

Member
Dec 28, 2001
181
0
0
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.