Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing a value from servlet to jsp

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
US
Hello All,

Let say I want to pass the DOB of an employee from a servlet to a jsp page. In the servlet I have a query like this:

sql = "Select DOB from Emp where name = " + request.getParameter("name")

I got DOB = '12/1/1970'

Now I want to display this DOB in my jsp page, how do I do that?

Thanks.

 
Thank you. I just set up the session object and it work just fine. Now, just in case my boss doesn't like session object, what else can I do?
 
Thanks for your help. How do i do that? I'm Java newbie.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top