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

Re: Calling Action on form load

2008-03-28 Thread aum strut
st in session for s:selection. > > > > > list="%{#session.mySelectionList}" listKey="value" > > listValue="label" /> > > > > Hope this helps, > > > > Jane > > > > -Original Me

Re: Calling Action on form load

2008-03-28 Thread aum strut
ession for s:selection. > > list="%{#session.mySelectionList}" listKey="value" > listValue="label" /> > > Hope this helps, > > Jane > > -----Original Message- > From: aum strut [mailto:[EMAIL PROTECTED] &g

RE: Calling Action on form load

2008-03-27 Thread Jiang, Jane (NIH/NCI) [C]
day, March 27, 2008 1:08 PM To: Struts Users Mailing List Subject: Re: Calling Action on form load Jane, can you just give me a brief aidea about (or even if u can a demo code ) how u put ur list in to the action. that will be of gr8 help --aum On 3/27/08, Randy Burgess <[EMAIL PROTECTED]>

Re: Calling Action on form load

2008-03-27 Thread aum strut
Jane, can you just give me a brief aidea about (or even if u can a demo code ) how u put ur list in to the action. that will be of gr8 help --aum On 3/27/08, Randy Burgess <[EMAIL PROTECTED]> wrote: > > Use the tag. > > http://struts.apache.org/2.x/docs/action.html > > Regards, > Randy Burges

Re: Calling Action on form load

2008-03-27 Thread Randy Burgess
Use the tag. http://struts.apache.org/2.x/docs/action.html Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: aum strut <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Thu, 27 Mar 2008 22:04:04 +0530 > To: Struts Users Mailing List > Subject

RE: Calling Action on form load

2008-03-27 Thread Jiang, Jane (NIH/NCI) [C]
Aum, I know what you are talking about. I end up putting all lists for select tag in the session. Otherwise, you will have to reload the list every time the form submits and when validation error happens. I'd like to find out if there are other ways to get around too. Jane -Original Mes

Re: calling action

2007-10-04 Thread Dave Newton
--- Henry Park <[EMAIL PROTECTED]> wrote: > How can I forward to a url from within my action > class? For example, instead of 'return SUCCESS' I > just want to call another action... something like > 'return SomeAction!doit.action. Any ideas? Thanks > in advance. Define a result that either chai

Re: calling action

2007-10-04 Thread Wes Wannemacher
How about -> YourSecondAction http://struts.apache.org/2.0.9/docs/redirect-action-result.html The downside is that it is a redirect, so you any data from YourFirstAction that you want in YourSecondAction will have to be put into the session. -W On 10/4/07, Henry Park <[E