aspose file tools
The moose likes JSF and the fly likes Redirect *.jsp to custom servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Redirect *.jsp to custom servlet?" Watch "Redirect *.jsp to custom servlet?" New topic
Author

Redirect *.jsp to custom servlet?

Rick Beaver
Ranch Hand

Joined: Dec 14, 2004
Posts: 464
Hi

All calls to *.faces are working OK with Faces Servlet. If a client requests a JSF jsp directly (with .jsp instead of .faces) the server shows an exception stack trace.

What I want to do is to send all direct requests to jsp to an error servlet. The problem I have is that when I set up a servlet mapping in the web.xml file I am redirected to my Error Servlet even when calling a file with the .faces extension.

Has anyone done anything similar or know of a way around this?

Many thanks


ph34r my 133t j4v4 h4><0r1ng sk177z
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Can you show your web-xml file to know how are you managing URL mapping.


- Varun
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Redirect *.jsp to custom servlet?
 
Similar Threads
what is .faces file?
related to .do and .faces
..jsp extension JSF web.xml
Tomahawk Error
Redirect requests for *.jsp to *.jsf?