It worked now with both 0.9 and 0.10 now. Problem was not have @Controller 
annotation, my bad. I now tested with view-name as different name and that also 
worked well. I am trying to do this to make rave as identity provider and to 
secure your rest services using spring security. I will bring this to sandbox 
as soon i have a working prototype. 

Thanks
Raminder

On Mar 8, 2012, at 9:06 AM, Marlon Pierce wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Does your example work with 0.9 but not 0.10?
> 
> 
> Marlon
> 
> 
> On 3/7/12 4:49 PM, Raminderjeet Singh wrote:
>> Hi Devs,
>> 
>> I am trying to use rave code to secure my REST services and  user 
>> management. After login i don't want my application to go to PageController. 
>> I tried changing dispatcher-servlet.xml to give a different view name like 
>> mypage. That did not help. I implemented defaultView method in my 
>> MyPageController class.. 
>> <mvc:view-controller path="/" view-name="page"/>
>> 
>> I added exclude filter in dispatcher to exclude the default PageController 
>> and Add MyPageController but no luck even tried same package 
>> hierarchy.Similar setting is working for Marlon in 0.9 but not with 0.10. I 
>> am not able to find why? 
>> 
>> <context:component-scan base-package="org.apache.rave.portal.web.controller">
>>      <!-- We will exclude the PageController from scanning since we will 
>> override it.-->
>>              <context:exclude-filter type="assignable" 
>> expression="org.apache.rave.portal.web.controller.PageController"/>
>> </context:component-scan>
>> 
>> Yes i can update PageController in rave-web and then everything works 
>> fine(thats want i did to move forward). I want to do this as extension. I 
>> have this extension checked into [1] if anyone want to take a look. 
>> 
>> [1]: 
>> https://ogce.svn.sourceforge.net/svnroot/ogce/rave-extensions/rave-id-extension
>> 
>> code to see
>> src/main/java/org/apache/rave/portal/web/controller/MyPageController.java 
>> src/main/webapp/WEB-INF
>> 
>> 
>> Suggestions?
>> 
>> Thanks
>> Raminder
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iQEcBAEBAgAGBQJPWLz7AAoJEEfVXEODPFIDQ1sH/A4M98tqXjS6eUGaXOpey9sc
> RTwyeTrfW4sWAA/zX/qhYud3cxwc+bfsPbv852jXSk0jhoKYVVdVRDVJkFdQnSu/
> mIYQIcVEKOiKlQs3AS0GKvuet4nfQzxeIc5EdGIp47bjmwdkKaIsUicACzoDSOFa
> kpcdApLFqvfcQriNn5ZadUszUMsNwlPHPGSYa1NOCqCLX14nqkz+KsowWovPQB1X
> TCrezgB2mBF9cnIUbHWJRMjsRUoS1EwOEoAwbBodGZSaXGuYaUUp4pIARdNkZN6X
> w4t4teqzZ06gaSW9YcnKjH80mNOIBm3oVNgIEomH1FILJDL6ZLyFS2q2iT0NHkE=
> =RzFz
> -----END PGP SIGNATURE-----

Reply via email to