Joe,

Actually I did intend to say "javascript". I mispoke myself in the body though (saying 
JSP instead of javascript in the last sentence... ;)), which confused the issue.

What I meant to ask it how one can use jsp:request.getParameter() values in 
javascript, which I think has been answered.

Thanks for the help--this is a great list!

Cheers,
--
Dali
---------------------------

On Mon, 03 December 2001, Joe Cheng wrote:

>
> I don't know if you mean to say "javascript" in your subject line.  But if
> you are looking to use request parameters in your JavaScript (which is
> client-side) then you can either do what Tim suggested or use JavaScript to
> retrieve the parameters directly.
>
> You'll need this JS file:
> http://www.joncheng.com/js/request.js
>
> Then you can do this in your HTML:
>
> <script src="request.js"></script>
> <script>
> var foo = request.getParameter("foo");
> </script>
>
> There's not much advantage to doing it this way, other than, I think it's
> neat. :)  And also it's possible to write very simple quasi-dynamic web
> pages that do not need any sort of web application server to run.
>
> -jmc

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to