Re: Action declaration question (Webwork/Hibernate)

smartr <[email protected]> Sat, 16 Dec 2006 04:29:28 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <22608505.1166265020244.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
I've got a bunch of actions, with the related actions being based on the same class... so my method would be something like...
[code]
		<action name="Movie" class="foo.MovieAction" method="view">
			<result name="success">movie.jsp</result>
		</action>
		<action name="SaveMovie" class="foo.MovieAction" method="save">
			<result name="success" type="redirect-action">
				<param name="actionName">Movie</param>
				<param name="msg">${msg}</param>
				<param name="movie_id">${movie_id}</param>
			</result>
		</action>
[/code]

For me, it'd be crazy to put 500 CRUD functions in one action. Perhaps your's is simpler. For me right now, there's 2 interceptor stacks, one being for pages behind security, the other for the login.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=53761&messageID=108138#108138

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]