struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Markert <>
Subject Re: Session
Date Fri, 06 Jun 2003 10:37:04 GMT
Hallo Nadja,

see comments below.


NS> Hello,

NS> I have a more Java than Struts related question but maybe you could answer
NS> it as well? Okay, so I use a link to get to a form. In the ActionForward
NS> that gets executed when the link is used, I load an object and stuff it into
NS> the session.

In think this happens in your action? Why dont you call the setters of
your form at this time?

NS> In my form I then want the fields tp be prepopulated with the
NS> data from the object in the session. As I understand it that happens via the
NS> get-methods of the ActionForm class for this form. My question is: How do I
NS> read the object from the session before my get-methods are called? As I
NS> understood so far, I need the HttpServletRequest object for that - which I
NS> only have access to in the validate method (which doesn't help, since that's
NS> already too late)... I know there must a simple way to do this, I just don't
NS> know how...

NS> Greetings,
NS> Nadja

NS> (P.S.: Dirk, I think, I accidently send my Thank-you-reply for the help with
NS> my stupid parsing problem to your email address. I just hit reply and didn't
NS> look at the address the email would be send to... Sorry about that.)

No problem

NS> ---------------------------------------------------------------------
NS> To unsubscribe, e-mail:
NS> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message