troubleshooting Question

Struts 2 tag express document

Avatar of JianJunShen
JianJunShen asked on
JavaJava EE
7 Comments2 Solutions1174 ViewsLast Modified:
Now I know one example of expression used in struts 2,

<s:if test="%{#session.registration.SomeMethod2('dummy') eq 'juhani'}" >
      this is method juhani      
</s:if>
<s:else>
      this is not method juhani
</s:else>

What about if my method is integer and I want to test whether it is bigger or smaller? Are there document
to show these kind of examples?

So if somemethod returns integer, May I say as follows and are there documents or book about it:
<s:if test="%{#session.registration.SomeIntegerMethod3('dummy') > 3}" >
      this is method juhani      
</s:if>
<s:else>
      this is not method juhani
</s:else>


ASKER CERTIFIED SOLUTION
boonleng

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros