On Friday 17 April 2009 13:35:33 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? > > thank you
Struts 1 or Struts 2? Since you have the '.do' extension, I would assume Struts 1. Do you plan to do something with the data returned from calling the action? Also, are you using any particular JavaScript framework? Frameworks like JQuery provide easy-to-use methods for making Asynchronous HTTP Requests. -Wes -- 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