Results 1 to 2 of 2

Thread: View Resolver issue help needed

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Location
    Faridabad India
    Posts
    138

    Default View Resolver issue help needed

    Hi,

    My application uses Icefaces + Spring + Hibernate

    I am using spring MVC for my login page.Once a user is authenticated he moves to the homepage which is a iface.First i configured my view resolver in ***-servlet.xml as

    <bean id="viewResolver" class="org.springframework.web.servlet.view.Intern alResourceViewResolver">
    <property name="viewClass"> <value>org.springframework.web.servlet.view.JstlVi ew</value>
    </property>
    <property name="prefix">
    <value>/jsp/</value>
    </property>
    <property name="suffix">
    <value>.iface</value>
    </property>
    </bean>

    due to which all subsequent iface requests used to fail because for them there was no URLMAPPING.i.e. i only need my homepage request to be trapped by spring.

    I tried fixing it with ResourceBundleViewResolver :

    <bean id="viewResolver"
    class="org.springframework.web.servlet.view.Resour ceBundleViewResolver">
    <property name="basename" value="com.lightspeed.util.views" />
    </bean>

    views.properties
    myhome.class=org.springframework.web.servlet.view. JstlView
    myhome.url=/jsp/myhome.jsp

    but it gives me :
    org.apache.jasper.JasperException: /jsp/myhome.jsp(7,6) &lt;jsp:output&gt; must not be used in standard syntax


    I know it is just a simple thing i might be missing.Is there a way out.Please help any suggestions will be appreciated.

    Thanx n Regards
    Pankaj

  2. #2
    Join Date
    Jul 2007
    Location
    Faridabad India
    Posts
    138

    Default Got it fixed

    The extension has to be iface it worked.

    But that was on weired error.



    Thanx
    Pankaj

Posting Permissions

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