You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Vernon Wu <ve...@gatewaytech.com> on 2003/03/01 01:52:04 UTC
Server Error: Illegal use of -style tag without as its
direct parent
I get this error when I run my application on Tomcat 4.1.18 (it is fine on TC4.0)
Two places in the JSP file using the tag as the followings:
<c:choose>
<c:when test="${empty prov.photoPaths}">
<IMG SRC="<c:url value="/images/no_photo.gif" />" NAME="No Photo Available"
ALIGN=BOTTOM BORDER=0>
</c:when>
<c:otherwise>
<IMG SRC="<c:out value="${prov.photoPaths[0]}" />" NAME="Photo" ALIGN=BOTTOM
BORDER=0>
</c:otherwise>
</c:choose>
AND
<c:choose>
<c:when test="${user_locale == 'zh'}" >
<fmt:message key='countryCode.${prov.country}'/> <fmt:message key='${prov.province}'/> <c:out
value="${prov.city}"/>
</c:when>
<c:otherwise>
<c:out value="${prov.city}"/>, <fmt:message key='${prov.province}'/> <fmt:message
key='countryCode.${prov.country}'/>
</c:otherwise>
</c:choose>
To my eyes, I can't see any problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
Re: Server Error: Illegal use of -style tag without as
its direct parent
Posted by Vernon Wu <ve...@gatewaytech.com>.
Please ignore this one. Right after I click the send button I recoginze another JSP file is used as the sidebar of the
page. There is a problem there.
28/02/2003 4:52:04 PM, Vernon Wu <ve...@gatewaytech.com> wrote:
>
>I get this error when I run my application on Tomcat 4.1.18 (it is fine on TC4.0)
>
>Two places in the JSP file using the tag as the followings:
>
><c:choose>
> <c:when test="${empty prov.photoPaths}">
> <IMG SRC="<c:url value="/images/no_photo.gif" />" NAME="No Photo Available"
>ALIGN=BOTTOM BORDER=0>
> </c:when>
> <c:otherwise>
> <IMG SRC="<c:out value="${prov.photoPaths[0]}" />" NAME="Photo" ALIGN=BOTTOM
>BORDER=0>
> </c:otherwise>
></c:choose>
>
>AND
>
><c:choose>
> <c:when test="${user_locale == 'zh'}" >
> <fmt:message key='countryCode.${prov.country}'/> <fmt:message key='${prov.province}'/> <c:out
>value="${prov.city}"/>
> </c:when>
> <c:otherwise>
> <c:out value="${prov.city}"/>, <fmt:message key='${prov.province}'/> <fmt:message
>key='countryCode.${prov.country}'/>
> </c:otherwise>
></c:choose>
>
>To my eyes, I can't see any problem.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org