MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Scott.Minor
Post subject: Quoting tag/attribute problem with taglibs [Closed]  PostPosted: Oct 13, 2004 - 09:49 PM
Veteran Member
Veteran Member


Joined: Nov 14, 2003
Posts: 7

I am getting the following error (Attribute best invalid for tag option according to TLD). This works if I don't have it in the "VALUE" property of the html:option. Anyone have this problem and or answer.

<html:form action="/menu">
<html:select property="homeContext">
<html:option value=""><bean:message key="home.context" /></html:option>
<logic:iterate name="supplierlst" id="supplier" scope="request">
<html:option value="<bean:write property="best" name="supplier"/>"><bean:write property="supplierName" name="supplier"/></html:option>
</logic:iterate>
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Oct 14, 2004 - 03:13 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

Scott,

It's likely that you're using double-quotes in a nested manner, which isn't really valid. Try this instead:
Code:

<html:option value="<bean:write property='best' name='supplier'/>"><bean:write property="supplierName" name="supplier"/></html:option>

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Scott.Minor
Post subject:   PostPosted: Oct 14, 2004 - 04:33 PM
Veteran Member
Veteran Member


Joined: Nov 14, 2003
Posts: 7

Scott,

I tried that before posting but that didn't work. I was able to make it work with a little more work. Here is what I did.

<html:select property="homeContext">
<html:option value=""><bean:message key="home.context" /></html:option>
<logic:iterate name="supplierlst" id="supplier" scope="request">
<bean:define id="supplierValue" ><bean:write property="best" name="supplier"/></bean:define>
<html:option value="<%=supplierValue%>"><bean:write property="supplierName" name="supplier"/>(<bean:write property="best" name="supplier"/>)</html:option>
</logic:iterate>
</html:select>


But thanks for the ideas.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 14, 2004 - 05:00 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Moving to web dev

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits