Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

JSTL Weblogic

Manoj Kansal

2003-09-11


Hi All,
I am new to JSTL. and running a testing code on weblogic 7.0. Previously I was getting a problem for standard.jar in classpath. That is resolved.
Now when I run the following code (http://localhost:7001/test.jsp?name=Manoj+Kansal), I get exception mentioned below. Does weblogic 7.0 support JSTL.
I have placed tld files in web-inf/tld folder and standard.jar file in my classpath.

<html>
<body>
<%-- Declare the core library --%>
  <%@(protected)" %>

  <c:choose>
    <c:when test="${empty param.name}">
       Please enter your name.
    </c:when>
    <c:otherwise>
       Hello <b><c:out value="${param.name}" /></b>!
    </c:otherwise>
  </c:choose>
</body>
</html>


Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.


<11-Sep-2003 12:28:52 IST> <Error> <HTTP> <101017> <[ServletContext(id=19831230,
name=DefaultWebApp,context-path=)] Root cause of ServletException
javax.servlet.jsp.JspTagException: An error occurred while evaluating custom act
ion attribute "test" with value "${empty param.name}": Unable to parse custom ac
tion attribute "test" with value "${empty param.name}": encountered "param", exp
ected one of ""}", ".", ">", "gt", "<", "lt", "==", "<=", "le", ">=", "ge", "!="
, "[", "+", "-", "*", "/", "div", "%", "mod", "and", "or""
    at org.apache.taglibs.standard.tag.el.core.WhenTag.condition(WhenTag.jav
a:100)
    at org.apache.taglibs.standard.tag.common.core.WhenTagSupport.doStartTag
(WhenTagSupport.java:102)
    at jsp_servlet.__test._jspService(__test.java:124)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5445)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:780)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3105)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2588)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>

Please help.

Thanks
Manoj

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


©2008 junlu.com - Jax Systems, LLC, U.S.A.