First..when you get in the JSP page, do a
System.out.println(request.getParameter("userName")); and make sure you are
seeing it. If you are not, make sure you check the spelling as upper/lower
case makes a difference.
> -----Original Message-----
> From: Janavee Boda [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 07, 2001 12:40 PM
> To: [EMAIL PROTECTED]
> Subject: Problem wih servlets and JSP
>
>
> Hi all,
>
> Step1: I have a login.html page which sends info'(userName
> and password) to
> verification.jsp page. Here the info' is verified and if the
> info is correct
> then it goes to main.jsp.
>
> Step2: In this main.jsp page i want to access the userName
> and send it to
> the servlet which calls the method of class XXX by passing
> this userName.
>
> I'm able to do till Step1. In Step2, i'm accessing userName through
> request.getParameter("userName") and i have to pass it to the
> servlet. Here
> i'm so confused, how i can i pass the userName to
> methodX(userName) of class XXX, which does some database
> operation based on
> the userName.
>
> What i've done is accessing userName through
> HttpServletRequest object in
> the servlet class and calling the methodX(userName) of XXX.
> But userName was
> not sent. null went into the method. I'm so confused.
>
> I appreciate your help.
>
> Thanks,
> Janavee.
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==============================================================
> =============
> 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://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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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