tomcat - struts taglib problem -- The end tag "</logic:equal" is unbalanced

N

nick

hello i am facing the problem with the taglibs. my jsp page works fine
with the welogic but it is throwing the following error when using the
tomcat

[ServletException in:/jsp/subHeader.jsp] /jsp/subHeader.jsp(54,16) The
end tag "</logic:equal" is unbalanced'
org.apache.jasper.JasperException: /jsp/subHeader.jsp(54,16) The end
tag "</logic:equal" is unbalanced at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
at
 
W

Wendy Smoak

nick said:
hello i am facing the problem with the taglibs. my jsp page works fine
with the welogic but it is throwing the following error when using the
tomcat

[ServletException in:/jsp/subHeader.jsp] /jsp/subHeader.jsp(54,16) The
end tag "</logic:equal" is unbalanced'

Sounds like you don't have the same number of opening and closing
<logic:equal> tags. Maybe WebLogic is more forgiving of errors? Should be
easy to fix, just make sure all your tags match up.
 
N

nick

All the tags are closed as in the follwing code but still getting the
same error....

<logic:iterate id="subHeaderElement" name="SUBHEADERVO"
property="hmSubheader">
<bean:define id="keySubheader" name="subHeaderElement"
property="key"/>
<bean:define id="linkSubheader" name="subHeaderElement"
property="value" />
<logic:equal name="linkSubheader" value="">
<bean:message key="<%=(String)keySubheader%>"/>
<logic:equal name="MENUID" value="000100">
<logic:notEqual name="HISTMENUID" value="010101">
<bean:write name="<%=RWAConstants.SESSION_LOGGEDUSER%>" />
</logic:notEqual>
</logic:equal>
</logic:equal>
<logic:notEqual name="linkSubheader" value="">
<A HREF="<%=linkSubheader%>"><bean:message
key="<%=(String)keySubheader%>"/></A>
</logic:notEqual>
<%}else if(iCount==(iHmSize-1)){%>
::
<%}%>
</logic:iterate>
 
W

Wendy Smoak

nick said:
All the tags are closed as in the follwing code but still getting the
same error....

Well the error is pretty clear, it thinks the tags are unbalanced. How
large is "/jsp/subHeader.jsp"? If it's not too big, post it here, otherwise
find some web space and post a link to it. Are you possibly trying to put
the opening tag in one JSP and the ending tag in another JSP?

Are you absolutely certain that you're running the same code in WebLogic as
in Tomcat? A difference as small as one character in that JSP could cause
your error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top