I have a servlet that can generate JavaScript arrays. I want to
combine those arrays with html/javascript for final presentation.
One of the catches is that the servlet uses an HttpSession to
keep track of what has happened.

So, say I have an html file containing this (less headers):

<script language="javascript">
booktitle = new Array("title1","title2","title3","title4");
for(var k=0;k<title.length;++k) document.write("<p>"+title[k]);
</script>

So, I want the servlet to generate the second line of the script.
The one defining the content of the booktitle array.

I was thinking of using server-side includes (the old-fashion
<servlet> tag), but that doesn't seem to really be part of tomcat
anymore. So, I looked at using <jsp:include> but it has problems
with cookies and session management. I don't really want to
generate the whole thing from a template, but I'm not able to
think if anyway else to do this.

Can someone give me a suggestion. I'm stuck.

Thanks.

Frank



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to