• Post Reply Bookmark Topic Watch Topic
  • New Topic

to pass values between jsp

 
rosaria italia
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, How can I pass hidden's value from a jsp page to other?
My code is:
a.jsp
...
<h:form id="insUser">
...
<h:inputHidden id="flag" value="1"></h:inputHidden>
...
</h:form>

b.jsp
<%String flag="";
flag=request.getParameter("flag");
out.print("flag="+flag);
%>

b.jsp shows: flag=null

Could you help me?
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just out of curiosity, why do u need this hidden variable for? cant u access this variable from ur managed bean?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!