|
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 <%! String msg="Hi"; %>>
---------
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.
|