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

Reply via email to