RE: loosing request attributes from jsp to action

2004-11-25 Thread Paul McCulloch
I may be wrong, but it sounds a lot like you are misunderstanding the scope of the request object. Apologies if I'm wrong - please ignore the following egg-sucking tutorial! The request objects life starts, on the server, when the servlet container recieves a request from the user's browser. That

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

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
Sorry Kataria, the redirect attribute is inside the forward tag. My fault. Any way, i'm not using and as i understand the default is false. --- Leandro Melo <[EMAIL PROTECTED]> escreveu: > No i'm not Kataria. Is this the default option??? > Actually, i checked it out in some bibliography and >

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
No i'm not Kataria. Is this the default option??? Actually, i checked it out in some bibliography and it seems that redirect is not even a valid attribute for action mappings :-| ?? --- "Kataria, Satish" <[EMAIL PROTECTED]> escreveu: > Ru using redirect="true" in ur action mapping. If so > then

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 attributes Hi,

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