Results 1 to 3 of 3

Thread: View does not render ${} in JSP

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Posts
    5

    Default 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. #2
    Join Date
    Jun 2005
    Posts
    1

    Default

    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)

  3. #3
    Join Date
    Jun 2005
    Location
    Stirling, Scotland
    Posts
    6

    Default

    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 at 04:16 AM.

Similar Threads

  1. Replies: 9
    Last Post: Nov 1st, 2005, 10:36 PM
  2. Replies: 0
    Last Post: Aug 29th, 2005, 03:23 PM
  3. PageCompononentListener Hooks...JIRA issue?
    By amcauley in forum Swing
    Replies: 9
    Last Post: Apr 15th, 2005, 06:10 AM
  4. Content Provider vs View Model
    By Martin Kersten in forum Swing
    Replies: 21
    Last Post: Mar 10th, 2005, 02:25 PM
  5. Replies: 1
    Last Post: Feb 15th, 2005, 09:50 AM

Posting Permissions

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