THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
First off, if you're coming from Struts 1, you may feel more comfortable using FormBeans instead of using the Action as your form bean. Be aware, though, that in Webwork you DO have the option of having the properties directly in the Action class. If you want to use a FormBean, here's an example:
...
Code Block |
---|
<webwork:property value="myBean/name"/>
|
NOTE:
As of WW2.2, the following should be used
Code Block |
---|
<webwork:property value="myBean.name" />
|
Which will call getMyBean.getName() and print that out to the page.