We help IT Professionals succeed at work.

Struts 2 tag express document

JianJunShen
JianJunShen asked
on
1,154 Views
Last Modified: 2013-11-24
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>


Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2016
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2016

Commented:
?

Author

Commented:
CEHJ:

What do you mean by question mark?
CERTIFIED EXPERT
Top Expert 2016

Commented:
I'm just wondering why a general answer is accepted over a specific one

Author

Commented:
But I think split points even to this questions. Am I wrong? I just randomly choose the answer since I split the points even.
CERTIFIED EXPERT
Top Expert 2016

Commented:
OK - don't worry
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.