This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Redirect *.jsp to custom servlet?  RSS feed

 
Rick Beaver
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show your web-xml file to know how are you managing URL mapping.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!