A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Pojo Action in struts 2
Joined: Sep 25, 2006
May 28, 2008 00:53:00
Can we make a pojo as action. if yes then how? can someone give an example of it.
Joined: Oct 29, 2001
May 28, 2008 07:28:00
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
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
How To Ask Questions On JavaRanch
I agree. Here's the link:
subject: Pojo Action in struts 2
program flow problem
Struts 1.0.1 using Wsad
Struts2 annotation validation
Design struts 2
Using Shell script to call struts Action
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014