[Strus] ActionForm not dispalyed
From: Hamvil (roberto.riggio_at_gmail.com)
Date: 02/28/05
- Next message: Roger Varley: "Tomcat, IIS and SSL"
- Previous message: gp79: "Re: applet java on PDA"
- Next in thread: Wendy Smoak: "Re: [Struts] ActionForm not displayed"
- Reply: Wendy Smoak: "Re: [Struts] ActionForm not displayed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Feb 2005 09:48:23 -0800
Hi,
I have a problem with with the struts framework. I've already looked
in the news for an answer but i've found nothing.
Basically i would like to fill a form with the data obtained from a
database. Here follow a small part of the code:
try {
actionForm = registerManager.loadProfile(id);
} catch (Exception e) {}
basically actionForm is the one passed by the execute mathod.
The method loadProfile returns an object RegisterBean (which extends
ActionForm) that contain the user data loaded from the database.
After the output is forwarded to edit.jsp, but nothing is displayed in
the form.
If for example i replace the previous code with:
((RegisterBean)actionForm).setName("Something");
everything works fine and the name is correctly displayed in the form.
It seems that by assigning to the actionForm another object the struts
environment lost the binding with the form.
Can anyone help me???
Thanks
Roberto
- Next message: Roger Varley: "Tomcat, IIS and SSL"
- Previous message: gp79: "Re: applet java on PDA"
- Next in thread: Wendy Smoak: "Re: [Struts] ActionForm not displayed"
- Reply: Wendy Smoak: "Re: [Struts] ActionForm not displayed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]