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
How to call a method in action passing a parameter inside jsp with struts 1
Konstantin Netkachev
Greenhorn
Posts: 15
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Given a method in action class:
public
String
foo(String str) {
//Some code
}
How to call it in
jsp
?
Lorand Komaromi
Ranch Hand
Posts: 276
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Why do you need that? From the view
you should
call only accessor methods!
OCJP 6 (93%)
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You don't; there's no direct access to actions from the JSP in
Struts
1.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Struts --- Customised RequestProcessor
jsp and action class
anyone face Error - tag.getAsString : component context is not defined?
How to call a method other than execute in jsp in struts 2
calling a action class method from JSP in struts
More...