+1 Having a clear line between view and service promotes this sort of reuse.
On 4/17/09, Dave Newton <newton.d...@yahoo.com> wrote: > Denis Fefermann wrote: >> Hi all, >> >> I am new to STRUTS and to this mailinglist, so please be patient with me. >> >> What I am trying, is to call an action on jsp load. >> I guess I need a javasript function which calls an action and 'onload' in >> my body. >> >> function callAction{ >> >> ... calling myAction.do >> >> } >> >> <body onload="callAction();" ... > >> >> Can somebody help me with this issue? > > In addition to Wes's comments/questions, I'd examine the perceived need > for this pretty closely and see if there wasn't another way to do it: > depending on the use-case it sounds suspiciously like something that > could be wrapped up in a service call and exposed in the action itself. > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Sent from my mobile device Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org