Straight from the doc-
The <logic:match ...> tag perform a pattern matching operation on the variable specified in the tag
where value would be some hardcoded string or you can compare to a property
I am not familiar with the implementation of a bean (attribute) in the value clause
Anyone else?

Martin-

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "J Gotsch" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Sunday, May 21, 2006 6:40 PM
Subject: JSP TAG Issue - can't find bean in JSP!


 Hello,
I am trying to compare 2 values within a JSP using a logic:match tag as illustrated below:

 <% String menuRole = null; %>
 <% menuRole="SUPER" %>
 <logic:match
    name="<%=menuRole%>" value="<% =LookupConstants.SUPER%>">
 </logic:match>

 //note that LookupConstants.SUPER returns "SUPER".

 However, I get the following error whenever accessing the JSP:

2006-05-21 14:44:17,700 [HttpRequestHandler-1635615] ERROR org.apache.struts.taglib.tiles.InsertTag.doEndTag - ServletExcept
 ion in '/WEB-INF/pages/menu.jsp': Cannot find bean: "SUPER" in any scope.

Can you please let me know what I'm doing wrong? How can I use the menuRole variable in a compare tag?


---------------------------------
Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.

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

Reply via email to