Hi Enrique: We´re trying to something like you and we´re using sessions.
What are whe doing?: 1.- From one jsp (jspOne), submit for "aid" to find a custoner. You need the customer Id, but you only know about the name of your customer. This is very usually in ERP systems: "the finders". 2.- The actionOne store then actionFormOne object in a session and forward jspTwho ("the finder"). 3.- "the finder" has the responsability for: input parameters about customers and "lookup" the customer based on the parameters. 4.- "the finder" is implemented using jspTwo (for input parameters). When the user input the paremeters, submit actionTwo, who gets a reference from session about the actionFormOne, becouse actionTwo looks for "who call me?: actionOne". 5.- When actionTwo finish it work it put's the "id" selected in the actionFormOne referenced by the session, and do a forward to jspOne. 6.- Finaly, the JSP one, "get" the "id" suplied by the ActionFormOne. We are researching in this area trying to implement "go-sub-returning-a-value" with struts. This is very common pattern for us. -----Mensaje original----- De: Enrique Rodriguez [mailto:[EMAIL PROTECTED]] Enviado el: domingo, 24 de marzo de 2002 20:16 Para: Struts Users Mailing List Asunto: RE: Pass parameters between Action classes Thanks Tim, I know it, but i think that my example should work. Why don't go??? I asked for it ;-) _____________________________ Enrique Rodriguez Lasterra > Tim Sawyer [mailto:[EMAIL PROTECTED]] > > > > You could always use the session instead of the request, and if you're > bothered about using up session memory, remove the stuff from the session > when you've read it back. > > So, same code as you have, but call session.setAttribute("param", param) > > Tim. > > -----Original Message----- > From: Enrique Rodriguez [mailto:[EMAIL PROTECTED]] > Sent: Sunday, March 24, 2002 2:28 AM > To: [EMAIL PROTECTED] > Subject: Pass parameters between Action classes > > > I'm very newbie with struts and i have one question: > > Is possible pass paramter throwugh action classes??? > > I explain it better?? > > Action 1: > String param = "param"; > request.setAttribute("param", param); > return (mapping.findForward ("Action2")); > > Action 2: > String param = (String)request.getAttribute("param"); > > > I'm trying to do it but its imposible. The only way to pass parameters is > with a Form class. > > What am I doing wrong??? > > Thanks in advance and pardon for my english, Enrique. > > _____________________________ > Enrique Rodriguez Lasterra > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>