myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Kulkarni <ashish.kulkarn...@gmail.com>
Subject Call spring controller from faces-config.xml
Date Mon, 14 Nov 2011 20:41:03 GMT
Hi
I am trying to integrate Spring 3.0 with current JSF 1.1 project, so i got
spring added and it works well, now i want to send request from jsf backing
bean to spring controller, so in my faces-config.xml i changed as below

<navigation-rule>
    <from-view-id>/jsf/mysearch/search.jsp</from-view-id>
    <navigation-case>
        <from-outcome>go</from-outcome>
        <!-- <to-view-id>/jsf/mysearch/details.jsp</to-view-id> -->
         <to-view-id>/spring/details</to-view-id>

        <redirect/>
    </navigation-case>
 </navigation-rule>

I have a Spring controller defined as  @RequestMapping(value = "/details")
and in my web.xml i have added
<servlet-mapping>
<servlet-name>appServlet</servlet-name>
<url-pattern>/spring/*</url-pattern>
</servlet-mapping>

When i direct call URL http://localhost:8080/myapp/spring/details it works
fine, but when jsf is forwarding this request it adds .faces so the URL
looks like below

http://localhost:8080/myapp/spring/details.faces

So how can i get it working any ideas
-- 
Ashish
www.ayurwellness.com
www.mysoftwareneeds.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message