Denis, that's not the point of our discussion. One
more time: I'm not talking about formBean attributes.

Anyway, Hubert pointed a workaroung for my problem.

Thanks.


 --- Denis Avdic <[EMAIL PROTECTED]> escreveu: 
> In order to keep the actual entries that the user
> typed in (so they
> don't have to retype everything if they changed a
> bunch of things) I
> usually put the entire form and errors into request
> if there are
> errors.
> 
> Then you need to make sure that your  populate
> action checks for
> presence of the form in request and overrides the DB
> entries with the
> ones in the form.
> 
> On Fri, 13 Aug 2004 15:23:47 -0300 (ART), Leandro
> Melo
> <[EMAIL PROTECTED]> wrote:
> > Hubert,
> > i think that's actually the only solution.
> > Thanks.
> > 
> > 
> > 
> > 
> > > You can point the "input" to an action which
> will
> > > populate the request with
> > > the attribute(s) you need, and then forwards to
> your
> > > form.
> > >
> > > --- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> > >
> > > > This is because when the user submits the
> form,
> > > that already starts a
> > > > different request, so the request attributes
> are
> > > no longer there.
> > > > In your mapping for the action where the form
> gets
> > > submitted to, where does
> > > > the input attribute point to?
> > > >
> > > > Hubert
> > > >
> > > > --- Leandro Melo <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > > As i replied many times for this topic, i'd
> like
> > > to
> > > > > expose the situation again and in DETAILS.
> > > > >
> > > > > 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.
> > > > > This page (myPageDoSomeOtherThing.jsp) uses
> the
> > > bean
> > > > > "obj" that was set in
> MyActionDoSomething.java
> > > ok !?
> > > > >
> > > > > Now suppose the user submits wrong
> information
> > > in
> > > > > myPageDoSomeOtherThing.jsp, what will cause
> the
> > > > > validate method in the associated ActionForm
> to
> > > return
> > > > > some ActionErrors. BUT when the ActionForm
> send
> > > this
> > > > > page back for the user to re-input data, the
> > > bean
> > > > > "obj" that was set at the very beginning in
> > > > > MyActionDoSomething.java is NOT present
> anymore!
> > > > >
> > > > > I think now it's clear that i'm not talking
> > > about the
> > > > > formBean attributes, right !?
> > > > >
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > http://mail.yahoo.com
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> > 
> > =====
> > 
> > 
> >
>
_______________________________________________________
> > Yahoo! Acesso Grátis - navegue de graça com
> conexão de qualidade! Acesse:
> http://br.acesso.yahoo.com/
> > 
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  

=====



        
        
                
_______________________________________________________
Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! Acesse: 
http://br.acesso.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to