This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JSTL choose example Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "JSTL choose example" Watch "JSTL choose example" New topic
Author

JSTL choose example

Vani Chinta
Ranch Hand

Joined: Mar 25, 2007
Posts: 38
Hi,
I am displaying results based on user selection(pg 444 of HFSJ).
Expected: when I select performance, "Now you can stop even if you drive insanely." should be displayed.
Output: always <c therwise> is getting printed.
Here is the JSP.



expression request.getParameter("userSelection") is displaying the chosen option.

I tried specifically declaring el-ignored tag in web.xml to be false. Can any one let me know what is going wrong here.

Thanks


SCJP 1.4
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14685
    
  16

userSelection is a request parameter, so you have to use the implicit object called "param" to access it :
${param.userSelection}


[My Blog]
All roads lead to JavaRanch
Vani Chinta
Ranch Hand

Joined: Mar 25, 2007
Posts: 38
Thanks for a quick response.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSTL choose example
 
Similar Threads
retrive from table
simple JSTL problem
The end tag "&lt;/c:choose" is unbalanced
error in jstl while writing c:if
jstl problems