You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Shruti Selvaraj <sh...@yahoo.com> on 2002/06/13 23:35:39 UTC
testing a parameter's value does not work-pls help!
Hi Everyone!
Hello
I am having a problem with testing the value of a parameter that a jsp page receives.
Jsp page 1 displays a dropbox whose name is Decision and has an option "All Types".
But in jsp page 2 when i do
String Decision = (String) request.getParameter("Decision");
<%if(Decision.equals("All Types"))%>
<% { %>
<% for (int i=0; i < something ; i++) { %>
<TD WIDTH=100 ALIGN="CENTER"><%=HdrFontST%><%=something else%>%<%=HdrFontEND%></TD>
<% } %>
<% } %>
</TR>
'something else' is displayed even when Decision DOES NOT take the vale "all Types".
Can someone tell me why this is happening and how I can resolve this?
Any kind of help is greatly appreciated!
Thanks and Bye!
---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup