No I have no problem with property NEWSEARCH . I want to know how can my jsp represent nested property state (property from AddressVO ) ? thanks & regards
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--- Begin Message ---I think what you have should work. The only thing I see that could be wrong is that your ServiceSelectionForm will need a property for the NEWSEARCH variable because (I think) it is going to try to populate it. In case this helps, here is sample code that I use that works. It's very similar to yours:
JSP:
<html:hidden property="windowDimensionObject.windowWidth" />
<html:hidden property="windowDimensionObject.windowHeight" />
FORM class:
public void setWindowDimensionObject(WindowDimensionObject windowDimensionObject){
_windowDimensionObject = windowDimensionObject;
}
public WindowDimensionObject getWindowDimensionObject() {
return _windowDimensionObject;
}
WindowDimensionObject class:
public void setWindowWidth(int windowWidth){
_windowWidth = windowWidth;
}
public int getWindowWidth(){
return _windowWidth;
}
public void setWindowHeight(int windowHeight){
_windowHeight = windowHeight;
}
public int getWindowHeight(){
return _windowHeight;
}
HTH - If you are getting a specific error I might be able to help more.
Greg
-----Original Message-----
From: temp temp [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 08, 2005 10:37 AM
To: user@struts.apache.org
Subject: how to represent nested bean properties in a jsp form
I have a jsp a formbean and an action class.
My formbean has a value object and getter setter methods for that.
here is my forbean
public class ServiceSelectionForm extends ActionForm {
private AddressVO addressVO;
public AddressVO getAddressVO() {
return addressVO;
}
public void setAddressVO(AddressVO addressVO) {
this.addressVO = addressVO;
}
}
This is AddressVO
public class AddressVO {
private String state;
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
}
This is my jsp
<html:form action="">
<html:text property="addressVO.state"/>
<html:submit property="NEWSEARCH" value="Submit"/>
</html:form>
I want input textfield from jsp to represent porperty state of AddressVO.
I mean when the form is submitted I want property state from AddressVO to get populated with the value of the textfiled.How can I acheive this.
or How can I represent nested bean porperties in a jsp form.
thanks®ards
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- End Message ---
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]