Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

populating input fields on page load

Session Mwamufiya

2007-08-06

Replies:

Hi,

I have a page with input fields, and would like my action to populate those fields before they get displayed. This page is handled by a certain action, but it is the result page from a different action (I click on a button in the previous action form, and this one gets called up). I put some logging in my code, and see that the execute() method never gets called before the page is displayed.

This is what my form looks like:
<s:form action="SMIGCreation" target="SMIGEditor">
<s:textfield name="smigVersion" label="%{getText('smigVersion')}" />
<s:textfield name="smigDesc" label="%{getText('smigDesc')}" />
<s:submit key="saveButton" method="saveButtonPressed" />
</s:form>

Any ideas?

Thanks,
Session


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.