rache wrote:
Parameter values are set in the jsp either as hardcoded
links(http://j.jsp?param=value) or as hidden parameters. When the program
enters the doGet() or doPost() method of a servlet and check for the
parameter, its null.
String pvalue = req.getParameter("param");
This happens intermittently. Is there any explanation on this. Is this a bug
on Tomcat or somethings wrong with my code?
Any help would be great!
Thanks!
I have noticed when debugging my loop, to assign actions, will cycle
more times than there are variables. Have you looked at the entire
request buffer with your debugger?
Enumeration e = request.getParameterNames();
while (e.hasMoreElements())
{
String s = (String)e.nextElement();
if (s.equals(A_BUTTON)) {action = A; break;}
else if (s.equals(B_BUTTON)) {action = B; break;}
}
- Lou Caudell
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]