Thanks Craig, my memory might have failed me and ServletExec probably implements the 
spec correctly
on this point.  There was however a discrepancy between the two w.r.t. attributes, 
I'll have to dig
up the old email with the example I had sent to my co-worker.

Again, thanks for the clarification.

<tataryn:craig/> <== so our *namespaces* don't get mixed up ;)

On Sat,  6 Mar 2004 21:42:43 -0800, "Craig R. McClanahan" wrote:

> 
> 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]


<tataryn:craig/>

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

Reply via email to