"Woodson, Brandon (AC-Atlanta)" wrote:
>
> Is there any way a jsp can read in a set of variables (form the query
> string)
> from a non-jsp?
>
> What is the best way to handle this situation:
>
> A non-jsp page (nonjsp.html from a different server) submits to a jsp via
> the query string  (?variable1=1)
>
> How/Can the jsp retrieve this info for its own use?

You can either use <jsp:setProperty> to set JavaBean properties to the
values of any matching HTTP parameters, or you can use a scriptlet to
access them using the request.getParameter method.

See the JSP and Servlet specs for details.

> (Essentially, I want to populate a new form with this information, with as
> little Javascript as possible.)

I assume it's a typo. You do mean as little Java as possible, not JavaScript,
right?

If you use <jsp:setProperty> to capture the parameters you can use
<jsp:getProperty> to generate the values in your form. No code needed
at all.

--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to