Can anyone advise why my bean is null.
I have the following jsp page:
<html>
<head>
<s:head theme="ajax"/>
</head>
<body>
<s:form
theme="ajax"
id="myForm"
cssStyle="font-size : 8pt; font-family: verdana"
action="notes_insert"
method="post" >
<s:textarea rows="5" cols="60" name="str" label="Add Note"
required="true"/>
<s:submit align="center" targets="myForm" theme="ajax"/>
</s:form>
when the user cllicks submit - the action 'insert' kicksin but the bean
(Note) is null (yes, i have getter and setter)
//action
@Validation
public class NoteAction extends BaseSupport implements Serializable
{
private String str;
@SkipValidation
public String insert()
{
System.out.println("the value is "+ str);
}
public String getStr()
{
return str;
}
public void setStr(String str)
{
this.str = str;
}
}
--
View this message in context:
http://www.nabble.com/rrrrr...why-my-field-returns-null-----tp16449038p16449038.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]