Jump to content

How to load .jsp instead of .faces

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
ThemePark

ThemePark

    Programmer

  • Members
  • PipPipPipPip
  • 124 posts
I am trying to learn JSF, and I have made a small project in Eclipse. When I choose Run as Server, I get a RunTimeException saying "Cannot find FacesContext". I know this is because I need to use .faces instead of .jsp or .jsf. But I would much rather be able to use .jsp or nothing at all, so that /Test or /Test/File.jsp would have the same effect as /Test/File.faces in loading the actual webpage. I figure I need to change something in faces-config.xml or web.xml, but I don't know what.

#2
GMVResources

GMVResources

    Learning Programmer

  • Members
  • PipPipPip
  • 72 posts
I think you should just use .faces instead of looking through the hard path.