why don't u try HTML meta tag for refresh after say, every 5 sec.?
----------
From: Cogley, Jonathan[SMTP:[EMAIL PROTECTED]]
Reply To: A mailing list about Java Server Pages specification and reference
Sent: Wednesday, April 12, 2000 5:38 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP and Javascript
Hi,
Try using the JSP expression syntax ... <%= %>
e.g.
<SCRIPT LANGUAGE="JavaScript">
document.location = '<%= response.encodeURL("yourURLwithParamsHere!") %>';
</SCRIPT>
You could probably even add the params you want afterwards ... just use
the JavaScript escape() function to watch out for bad characters.
e.g.
<SCRIPT LANGUAGE="JavaScript">
document.location = '<%= response.encodeURL("yourURL") %>&myParam=' +
escape(document.myParam.value);
</SCRIPT>
I don't actually know but I assume the encodeURL adds some Session/URL token
to the URL
that you need to maintain session ... ?
Hope that helps!
Jonathan
-----Original Message-----
From: Joachim Schaaf [mailto:[EMAIL PROTECTED]]
Sent: 11 April, 2000 1:07 PM
To: [EMAIL PROTECTED]
Subject: JSP and Javascript
Hi,
is there an intelligent way to combine JSP and Javascript? I want to use
some
entry fields (choices etc.) to specify search parameters in the JSP page;
the
question is: how do I get the values? I have tried to reload the page
with onChange and appended "?param=value", but then I loose my session,
because
I can not use response.encodeUrl from Javascript.
Any ideas?
Joachim
--
IoS - Gesellschaft fuer innovative Softwareentwicklung mbH
Web: http://IoS.PZwo.de/, http://IoS.PZwo.de/team/js/
Tel/Fax: +49-2234-983590/986433, Mobile: +49-170-4861253
Email: [EMAIL PROTECTED] - PGP mails welcome.
Linux-Kontor: http://www.Linux-Kontor.de/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets