Where is the action j_security_check implemented? Is the form submitting to a servlet? How is the 2nd jsp getting displayed? Is the request getting dispatched to the 2nd jsp? Request object is specific to a request. What is likely happening is that the form is getting submitted & its request is being processed (perhaps in a servlet) & the servlet is displaying the next jsp. The 2nd jsp will not have access to the request object of the 1st jsp unless you forward the request & response objects via the RequestDispatcher. If you are using a servlet you can do the following: getServletContext().getRequestDispatcher(urlForJSP).forward(request, response)

Ever Existing, Ever Conscious, Ever-new Bliss

Sheldon Plankton
Ranch Hand

Joined: Feb 11, 2004
Posts: 33

posted Feb 18, 2004 12:37:00

0

Where is the action j_security_check implemented? Is the form submitting to a servlet? How is the 2nd jsp getting displayed? Is the request getting dispatched to the 2nd jsp? I don't know ... I am using Tomcat and the J2EE1.4 Application Server I used the "deploytool" to make a WAR file. I tried to ape the example "FormBasedAuthenication" from the J2EE 1.4 Tutorial to create my own formbased logon screen. The example in the Sun tutorial displays the logged on user's username like so ...

No. Basically, uploading files and using getParameter are incompatible. To upload a file you need to use a multi-part form, which precludes the use of getParameter. You need to parse the input yourself or use a third party package (like com.oreilly.servlet) that does it for you.

Sheldon Plankton
Ranch Hand

Joined: Feb 11, 2004
Posts: 33

posted Feb 18, 2004 17:01:00

0

Ah man! have you ever used Jakarta's FileUpLoad? I guess that's what I'll try next. Thanks for the info. You jut saved me a lot of wasted time and fustration.