Jonas, it doesn't work, maybe the CVS version I´m using is bad. Will try again with a newer version ...
Cheers, Lars > Have you included the ParameterInterceptor to doTest action in your > xwork.xml? > > If you <include file="webwork-default.xml"/> in your xwork.xml you can > use the predefined interceptor defaultStack as: > > <action name="doTest" class="xxx.TestAction" method="doTest"> > <result name="success">/index.vm</result> > <interceptor-ref name="defaultStack"/> > </action> > > Cheers, > Jonas > > Lars Fischer wrote: > > I have a simple action and a form with a text field. The problem is, > that > > setName(... is never called now matter what I do. The doTest() method > shown > > below is called correctly. > > > > Thanks for your help, > > Lars > > > > (BTW documentation still sucks - forget this WIKI thing and write a > tutorial > > !) > > > > Action class: > > > > public class TestAction extends ActionSupport { > > > > private String name; > > > > public String getName() { > > return name; > > } > > > > public void setName(String name) { > > this.name = name; > > } > > > > public String doTest() { > > // Name is alway null > > > > return "success"; > > } > > > > } > > > > JSP: > > > > <%@ taglib prefix="ww" uri="webwork" %> > > <html> > > <head><title>Test</title></head> > > <body> > > <ww:form name="testForm" action="doTest.action" method="POST"> > > <table> > > <ww:textfield label="Name" name="'name'" value="name"/> > > </table> > > <input type="submit" value="Save"/> > > </ww:form> > > </body> > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback Program. > > Does SourceForge.net help you be more productive? Does it > > help you create better code? SHARE THE LOVE, and help us help > > YOU! Click Here: http://sourceforge.net/donate/ > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork