Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JSP form population using struts

843836Jun 24 2005 — edited Jun 29 2005
Hello All,
I am sorry, this question might already be answered somewhere here, but I have searched for like an hour to no avail.

Anyway, my question is this. I have a for bean, investigatorForm.java, defined and I can use it to fill out a jsp form, pass the values to the action class, and then create or update the record in the database. I want to go the other way though...

I want to populate investigatorForm.java in the action class, pass it back to the editInvestigator.jsp and have the <html:text> fields on the page autopopulated. Is there anyway to have struts take care of this so I dont have to do this:
<html:text property="investigatorName" value="<%=invForm.getInvestigatorName()%>"/>
Cause from what I read I am under the inpression strut can handle this for you, I would just like to know how...
Thanks in advance for any help,
Matt
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 27 2005
Added on Jun 24 2005
4 comments
319 views