John,
If you were using a hardcoded string in your JSP for the userid, and you
simply replaced that string
with a <%= request.getParameter("user") %> the JSP should work exactly as
before, except that the username
can now be set in the HREF just as you have indicated:
http://webserver/jsp/MyJsp.jsp?user=john
What are you doing in the JSP to make use of the user parameter? Or is
there more to this story?
-AMT
> > -----Original Message-----
> > From: John Keyes [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 01, 1999 5:17 PM
> > To: [EMAIL PROTECTED]
> > Subject: JSP URL's
> >
> > Hi,
> >
> > I have a JSP that is executed directly via a URL. For testing purposes
> > I hard-coded the user-id. I now want to pass the user-id into the JSP.
> > I thought I could do this via the URL:
> > http://webserver/jsp/MyJsp.jsp&user=john
> > but I cannot, I get a 404 Not Found (which is understandable).
> >
> > Is there anyway that I can pass this user into the JSP directly or do I
> > have to write a launch servlet that will pass the data into the
> JSP using
> > the Session ?
> >
> > Thanks,
> > -John K
> >
> >
> ==========================================================================
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > FAQs on JSP can be found at:
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html