Results 1 to 3 of 3

Thread: Spring + Iceface View Resolver

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

    Default Spring + Iceface View Resolver

    Hi,

    I am toiling hard for quite sometime now but issue doesn't seem to get resolved.

    I have my login page i authenticate a user with Spring MVC and from there on all subsequent requests are of iface.
    My dispatch-servlet.xml:
    <bean id="simpleUrlMapping" class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
    <property name="mappings">
    <props>
    <prop key="/login.html">loginController</prop>
    </props>
    </property>
    </bean>
    <bean id="loginController"
    class="com.lightspeed.webapp.login.LoginController ">
    <property name="sessionForm">
    <value>true</value>
    </property>
    <property name="commandName">
    <value>loginCommand</value>
    </property>
    <property name="commandClass">
    <value>com.lightspeed.webapp.login.LoginCommand</value>
    </property>

    <property name="authenticationService">
    <ref bean="authenticationService" />
    </property>
    <property name="formView">
    <value>login</value>
    </property>
    <property name="successView">
    <value>myhome</value>
    </property>
    </bean>
    <bean id="authenticationService"
    class="com.lightspeed.webapp.login.AuthenticationS ervice">
    </bean>
    <bean id="viewResolver" class="org.springframework.web.servlet.view.Resour ceBundleViewResolver">
    <property name="basename" value="com.lightspeed.util.views" />
    </bean>

    It gives error once i try to access an iface page.

    javax.servlet.ServletException: Could not resolve view with name 'login' in servlet with name 'dispatch'


    Could anyone help?I am in such a mess.

    Thanx n regards,
    Pankaj

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

    Default Sos

    I am clear in my head that i can configure both Spring MVC and JSF controllers in my web.xml and the request will be served on the basis of the url that you have mapped to which controller, Spring Web MVC or JSF.


    now i am calling iface from the springMVC that works ok but why all other iface requests are causing issues.


    Any clue? SOS

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

    Default

    http://localhost:8080/lightspeed/login.html?rvn=1

    This is what u get in the address bar seems like every subsequent request is sent to spring MVC controller.Is there a way that i can change the URl?Clicking on ice:commandlink doesn't make any change to the URL?



    Thanx

Posting Permissions

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