That suggests that one of the classes or getter methods isn't declared
public (the sample source you posted does that, so that's probably not
it) or that addressVO is null in the form bean. How do you populate the
form bean? What happens if you call getAddressVO().getState() on the
form bean directly?
L.
temp temp wrote:
I get the following error
[Invalid argument looking up property addressVO.state
of bean serviceSelectionForm]:
javax.servlet.jsp.JspException: Invalid argument
looking up property addressVO.state of bean
serviceSelectionForm
at
org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:1036)
Note: forwarded message attached.
thanks & regards
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------------------------------------------------------
Subject:
Re: Re: RE: how to represent nested bean properties in a jsp form
From:
Michael Jouravlev <[EMAIL PROTECTED]>
Date:
Thu, 8 Sep 2005 12:05:36 -0700
To:
Struts Users Mailing List <user@struts.apache.org>
To:
Struts Users Mailing List <user@struts.apache.org>
So, what happens if you use
<html:text name="serviceSelectionForm" property="addressVO.state" />
Put a debug statement in the setter just in case, is it called?
Michael.
On 9/8/05, temp temp <[EMAIL PROTECTED]> wrote:
here is my struts config
<form-bean name="serviceSelectionForm"
type="com.bankerssystems.pac.onlinetrans.service.forms.ServiceSelectionForm">
</form-bean>
<action path="/serviceSelection"
name="serviceSelectionForm"
type="com.bankerssystems.pac.onlinetrans.service.actions.ServiceSelectionAction"
input="/jsp/onlinetrans/serviceSelection.jsp"
scope="request">
<forward name="success"
path="/jsp/onlinetrans/test.jsp" />
</action>
Note: forwarded message attached.
thanks & regards
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
---------- Forwarded message ----------
From: Michael Jouravlev <[EMAIL PROTECTED]>
To: Struts Users Mailing List <user@struts.apache.org>
Date: Thu, 8 Sep 2005 11:50:06 -0700
Subject: Re: RE: how to represent nested bean properties in a jsp form
What, it does not work? How about setting form name explicitly:
<html:text name="ServiceSelectionForm" property="addressVO.state" />
You have defined the formbean in the struts config, have you?
Michael.
On 9/8/05, temp temp <[EMAIL PROTECTED]> wrote:
This is my jsp
<html:form action="serviceSelection.do">
<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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]