This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes <s:property value= in comparison" title="Halloween" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "<s:property value=""> in comparison" Watch "<s:property value=""> in comparison" New topic

<s:property value=""> in comparison

dips pandey

Joined: Nov 13, 2010
Posts: 4

Getting this error when i try

main.jsp is

Action class



I think i have provided with all the files i just want to compare the value selected in the dropdown to some other value in this case i select banana (<s:property value="yourSearchOptions"/>) this on printing to the browser gives me 2 so i compare the value with 2.Only if i select banana should i get the other page ColorEntry.jsp
please help me...
vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170

Use the select box name "yourSearchOptions" in the below
instead of <s:property value="yourSearchOptions"/>)

It is sorta covered in the JavaRanch Style Guide.
subject: <s:property value=""> in comparison