Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Struts
Function call inside struts tags
Martin Krajcir
Greenhorn
Posts: 1
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In Strurts 2.2 is not possible call function in
struts
tag. e.g.:
<s:if test="function()"> ... do something ... </s:if> public class ClassA { public static boolean function() { return true; } }
Why function call does not work in struts 2.2 if it was possible in 2.0? How can I call class method inside struts tag?
Is there any way how to
test
only
java
variable in
JSP
?
<%boolean result = ClassA.function();%> <s:if test="<%result%>"> ... do something ... </s:if>
Thanks for any suggestion!
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to know if has validation errors on jsp
Struts 2 result in New Window
IE 7 Error on Page
How to access static fields using OGNL in Struts 2
Struts2 variable inside javascript
More...