Re: how to keep object from action to action

2007-10-08 Thread Ted Husted
On 10/8/07, Zoran Avtarovski <[EMAIL PROTECTED]> wrote: > My guess would be that it's being left to the authors of the various S2 > books to deal with. There isn't any kind of master plan. We're all volunteers, and people contribute what they can, when they can, usually based on what we need to do

Re: how to keep object from action to action

2007-10-08 Thread Zoran Avtarovski
Thanks Sami, I apologise. I know that there are a few different solutions around. We use a our own custom interceptor which works for us. My point was more that I think that action chaining is probably the feature of S2 I find most trying. I suspect that of the work would be in improving the docu

Re: how to keep object from action to action

2007-10-07 Thread Sami Dalouche
> action2 and result jsp, like on drawing > >> > >> my1.html -(myobject.id)-> action1.save -(myobject)-> action2.edit > >> -(myobject)-> my2.jsp -> my2.html > >> > >> I do not want to load this object in action2.edit if it was already load

Re: how to keep object from action to action

2007-10-07 Thread Zoran Avtarovski
t; wrote: >> >> Hi! >> >> I use struts2 and want to load object in action1 and then access in in >> action2 and result jsp, like on drawing >> >> my1.html -(myobject.id)-> action1.save -(myobject)-> action2.edit >> -(myobject)-> my2.jsp ->

Re: how to keep object from action to action

2007-10-07 Thread Ted Husted
in > action2 and result jsp, like on drawing > > my1.html -(myobject.id)-> action1.save -(myobject)-> action2.edit > -(myobject)-> my2.jsp -> my2.html > > I do not want to load this object in action2.edit if it was already loaded > in action1.save. > > Can stru

RE: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
: RE: how to keep object from action to action Yes, this is it. How to setup StrutsSpringObjectFactory as current? web.xml? struts.xml? Thanks. Jiang, Jane (NIH/NCI) [C] wrote: > > If you use org.apache.struts2.spring.StrutsSpringObjectFactory as your > object factory, and you define

RE: how to keep object from action to action

2007-10-04 Thread ros
n. > > -- View this message in context: http://www.nabble.com/how-to-keep-object-from-action-to-action-tf4569127.html#a13043532 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [

RE: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
You should set the scope of your pojo to be "request" if that is what you want. The default is singleton. -Original Message- From: ros [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 11:32 AM To: user@struts.apache.org Subject: RE: how to keep object from action to

RE: how to keep object from action to action

2007-10-04 Thread ros
Spring > beans and have them injected to your action. > > -Original Message- > From: ros [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 04, 2007 10:21 AM > To: user@struts.apache.org > Subject: how to keep object from action to action > > > Hi! >

RE: how to keep object from action to action

2007-10-04 Thread Jiang, Jane (NIH/NCI) [C]
If you use the Spring framework, you can define your object as Spring beans and have them injected to your action. -Original Message- From: ros [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 10:21 AM To: user@struts.apache.org Subject: how to keep object from action to

how to keep object from action to action

2007-10-04 Thread ros
dy loaded in action1.save. Can struts2 pass objects from action to action? Thanks. -- View this message in context: http://www.nabble.com/how-to-keep-object-from-action-to-action-tf4569127.html#a13040888 Sent from the Struts - User mailing list archive a

Re: Forward Action to Action

2006-10-23 Thread Ed Griebel
The easiest is to put your data as attributes in the request scope with request.setAttribute( name, value), and then extract them in the second action with 'MyClass value = (MyClass) request.getAttribute(name)'. You can also put the attributes in the session scope, but you need to remember to remo

Re: Forward Action to Action

2006-10-23 Thread Lixin Chu
how abt using the same formbean for both actions ?

RE : Forward Action to Action

2006-10-23 Thread Jean-Marie Pitre
-Message d'origine- De : Jean-Marie Pitre [mailto:[EMAIL PROTECTED] Envoyé : samedi 21 octobre 2006 16:27 À : Struts Users Mailing List Objet : Forward Action to Action Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first

Re: Forward Action to Action

2006-10-23 Thread WongTseng王曾
Maybe it's impossible. Cos the data populated into the formbean is read from url parameters, and you can't create parameter in request by any Java API. So 'tis difficult. But you can hardcode the paramters in the path of the forward which points to your second action. 2006/10/21, Jean-Marie Pitr

Re: Forward Action to Action

2006-10-23 Thread ShiBing Chen
Action chain can do that. On 10/21/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first first action to my second formbean (second action). I tried to do a setattribute in my first action befo

RE: Forward Action to Action

2006-10-23 Thread zhang xiao
From: "Jean-Marie Pitre" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Forward Action to Action Date: Sat, 21 Oct 2006 16:27:13 +0200 Hi, I would like to forward an Action to another one. My proble

Re: Forward Action to Action

2006-10-23 Thread João Vieira da Luz
I think you are little bit confused. FormBeans are the request abstractions of requests. Thus, in order to populate the 2nd bean you have to use request PARAMETERS instead of request ATTRIBUTTES. Hope this helps you On 10/21/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to

Forward Action to Action

2006-10-21 Thread Jean-Marie Pitre
Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first first action to my second formbean (second action). I tried to do a setattribute in my first action before calling mappingfindforward and in my second formbean to create an acessor but the f

Re: action to action

2005-05-09 Thread rmanchu
oh man. thanx. changing all to POST now thanx :) riyaz Michael Jouravlev wrote: If you are submitting a form, and have a button, I do not see the reason not to use POST. If you have a link like "Delete Item" in the list, then I may see that you may be tempted to use GET. At the end it is up to

Re: action to action

2005-05-09 Thread Michael Jouravlev
If you are submitting a form, and have a button, I do not see the reason not to use POST. If you have a link like "Delete Item" in the list, then I may see that you may be tempted to use GET. At the end it is up to you, you are the designer. But sometimes it is important to differentiate between PO

Re: action to action

2005-05-08 Thread rmanchu
hi. thanx to all who wrote back. after having read the replies and links provided i'm going to use the Redirect-after-Post method in my app. i would have to craft a dynamic Forward with the right params which i think for my needs is a much shorter/easier route. thanx to all. now i have a differ

Re: action to action

2005-05-08 Thread Michael Jouravlev
Yes, redirect produces new request. It will have GET type, which is important. Yes, you will lose field values of your form, if the form bean has request scope. The question is, do you really need to preserve these values? Consider this: instead of having business object somewhere on the business

Re: action to action

2005-05-08 Thread Michael Jouravlev
On 5/8/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > At 4:19 PM -0700 5/8/05, rmanchu wrote: > >i have to following scenario. > > > >interface1 =>action1 => action2 => interface2 > > > >is calling another action from an action discouraged in struts? > > > >what's the best solution for this? 1.2.4 t

Re: action to action

2005-05-08 Thread rmanchu
thanx michael. have one question though in the example above, the redirect would produce a new request object right? which means i'll lost some vars that i already have from my "action1" which r required in "action2" i'm thinking i shud redirect with the three parameters that i need - ie

Re: action to action

2005-05-08 Thread Joe Germuska
At 4:19 PM -0700 5/8/05, rmanchu wrote: i have to following scenario. interface1 =>action1 => action2 => interface2 is calling another action from an action discouraged in struts? what's the best solution for this? 1.2.4 to 1.3-dev You'll find plenty of discussion on this in the mailing list archiv

Re: action to action

2005-05-08 Thread Michael Jouravlev
If someone told you that eating with the left hand is discouraged, would you care? ;) Just do what you think is best, if it does not hurt other people ;) I submitted my approach to action chaining here in the wiki: http://wiki.apache.org/struts/StrutsCatalogInputOutputSeparation I think that I

action to action

2005-05-08 Thread rmanchu
i have to following scenario. interface1 =>action1 => action2 => interface2 is calling another action from an action discouraged in struts? what's the best solution for this? 1.2.4 to 1.3-dev thanx riyaz - To unsubscribe, e-mail: [

Re: action to action with form

2004-11-24 Thread Bill Keese
(B> So, I have actioclass A and I want to call action class B witch needs (B> actionform C. (B> I will use the mappings to chain the response from B to my first (B> action class A. (B (Bhttp://wiki.apache.org/struts/ForwardingWithDifferentParameter (B (B

re: action to action with form

2004-11-19 Thread Raffe Paffe
You shouldn't be calling an Action from an Action. Action chaining is not recommended and is considered poor practice. Action classes are an implementation of Command pattern and as such should delegate to reusable business components. I would refactor your business logic embedded in Action classes

RE: action to action with form

2004-11-19 Thread Robert Taylor
day, November 19, 2004 7:18 AM > To: [EMAIL PROTECTED] > Subject: action to action with form > > > > Hi > > I have a system with some action classes that i need to call from my action > class. > I do not have the source code of the action classes that needs to b

action to action with form

2004-11-19 Thread Raffe Paffe
Hi I have a system with some action classes that i need to call from my action class. I do not have the source code of the action classes that needs to be called and I can not change them but I know how the actionform is suppose to look and I want to this serverside. So, I have actioclass A and

Re: How to go from action to action

2004-11-10 Thread Emmanouil Batsis
Morales de Frías wrote: Hello ¡¡ First thanks in advance if you are reading me, and please be patient with my english... I have an action which forward is another action. (A1, A2). And his actionForm (AF1, AF2) My question is how can i pass to A2 any parameter? Can i establish values for its acti

How to go from action to action

2004-11-10 Thread Morales de Frías, David
Hello ¡¡ First thanks in advance if you are reading me, and please be patient with my english... I have an action which forward is another action. (A1, A2). And his actionForm (AF1, AF2) My question is how can i pass to A2 any parameter? Can i establish values for its actionForm (A2) from th