struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edgar P. Dollin" <ed...@blue-moose.net>
Subject RE: nested tag error
Date Fri, 13 Dec 2002 19:45:23 GMT
As an aside on this issue, I have found that using XML syntax for jsp
helpful as it would have given you a message about unmatched tags.  Not
just jsp but also html and other tags (handy for really large tables,
etc).

Edgar

-----Original Message-----
From: Cory Newey [mailto:cnewey@novell.com] 
Sent: Friday, December 13, 2002 11:10 AM
To: 'briankbuckley@attbi.com'; 'struts-user@jakarta.apache.org'
Subject: Re: nested tag error


Your problem is that your opening <nested:select> tag is closed (see the
'/' at the end?).  Change the tag to: 
<nested:select property="bar"> and everything should work.

>>> briankbuckley@attbi.com 12/13/02 08:54AM >>>
Here's a snippet of JSP which is not working:

<nested:nest property="foo" >
  <nested:select property="bar" />
     <nested:options collection="prompt_set" property="key"
labelProperty="value" />
  </nested:select>
</nested:nest>

It is giving a compile error "org.apache.jasper.JasperException: Options
tag must be nested in a Select tag".

I tried changing nested:select,nested:options to
html:select,html:options but then the tag doesn't find the nested
property.

How can I fix the above snippet?

Brian (using struts1.1 beta1, Tomcat 4.1.12)






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



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


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


Mime
View raw message