RE: loosing request attributes from jsp to action

2004-11-25 Thread Paul McCulloch
--Original Message- > From: Tito Eritja [mailto:[EMAIL PROTECTED] > Sent: 24 November 2004 19:41 > To: struts > Subject: loosing request attributes from jsp to action > > > Hi everybody. > > We are working on a fleet trucking system. One user can have several >

Re: loosing request attributes from jsp to action

2004-11-24 Thread Rick Reumann
Tito Eritja wrote the following on 11/24/2004 2:41 PM: We get that identifier in jsp "window" with request.getAttribute("index") (with JSTL tags works fine), set it on request with , and submit the form to the action, The problem comes when trying to get the identifier bean from this request in the

loosing request attributes from jsp to action

2004-11-24 Thread Tito Eritja
Hi everybody. We are working on a fleet trucking system. One user can have several windows opened, each window can manage several trucks. In order to manage this, the actionform has a Vector of this "window" information (and it's set in a session scope). As all this "windows" are managed by th

Re: clarification was: Re: Loosing request attributes

2004-08-13 Thread Craig McClanahan
On Fri, 13 Aug 2004 20:29:53 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: > > I notice this problem ( validation fails now lost select list on page ) > comes up a lot on this mailing list. Probably time I updated a wiki > somewhere of the various approaches you can take to accomodate this > prob

Re: clarification was: Re: Loosing request attributes

2004-08-13 Thread Rick Reumann
Craig McClanahan wrote: That makes more sense now. I tend to put all my lookup data (for dropdown lists and such) into application scope (if its global) or session scope (if it's user specific), primarily as a performance enhancement ... I only have to look it up once, instead of once per request.

Re: clarification was: Re: Loosing request attributes

2004-08-13 Thread Craig McClanahan
On Fri, 13 Aug 2004 17:37:20 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: > Craig McClanahan wrote: > > >>>I can then > >>>call a private setUp() method in my Action that is used to set up my > >>>form with any other request attributes that should always be there. > >> > >>I'm curious why using

clarification was: Re: Loosing request attributes

2004-08-13 Thread Rick Reumann
Craig McClanahan wrote: I can then call a private setUp() method in my Action that is used to set up my form with any other request attributes that should always be there. I'm curious why using the input parameter doesn't work for you? Indeed ... the feature is working as it was designed, based on

Re: Loosing request attributes

2004-08-13 Thread Craig McClanahan
On Fri, 13 Aug 2004 12:51:44 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Rick Reumann [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 13, 2004 1:06 PM > > To: Struts Users Mailing List > > Subject: Re:

RE: Loosing request attributes

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 1:06 PM > To: Struts Users Mailing List > Subject: Re: Loosing request attributes > The problem you are describing comes up a lot on this list - when > validation f

Re: Loosing request attributes

2004-08-13 Thread Leandro Melo
Vary nice Rick! Interesting solution, i'll work on that! --- Rick Reumann <[EMAIL PROTECTED]> escreveu: > Leandro Melo wrote: > > > Suppose a user submits a request that is handled > by > > MyActionDoSomething. Then this action sets a > request > > attribute like this: > > > > request.setAttr

Re: Loosing request attributes

2004-08-13 Thread Rick Reumann
Leandro Melo wrote: Suppose a user submits a request that is handled by MyActionDoSomething. Then this action sets a request attribute like this: request.setAttribute("MyObject", obj); and forwards the request to the page myPageDoSomeOtherThing.jsp, wich has some inputs for the user to fill in. T

Re: Loosing request attributes

2004-08-13 Thread Leandro Melo
Robert Taylor <[EMAIL PROTECTED]> escreveu: > > > > > > >>form.reset(); > >> > >>robert > >> > >> > >> > >>>-Original Message- > >>>From: Leandro Melo > >>> > >>

RE: Loosing request attributes

2004-08-13 Thread Hubert Rabago
> > -Original Message- > > > From: Leandro Melo > > [mailto:[EMAIL PROTECTED] > > > Sent: Friday, August 13, 2004 10:50 AM > > > To: Struts Users Mailing List > > > Subject: RE: Loosing request attributes > > > > > > > &

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
that i'm not talking about the formBean attributes, right !? --- Jim Barrows <[EMAIL PROTECTED]> escreveu: > > > > -Original Message- > > From: Leandro Melo > [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 13, 2004 10:50 AM > > To: Struts

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
t; then changing it to false will solve the problem. > > > > Thanx, > > Satish Kataria > > > > -Original Message- > > From: Leandro Melo > > [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 13, 2004 7:39 AM > > To: struts jakarta >

RE: Loosing request attributes

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 10:50 AM > To: Struts Users Mailing List > Subject: RE: Loosing request attributes > > > No i'm not Kataria. Is this the default option??? > Ac

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
" in ur action mapping. If so > then changing it to false will solve the problem. > > Thanx, > Satish Kataria > > -Original Message- > From: Leandro Melo > [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 7:39 AM > To: struts jakarta > Subject: Lo

Re: Loosing request attributes

2004-08-13 Thread Erik Weber
: form.reset(); robert -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 11:20 AM To: Struts Users Mailing List Subject: Re: Loosing request attributes I was taking a look at the HttpServeltRequest and ServletRequest apis and noted that theres

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
creveu: > form.reset(); > > robert > > > -Original Message- > > From: Leandro Melo > [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 13, 2004 11:20 AM > > To: Struts Users Mailing List > > Subject: Re: Loosing request attributes > >

RE: Loosing request attributes

2004-08-13 Thread Robert Taylor
form.reset(); robert > -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 11:20 AM > To: Struts Users Mailing List > Subject: Re: Loosing request attributes > > > I was taking a look at the HttpServeltRequest and &

Re: Loosing request attributes

2004-08-13 Thread Leandro Melo
I was taking a look at the HttpServeltRequest and ServletRequest apis and noted that theres a method "getParameterMap()" wich returns a map of the parameters, BUT there isn`t such a "setParameterMap()" method. So, what`s an automated way to re-set all my request parameters in the ActionForm??? Do

RE: Loosing request attributes

2004-08-13 Thread Kataria, Satish
Ru using redirect="true" in ur action mapping. If so then changing it to false will solve the problem. Thanx, Satish Kataria -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 7:39 AM To: struts jakarta Subject: Loosing request attri

Re: Loosing request attributes

2004-08-12 Thread Ruth, Brice
Ensure that the request attributes are set in the ActionForm, this is the only way that you can ensure that they'll still be there when the validate fails. Leandro Melo wrote: Hi, when a user request hits the ActionForm's validate method and bounces back, i'm loosing some request attributes that

Loosing request attributes

2004-08-12 Thread Leandro Melo
Hi, when a user request hits the ActionForm's validate method and bounces back, i'm loosing some request attributes that i had set for the page. In other words, if the user inputs some data that don't pass the validate method, the page comes back with a few request scope attributes missing. Is the