Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
nick - 31 May 2005 10:52 GMT
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
Wendy Smoak - 31 May 2005 15:41 GMT
> 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.

Signature

Wendy Smoak

nick - 01 Jun 2005 05:10 GMT
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>
        <%iCount++;%>
        <%if(iCount<(iHmSize-1)){%>
        >>
        <%}else if(iCount==(iHmSize-1)){%>
        ::
        <%}%>
</logic:iterate>
Wendy Smoak - 01 Jun 2005 15:52 GMT
> 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.

Signature

Wendy Smoak



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.