File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

conditional tags not working - struts2

 
Rohit Rai
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have set the following variables as shown below.


Now i am trying to compare it using the following:


but it always goes to the wrong part i.e. the else part .
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

try simple this



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are they the same type?
 
Rohit Rai
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thank you very much for the above responses. Actually my fault. I was setting some wrong values in the action class itself.

I tend to be careless at times

Thanks a lot,
Rohit
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic