Asiq, As Scott mentioned, this is both a ³You need to understand Java web application structure² and ³You need to understand how Spring MVC / Web Flow works² kind of responses. For the sake of this thread, /WEB-INF/cas-servlet.xml contains URL mappings which connect URLs to controllers that handle their requests. These controllers are configured to use a view defined within your view¹s properties file like /WEB-INF/classes/default_views.properties.
You should spend some time and understand how the current CAS architecture does things by going through the source and learning from its example or by going to the Spring site and reading documentation on Spring Web Flow and Spring MVC. HTH, A- REFERENCES: 1. cas-servlet.xml : https://www.ja-sig.org/svn/cas3/tags/cas-3-3-3-final/cas-server-webapp/src/m ain/webapp/WEB-INF/cas-servlet.xml 2. default_views.properties : https://www.ja-sig.org/svn/cas3/tags/cas-3-3-3-final/cas-server-webapp/src/m ain/webapp/WEB-INF/classes/default_views.properties 3. Spring Web Flow 1.0 : http://static.springframework.org/spring-webflow/docs/1.0.x/spring-webflow-r eference.pdf 4. Spring Web Flow 2.0 : http://static.springframework.org/spring-webflow/docs/2.0.x/reference/pdf/sp ring-webflow-reference.pdf 5. Spring 2.5 : http://static.springframework.org/spring/docs/2.5.x/spring-reference.pdf On 7/29/09 6:46 AM, "Scott Battaglia" <[email protected]> wrote: > This has been answered multiple times. You can't reference a file directly > that is stored under WEB-INF. You either need to put it under /cas (like > index.jsp which is in the WAR) or map it via a controller. > > This is also not a CAS question. I suggest you understand how Java-based web > applications work and are deployed. Otherwise you'll encounter these problems > with any web application you develop. > > > On Wed, Jul 29, 2009 at 12:13 AM, Asiq <[email protected]> wrote: >> Hi all, >> Sorry for posting same mail over and over. >> >> I am CAS user. I want to customize CAS login page. I need to add new link to >> the page say "FORGOT PASSWORD" link. >> But that page is not getting mapped to specified location >> >> My file is at: >> /WEB-INF/view/jsp/default/ui/casLoginView.jsp >> >> I tried >> <a href="ForgotPassword">Forgot Password ?</a> >> >> Can any body help me how to map this file to that location. >> What changes do i need to do in web.xml and cas-servlet.xml >> >> Is there any way to map it directly? >> >> Thanks >> -- Andrew Feller, Business System Programmer LSU University Information Services 200 Frey Computing Services Center Baton Rouge, LA 70803 Office: 225.578.3737 Fax: 225.578.6400 -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
