You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Paradis, André" <an...@versalys.com> on 2001/09/04 16:04:29 UTC

logic tag and empty string value ("") problem

Hi,

the following declaration does not compile on iPlanet 6.0 SP2:

<logic:equal name="something" value="">
	...
</logic:equal>

here's a snippet of the generated java file:

((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setName("sqc_submenu_
currentitem");
((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setValue("" >
<td width=");

It's like the JSP parser does not like empty string in tag attributes...
anybody had this problem before with iPlanet?  any workaround?

Thanks

Andre Paradis

Re: logic tag and empty string value ("") problem

Posted by Matt Raible <ma...@yahoo.com>.
The workaround is to use a scriplet:

<logic:equal name="something" value="<%=""%>">

kinda silly - but it works!


--- "Paradis,_Andr�" <an...@versalys.com> wrote:
> Hi,
> 
> the following declaration does not compile on iPlanet 6.0 SP2:
> 
> <logic:equal name="something" value="">
> 	...
> </logic:equal>
> 
> here's a snippet of the generated java file:
> 
> ((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setName("sqc_submenu_
> currentitem");
> ((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setValue("" >
> <td width=");
> 
> It's like the JSP parser does not like empty string in tag attributes...
> anybody had this problem before with iPlanet?  any workaround?
> 
> Thanks
> 
> Andre Paradis


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com