Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Need Help in JSP

  Asked By: Lourdes    Date: Aug 10    Category: Java    Views: 624
  

How can i send and receive parameters through JSP pages?
PLease help me .

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Jackson Bouchard     Answered On: Aug 10

you can use following to send  & receive  value from/to
Jsp pages:
to get values
<%
String var= request.getParameter("name");
%>
to Set values
<%
request.setParameter("name","value");
%>

 
Answer #2    Answered By: Isaac Williams     Answered On: Aug 10

if u want to send  parameters from a JSP page pass them
as Hidden parameters
<input type=hidden name=param1 value="<param value
here>"/>

if u want to receive  parameters in a JSP
use request.getparamenter("<parameter name>");
in scriplet tag

 
Didn't find what you were looking for? Find more on Need Help in JSP Or get search suggestion and latest updates.




Tagged: