| 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
|
|
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.
|
 |
 |
|
|
subject: JSTL choose example
|
|
|