You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sloan Seaman <sl...@sgi.net> on 2003/07/16 20:51:14 UTC

DynaValidatorForm

Why when I do a :
<bean:write name="addForm" property="NAME"/>

It works fine.

But if I do a 
<c:out value="${addForm.NAME}"/>
or
<c:out value="${sessionScope.addForm.NAME}"/>

I get:
[ServletException in:/app/promoFlight/add_body.jsp] An error occurred while evaluating custom action attribute "value" with value "${sessionScope.addForm.NAME}": Unable to find a value for "NAME" in object of class "org.apache.struts.validator.DynaValidatorForm" using operator "." (null)' 

I thought they were equivilant...

--
Sloan


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________

Re: DynaValidatorForm

Posted by Sandeep Takhar <sa...@yahoo.com>.
I think there is a map that you need to access:

addForm.map.NAME

sandeep
--- Sloan Seaman <sl...@sgi.net> wrote:
> Why when I do a :
> <bean:write name="addForm" property="NAME"/>
> 
> It works fine.
> 
> But if I do a 
> <c:out value="${addForm.NAME}"/>
> or
> <c:out value="${sessionScope.addForm.NAME}"/>
> 
> I get:
> [ServletException in:/app/promoFlight/add_body.jsp]
> An error occurred while evaluating custom action
> attribute "value" with value
> "${sessionScope.addForm.NAME}": Unable to find a
> value for "NAME" in object of class
> "org.apache.struts.validator.DynaValidatorForm"
> using operator "." (null)' 
> 
> I thought they were equivilant...
> 
> --
> Sloan
> 
> 
>
________________________________________________________________________
> This email has been scanned for all viruses by the
> MessageLabs Email
> Security System. For more information on a proactive
> email security
> service working around the clock, around the globe,
> visit
> http://www.messagelabs.com
>
________________________________________________________________________


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org