• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

validwhen not working for String comparision

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
i am facing strange problem . i want to use or probably i can only use validwhen in this case but somehow i m not able to do string comparision .
my code is like

<field property="order.orderManager" depends="required" >
<arg0 key="orderTrackerForm.orderManager"/>
</field>
<field property="order.referenceNo" depends="validwhen" >
<arg0 key="orderTrackerForm.referenceNo"/>
<var>
<var-name>test</var-name>
<var-value>( order.orderManager == "A")</var-value>
</var>
</field>

here referenceNo is not giving validation error in any case (Manager == "A" or != "A")

other validations are working. can anybody tell me whats my mistake?

Thanks in advance,
Nishita

[ July 24, 2007: Message edited by: Nishita Jain ]
[ July 24, 2007: Message edited by: Nishita Jain ]
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nishita,
I am very new to struts, or else I could have helped you.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic