File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL choose example

 
Vani Chinta
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
userSelection is a request parameter, so you have to use the implicit object called "param" to access it :
${param.userSelection}
 
Vani Chinta
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for a quick response.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic