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
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
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
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.
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
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
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:
> -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
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
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
Robert Taylor <[EMAIL PROTECTED]> escreveu:
>
> >
> >
> >>form.reset();
> >>
> >>robert
> >>
> >>
> >>
> >>>-Original Message-
> >>>From: Leandro Melo
> >>>
> >>
> > -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
> > >
> > >
> &
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
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
>
> -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
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
:
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
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
> >
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
&
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
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,
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
22 matches
Mail list logo