Shouldn´t u be using
request.setAttribute("Username",value) and
request.getAttribute("Username")
?

are u using RequestDispatcher??
could u send a piece of code to better see it?

U see, I´m onto that too ad i have doubts myself.

Rafael
-----Original Message-----
From: Janavee Boda [mailto:[EMAIL PROTECTED]]
Sent: Miércoles, 07 de Febrero de 2001 02:40 p.m.
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

Reply via email to