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
Pojo Action in struts 2
Prashant Saraf
Ranch Hand
Posts: 57
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Can we make a pojo as action. if yes then how? can someone give an example of it.
Regards
Prashant
Joe Ess
Bartender
Posts: 9626
16
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
There's no big secret. Just declare it in struts.xml like you would any other action:
<action name="someAction" method="someMethod" class="SomePOJO"> </action>
SomePOJO has to have a no-argument constructor so it can be instantiated by reflection and someMethod should return a
String
.
[
How To Ask Questions On JavaRanch
]
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
program flow problem
Struts 1.0.1 using Wsad
Struts2 annotation validation
Design struts 2
Using Shell script to call struts Action
More...