Re: ognl: calling action method inside iterator tag

2010-06-01 Thread Grant Lewis
on seulement et n'aura > pas n'importe 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. > > > > > > > Date: Fri, 28

RE: ognl: calling action method inside iterator tag

2010-05-28 Thread Martin Gainty
tion, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 28 May 2010 09:13:04 -0400 > Subject: Re: ognl: calling action method inside iterator tag > From: ukchuckt...@gmail.com > To: user@struts.apache.org > > Odd, I tried it a number of times

Re: ognl: calling action method inside iterator tag

2010-05-28 Thread Grant Lewis
Odd, I tried it a number of times without success. I even dumped the value stack and the object in question was on the stack but the method was never called in the iterator tag. Maybe it was the method name getErrorCount that was causing the problem, not sure. The code I got working is below. It's

Re: ognl: calling action method inside iterator tag

2010-05-25 Thread Paweł Wielgus
Hi, yes it is possible, struts will look for such a method up the way on stack, so simply < s:property value="getMyMethod" /> should work. Best greetings, Paweł Wielgus. 2010/5/22 Grant Lewis : > Wondering if it's possible (struts 2.1.8.1)? From my testing it > doesn't appear possible to to call

ognl: calling action method inside iterator tag

2010-05-21 Thread Grant Lewis
Wondering if it's possible (struts 2.1.8.1)? From my testing it doesn't appear possible to to call an action method from inside an iterator tag. I can't find any documentation on it so hoping an experienced user can shed some light on this mystery. I can call the method fine outside the iterator bu

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Christopher Maloof
kvdw5d6 and http://markmail.org/message/jjkic23knjk5tnpx. Best, Chris On 11/10/2009 11:20 AM, Haroon Rafique wrote: Hi Chris, See reply embedded below... On Today at 10:32am, CM=>Christopher Maloof wrote: CM>I guess no one recognizes the problem. Next question: Has anyone

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Musachy Barroso
11:20 AM, Haroon Rafique wrote: >> >> Hi Chris, >> >> See reply embedded below... >> >> On Today at 10:32am, CM=>Christopher Maloof >>  wrote: >> >> CM>  I guess no one recognizes the problem.  Next question: Has anyone >> CM>  gotten thi

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Christopher Maloof
tp://markmail.org/message/jjkic23knjk5tnpx. Best, Chris On 11/10/2009 11:20 AM, Haroon Rafique wrote: Hi Chris, See reply embedded below... On Today at 10:32am, CM=>Christopher Maloof wrote: CM> I guess no one recognizes the problem. Next question: Has anyone CM> gotten th

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Haroon Rafique
Hi Chris, See reply embedded below... On Today at 10:32am, CM=>Christopher Maloof wrote: CM> I guess no one recognizes the problem. Next question: Has anyone CM> gotten this (calling action methods from FreeMarker tags) to work CM> successfully? Just trying to figure out whether

Re: Trouble calling action methods from FreeMarker

2009-11-10 Thread Christopher Maloof
I guess no one recognizes the problem. Next question: Has anyone gotten this (calling action methods from FreeMarker tags) to work successfully? Just trying to figure out whether the correct approach is to hammer on my configuration somehow, or to file a bug. Thanks, Chris On 11/9/2009 10

Trouble calling action methods from FreeMarker

2009-11-09 Thread Christopher Maloof
I'm just starting to use FreeMarker (2.3.15) with Struts 2.1.8. It mostly works fine: my templates are retrieving bean information with no problem. However, I can't figure out how to call methods defined in my action classes. If my action class looks like this: public class MyAction extends

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

Calling Action on page load

2009-04-17 Thread Denis Fefermann
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 } Can somebody he

RE: [S2] Calling action class method from jsp

2008-12-26 Thread Martin Gainty
within this transmission. > Date: Fri, 26 Dec 2008 06:39:23 -0800> From: milanmilanov...@yahoo.com> To: user@struts.apache.org> Subject: [S2] Calling action class method from jsp> > > Hi,> > I have iterator in my jsp which iterate through list of objects. I want to> cal

Re: [S2] Calling action class method from jsp

2008-12-26 Thread Felipe Fraga
x27;s id to that method, e.g.: > > > ... > > ... > > > How can I define this ? > > -- > Thx, Milan > -- > View this message in context: > http://www.nabble.com/-S2--Calling-action-class-method-from-jsp-tp21174848p21174848

[S2] Calling action class method from jsp

2008-12-26 Thread Milan Milanovic
http://www.nabble.com/-S2--Calling-action-class-method-from-jsp-tp21174848p21174848.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comman

Re: JSP tags calling action directives

2008-12-08 Thread Raquel Pau Fernández
2008/12/8 Dave Newton <[EMAIL PROTECTED]> > --- On Mon, 12/8/08, Raquel Pau Fernández wrote: > > Excuse me for insisting, but the problem of using is that > > you need to offer always it as url... > > Using Codebehind you don't need to configure it via XML; I don't see any > practical difference

Re: JSP tags calling action directives

2008-12-08 Thread Dave Newton
--- On Mon, 12/8/08, Raquel Pau Fernández wrote: > Excuse me for insisting, but the problem of using is that > you need to offer always it as url... Using Codebehind you don't need to configure it via XML; I don't see any practical difference between using URLs or classnames to access an actio

Re: JSP tags calling action directives

2008-12-08 Thread Raquel Pau Fernández
the action must know(implicitly) > > what is the following content page. > > IMO the action should always be responsible for what's available in the > view, but that may just be me. > > I'm still not sure I like the idea of calling *action* code to get the data > t

Re: JSP tags calling action directives

2008-12-08 Thread Dave Newton
but that may just be me. I'm still not sure I like the idea of calling *action* code to get the data that you want, though--I think it would be much cleaner to provide a mechanism for accessing service instances in the JSP and skip the intermediate layer. > I need to call an actio

Re: JSP tags calling action directives

2008-12-08 Thread Raquel Pau Fernández
Yes, I want to call services, but if I put the service in the action, at code level, the action must know(implicitly) what is the following content page. In addition, if an action code has two URL and for each URL has to send different JSP content, your code must change or yo have to produce redun

Re: JSP tags calling action directives

2008-12-07 Thread Dave Newton
--- On Sun, 12/7/08, Raquel Pau Fernández wrote: > I'm thinking about calling actions code (that perhaps they are not > an URL and then they don't appear in the struts.xml) from JSP > [...] > For instance, in more than one page I could need the list > of users in different formats (combobox, lists

JSP tags calling action directives

2008-12-07 Thread Raquel Pau Fernández
Hello, I'm thinking about calling actions code (that perhaps they are not an URL and then they don't appear in the struts.xml) from JSP pages. Is it possible? I'd want to separate the workflow (success, error, input, etc..) from the necessary business logic for rendering a JSP page. For instance,

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
t; > 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

Re: Calling Action on form load

2008-03-27 Thread Randy Burgess
Users Mailing List > Subject: Calling Action on form load > > Hi all, > > is it possible to call an action in struts2 everytime when the page get > loaded if yes how it is possible. > my problem is i am using tag and using a list to pupulate this > drop down this list is coming fr

RE: Calling Action on form load

2008-03-27 Thread Jiang, Jane (NIH/NCI) [C]
ginal Message- From: aum strut [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 12:34 PM To: Struts Users Mailing List Subject: Calling Action on form load Hi all, is it possible to call an action in struts2 everytime when the page get loaded if yes how it is possible. my problem is

Calling Action on form load

2008-03-27 Thread aum strut
Hi all, is it possible to call an action in struts2 everytime when the page get loaded if yes how it is possible. my problem is i am using tag and using a list to pupulate this drop down this list is coming from the action which i m calling before the page is being displayed. the folw is like t

RE: action call not calling action

2008-01-02 Thread Henry Park
Wed, 2 Jan 2008 19:30:23 -0800 > From: [EMAIL PROTECTED] > Subject: RE: action call not calling action > To: user@struts.apache.org > > --- Henry Park <[EMAIL PROTECTED]> wrote: > > Regarding Log4J... wouldn't that only be useful if an error is thrown? > > If

RE: action call not calling action

2008-01-02 Thread Dave Newton
--- Henry Park <[EMAIL PROTECTED]> wrote: > Regarding Log4J... wouldn't that only be useful if an error is thrown? If logging is turned up to DEBUG level then quite a bit of configuration and execution tracing is shown; there's more in the logs besides ERROR level stuff. If the only difference be

RE: action call not calling action

2008-01-02 Thread Henry Park
Regarding Log4J... wouldn't that only be useful if an error is thrown? I don't get any error messages. It just does not get into my doList() method. > Date: Wed, 2 Jan 2008 19:02:07 -0800 > From: [EMAIL PROTECTED] > Subject: RE: action call not calling action > To:

RE: action call not calling action

2008-01-02 Thread Henry Park
> Date: Wed, 2 Jan 2008 19:02:07 -0800 > From: [EMAIL PROTECTED] > Subject: RE: action call not calling action > To: user@struts.apache.org > > --- Henry Park <[EMAIL PROTECTED]> wrote: > > Sorry, I made some changes since I posted that message. I should have >

RE: action call not calling action

2008-01-02 Thread Dave Newton
--- Henry Park <[EMAIL PROTECTED]> wrote: > Sorry, I made some changes since I posted that message. I should have > updated. It actually calls Menu!list.action now. Oh, okay. And you're saying if you call it directly from the URL address bar on the browser it works locally but when you access it

RE: action call not calling action

2008-01-02 Thread Henry Park
Thank you for the help. My responses are below: > Date: Wed, 2 Jan 2008 18:20:12 -0800 > From: [EMAIL PROTECTED] > Subject: RE: action call not calling action > To: user@struts.apache.org > > --- Henry Park <[EMAIL PROTECTED]> wrote: > > What do you mean by 

RE: action call not calling action

2008-01-02 Thread Dave Newton
--- Henry Park <[EMAIL PROTECTED]> wrote: > What do you mean by 'where do I define MenuAction?' It is just > my action class. Your JavaScript calls "MenuAction!list". There is no "MenuAction" defined in the chunk of struts.xml you posted; you define an action named "Menu". I'm asking if you defin

RE: action call not calling action

2008-01-02 Thread Henry Park
or a '"do${methodName}" thing' http://struts.apache.org/2.0.9/docs/prepare-interceptor.html > Date: Wed, 2 Jan 2008 17:00:12 -0800 > From: [EMAIL PROTECTED] > Subject: Re: action call not calling action > To: user@struts.apache.org > > --- Henry Park

Re: action call not calling action

2008-01-02 Thread Dave Newton
--- Henry Park <[EMAIL PROTECTED]> wrote: > getUrl("MenuAction!list.action") What's "getUrl", a JavaScript function? > Where do you define "MenuAction"? > It enters my 'prepare()' method but does not enter my doList() method. Is your logging turned up to eleven? Is it a default S2 thing

action call not calling action

2008-01-02 Thread Henry Park
Hello everyone, I am reposting this question as I am still having issues with it. I am having a really strange issue. In my application I have a menu bar and a main content area. The menu bar and main content area are populated separately using an Ajax call to their respective action metho

RE: Action call not calling action method

2007-12-20 Thread Henry Park
Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 04, 2007 1:37 PM To: Struts Users Mailing List Subject: Re: Action call not calling action method Henry difficult to say without seeing the interceptor stack from struts-default.xml Please post to group M-- LA

Re: Action call not calling action method

2007-12-04 Thread Martin Gainty
o: "Struts Users Mailing List" Sent: Tuesday, December 04, 2007 11:48 AM Subject: Action call not calling action method Hello everyone, I am having a really strange issue. In my application I have a menu bar and a main content area. The menu bar and main content area are populated separa

Action call not calling action method

2007-12-04 Thread Henry Park
Hello everyone, I am having a really strange issue. In my application I have a menu bar and a main content area. The menu bar and main content area are populated separately using an Ajax call to their respective action methods. They are automatically called/populated when I log into my application

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

calling action

2007-10-04 Thread Henry Park
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. _ Windows Live Hot

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Richard Wallace
Craig McClanahan wrote: On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 5/11/06, Jason Vincent <[EMAIL PROTECTED]> wrote: > According to the HTML specification, disabled input controls > are *not* included in the request attr

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Craig McClanahan
On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: How do you know that dialog is completed? :-) By virtue of explicit transition to an end state, just like Spring WebFlow. This causes the per-dialog state information to be popped off the session-scoped statck where it is maintained, t

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Michael Jouravlev
On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > Also, is it possible to lock the server-side bean on a fr

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Craig McClanahan
On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > Also, is it possible to lock the server-side bean on a framework > > level, so it would be guaranteed that the bean won'

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Michael Jouravlev
On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Also, is it possible to lock the server-side bean on a framework > level, so it would be guaranteed that the bean won't get second > request until the first one is serviced and respo

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Craig McClanahan
On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 5/11/06, Jason Vincent <[EMAIL PROTECTED]> wrote: > According to the HTML specification, disabled input controls > are *not* included in the request attributes submitted to the s

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Michael Jouravlev
On 5/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 5/11/06, Jason Vincent <[EMAIL PROTECTED]> wrote: According to the HTML specification, disabled input controls are *not* included in the request attributes submitted to the server. Therefore, disabling the submit button will mean that the

RE: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread James Reynolds
Oh, I totally missed the point. Best of luck. -Original Message- From: Jason Vincent [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 1:21 PM To: Struts Users Mailing List Subject: Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Jason Vincent
[mailto:[EMAIL PROTECTED] > Sent: Thursday, May 11, 2006 10:42 AM > To: user@struts.apache.org > Subject: Shale: onclick="disabled='true';" not calling Action Method. > (stopping double click) > > Hi all, > > My project spec is asking me to disable form bu

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Jason Vincent
tion method, you could set the boolean to true, thereby disabling the button when the page reloads. -Original Message- From: Jason Vincent [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 10:42 AM To: user@struts.apache.org Subject: Shale: onclick="disabled='true';&quo

Re: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Craig McClanahan
On 5/11/06, Jason Vincent <[EMAIL PROTECTED]> wrote: Hi all, My project spec is asking me to disable form buttons once they are clicked. It seemed easy to me, just add onclick="disabled='true'" to the commandButton. But as anything I've found with JSF, it isn't that easy. When I do this, the

RE: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread James Reynolds
Original Message- From: Jason Vincent [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 10:42 AM To: user@struts.apache.org Subject: Shale: onclick="disabled='true';" not calling Action Method. (stopping double click) Hi all, My project spec is asking me to disable

Shale: onclick="disabled='true';" not calling Action Method. (stopping double click)

2006-05-11 Thread Jason Vincent
Hi all, My project spec is asking me to disable form buttons once they are clicked. It seemed easy to me, just add onclick="disabled='true'" to the commandButton. But as anything I've found with JSF, it isn't that easy. When I do this, the action method isn't being called after it passes valid