I was missing name.  I was a little leary, because the form name
would depend on which form I was included on at the time.  I
changed the file to a tag file and sent the form name as a
parameter.  This worked perfectly:

<logic:equal name="${formName}" property="stateSelection"
value="SELSTATE">
     <span id="selectBox" style="display:block;">
</logic:equal>
<logic:notEqual name="${formName}" property="stateSelection"
value="SELSTATE">
     <span id="selectBox" style="display:none;">
</logic:notEqual>

Thx for your help.

--- Wendy Smoak <[EMAIL PROTECTED]> wrote:

> From: "Norris Shelton" <[EMAIL PROTECTED]>
> > I'm trying to determine which block of HTML to output.  This
> is
> > on a page that will be included by many different forms.
> >
> > <logic:equal property="stateSelection" value="SELSTATE">
> >      <span id="selectBox" style="display:block;">
> > </logic:equal>
> > <logic:notEqual property="stateSelection" value="SELSTATE">
> >      <span id="selectBox" style="display:none;">
> > </logic:notEqual>
> >
> > javax.servlet.jsp.JspException: No selector attribute
> > (cookie/header/name/parameter) was specified
> 
> http://struts.apache.org/userGuide/struts-logic.html#equal
> 
> Your logic:equal tag is missing an attribute, either cookie,
> header, name,
> or parameter.  Given that you're using 'property', you need to
> tell it the
> 'name' of the bean that has this property.  (Logic tags do not
> default to an
> enclosing <html:form> bean the way the html tags do.)
> 
> How about
>    <span id="selectBox" style="display:<c:out
> value="${selstate}"/>">
> 
> -- 
> Wendy Smoak
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


=====

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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

Reply via email to