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 !? 




 --- Jim Barrows <[EMAIL PROTECTED]> escreveu: 
> 
> 
> > -----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???
> > Actually, i checked it out in some bibliography
> and it
> > seems that redirect is not even a valid attribute
> for
> > action mappings :-| ??
> 
> Missing, as in the when the screen gets re-rendered
> they're missing or the data is missing?
> If the data is missing.... are you using primitives
> in your action form or Strings?  If you're using
> primitives then of course your data is misssing. 
> See archives and documentation for why.
> 
> 
> > 
> > 
> >  --- "Kataria, Satish" <[EMAIL PROTECTED]>
> > escreveu: 
> > > 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,
> > > 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 there a way to avoid that this happens?
> > > 
> > > =====
> > > _________________________________
> > > Leandro Terra C. Melo
> > > Eng. de Controle e Automação - UFMG
> > > 
> > > 
> > >   
> > >   
> > >           
> > >
> >
>
_______________________________________________________
> > > 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]
> > > 
> > >  
> > 
> > =====
> > 
> > 
> > __________________________________________________
> > 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]
> > 
> > 
> 
>
---------------------------------------------------------------------
> 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