Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

How to get hidden value in JSP page?

Edward King

2004-05-03

Replies:

There is a hidden value,named flag in a JSP page,like following:
<%
String abc;
//My question is whether there is a method to get hidden value of flag and assign to variable abc?
//print the value of variable abc
System.out.println("hidden flag="+abc);
if(abc.compareTo("0")==0)
//do something
else
//do otherthing
%>
<html>
<body>
<input type="hidden" name="flag" value="0">
</body>

Thanks in advance!
Edward

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.