Announcement Announcement Module
Collapse
No announcement yet.
View does not render ${} in JSP Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • View does not render ${} in JSP

    My elementary Spring application does not work; while my controller
    is invoked, the view does not subsititute ${} macros in the
    JSP with the values supplied in the model.

    I am using an extension of AbstractController and InternalResourceViewResolver. Here is the relevant excerpt from
    my -servlet.xml:


    <bean id="urlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping
    ">
    <property name="urlMap">
    <map>
    <entry key="/hello.htm">
    <ref bean="rkcontroller" />
    </entry>
    </map>
    </property>
    </bean>

    <bean id="viewResolver" class="org.springframework.web.servlet.view.Intern al
    ResourceViewResolver">
    <property name="viewClass"><value>org.springframework.web.se rvlet.view.Inter
    nalResourceView</value></property>

    <property name="prefix"><value>/WEB-INF/</value></property>
    <property name="suffix"><value>.jsp</value></property>
    </bean>


    Please help!

    uma_rk

  • #2
    You've probably forgotten the >2.2 web-app DTD in web.xml. JSP EL (Expression Language - i.e. ${} expressions) became available in JSP 2.2 and enabled by default in 2.3 (or something to that effect: somebody correct me if I'm wrong)

    Comment


    • #3
      Have a quick look at previous post http://forum.springframework.org/showthread.php?t=15164
      Think this might be the same problem.
      Last edited by robyn; May 16th, 2006, 04:16 AM.

      Comment

      Working...
      X