Results 1 to 3 of 3

Thread: Problem with taglib/jstl/Weblogic 8.1

  1. #1
    Join Date
    May 2005
    Posts
    13

    Default Problem with taglib/jstl/Weblogic 8.1

    I have a problem somewhat similar to http://forum.springframework.org/showthread.php?t=24795

    I am using JSTL 1.1.2 in Weblogic 8.1. To get this to work I include (in web-inf/lib) the jsp-2.0.jar. Now, I'm trying to use Spring's web MVC (RC2) and taglibs to bind fields to a Map as found in other threads. I'm getting the following error :

    Code:
    java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext.getExpressionEvaluator()Ljavax/servlet/jsp/el/ExpressionEvaluator;
    	at org.springframework.web.util.ExpressionEvaluationUtils$Jsp20ExpressionEvaluationHelper.evaluate(ExpressionEvaluationUtils.java:387)
    	at org.springframework.web.util.ExpressionEvaluationUtils.doEvaluate(ExpressionEvaluationUtils.java:279)
    	at org.springframework.web.util.ExpressionEvaluationUtils.evaluateString(ExpressionEvaluationUtils.java:187)
    	at org.springframework.web.servlet.tags.BindTag.doStartTagInternal(BindTag.java:104)
    	at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:68)
    	at jsp_servlet._web_45_inf._ui.__ui._jspService(ui.jsp:170)
    	at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    	at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
    	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
    	at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:318)
    	at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:112)
    	at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:248)
    	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1055)
    	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:819)
    	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:728)
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
    	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            ...
    and here is the offending snippet of code (the first line is line 170 of the jsp):
    Code:
    <spring:bind path="form.pkgComments[${pkg.name}]">
    <textarea name='form.pkgComments[<c:out value="${pkg.name}"/>]' rows="5" cols="80" style="width: 100%"></textarea>
    </spring:bind>
    Apparently, ExpressionEvaluationUtils is deciding that its running in JSP 2.0 when it isn't really. Is there a way to do what I want or should I just give up and use onBind() in my controller for this piece of functionality?

    thanks
    mike

  2. #2

    Default Hi

    Actually weblogic 8.1 does not has servlet 2.4 container and JSP 2.0 support.

    So u canot work with this ese things in weblogic 8.1.But u can try JSTL 1.0 with JSP 1.1

    please let me know if it works for u

    thanks

    Ramakrishna

  3. #3
    Join Date
    May 2005
    Posts
    13

    Default

    Thanks for the reply Ramakrishna. I do realize that WL 8.1 does not support 2.4/2.0. However, I have been using JSTL 1.1.2 from jakarta for quite some time in 8.1 (I don't remember the reason for the move from 1.0--it was a long time ago). It has worked up until now trying to bind to a Map, as in the original message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •