You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rama <ru...@yahoo.com> on 2001/12/04 11:17:25 UTC
request.getParameter problem
Hi,
it seems that request.getParameter does not always successful in POST
method.
is there any way to make it 100% successful?
i'm using tomcat 4.01.
if (request.getParameter("modify").equals("yes")) {
out.write("modify listings");
}
Rama
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
RE: request.getParameter problem
Posted by William Tansill <wt...@erols.com>.
-----Original Message-----
From: Rama [mailto:rust_riffle@yahoo.com]
Sent: Tuesday, December 04, 2001 5:17 AM
To: tomcat-user@jakarta.apache.org
Subject: request.getParameter problem
Hi,
it seems that request.getParameter does not always successful in POST
method.
is there any way to make it 100% successful?
i'm using tomcat 4.01.
if (request.getParameter("modify").equals("yes")) {
out.write("modify listings");
}
I assume you're failing due to case inconsistencies. If that's so, then use
equalsIgnoreCase() rather than equals().
Rama
_________________________________________________________ Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>