RE: Calling Action on page load

2009-04-20 Thread Martin Gainty
porte quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > To: user@struts.apache.org > Subject: Re: Calling Action on page load > From: fefer...@d

Re: Calling Action on page load

2009-04-20 Thread Denis Fefermann
Thank you all for the hints. I will try again as soon as I'll get fit. Denis Fefermann wrote: > I am using Struts 1 and no JavaScript Frameworks. I do not need data from > calling the action. > The point is, everytime I refresh my JSP Page , I need to increment a > sort of a counter in m

Re: Calling Action on page load

2009-04-17 Thread Dave Newton
Denis Fefermann wrote: I am using Struts 1 and no JavaScript Frameworks. I do not need data from calling the action. The point is, everytime I refresh my JSP Page , I need to increment a sort of a counter in my Action Class. So increment a counter in your action class, put it in session/req

Re: Calling Action on page load

2009-04-17 Thread Denis Fefermann
I am using Struts 1 and no JavaScript Frameworks. I do not need data from calling the action. The point is, everytime I refresh my JSP Page , I need to increment a sort of a counter in my Action Class. On Friday 17 April 2009 13:35:33 Denis Fefermann wrote: > Hi all, > > I am new to STRUTS

Re: Calling Action on page load

2009-04-17 Thread Wes Wannemacher
+1 Having a clear line between view and service promotes this sort of reuse. On 4/17/09, Dave Newton 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

Re: Calling Action on page load

2009-04-17 Thread Dave Newton
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 myActio

Re: Calling Action on page load

2009-04-17 Thread Wes Wannemacher
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