Quoting Craig Tataryn <[EMAIL PROTECTED]>:

> Hi, this might be a "Tomcat vs. ServletExec" thing, but I was trying the
> following under Tomcat and
> got an error message to the effect of "Null property value for 'address()'":
> 
>       <html:form action="/TestIndexed">
>       <logic:iterate name="TestIndexedForm" property="regions" id="region">
>               <h1><%=region%></h1>
>               <html:text name="TestIndexedForm" 
> property="address(<%=region%>).street"/>
>               <html:text name="TestIndexedForm" 
> property="address(<%=region%>).city"/>
>       </logic:iterate>
>       </html:form>
> 
> If I rewrite my html:text property as below, all is good in the world:
> 
> <html:text name="TestIndexedForm" property='<%="address(" + region +
> ").street"%>'/>
> <html:text name="TestIndexedForm" property='<%="address(" + region +
> ").city"%>'/>
> 
> Just wanted to know why the first way wouldn't work?
> 

According to the JSP 1.1 and 1.2 Specifications, it is illegal to have *part* of
an attribute value be a runtime expression.  If ServletExec accepts your first
variant, it is broken.

> Craig.

Craig (McClanahan :-)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to