View Single Post
Old 24-03-08, 06:09 PM   #4 (permalink)
writetokaruna@yahoo.com
Member
 
Join Date: Mar 2008
Posts: 32
Thanks: 0
Thanked 1 Times in 1 Posts
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 1 writetokaruna@yahoo.com is on a distinguished road
Re: JSP and Servlets Question?

Hi Radhika,
U can pass parameters from jsp to servlet or servlet to jsp using hidden fields concept.
For example,
Sample.jsp
---------


Sample.java(servlet file)
-----------------------

String msg=request.getParameter("msg");
out.println(msg);

This is the one way of passing value from jsp to servlet.

If it is wrong please correct me.


Regards,
R.P.Karunakaran.

Last edited by writetokaruna@yahoo.com; 24-03-08 at 06:16 PM. Reason: Jsp code is not displaying
writetokaruna@yahoo.com is offline   Reply With Quote