struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xianwinwin <>
Subject rrrrr...why my field returns null????
Date Wed, 02 Apr 2008 19:17:28 GMT

Can anyone advise why my bean is null.

I have the following jsp page:

    <s:head theme="ajax"/> 
		cssStyle="font-size :	8pt; font-family: verdana" 
		method="post" >

	<s:textarea rows="5" cols="60" name="str" label="Add Note"

	<s:submit  align="center"  targets="myForm" theme="ajax"/> 	

when the user cllicks submit - the action 'insert' kicksin but the bean
(Note) is null (yes, i have getter and setter)

public class NoteAction extends BaseSupport implements Serializable
	private String str;
	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:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message