• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

..jsp extension JSF web.xml

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am novice to JSF application. I am using Eclipse(3.3), Tomcat(6.0) and Myfaces for my application. I have successfully deployed the application using tomcat. My question is: this is the part of web.xml which works fine

<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>

when is enter the following URL http://localhost:8080/careerMask/index.jsf it gives me the output.

My question is . If I configure the web.xml for .jsp extensions,I get a whole lot bunch of exception ( the stack trace wont end). Who can I map *.jsp to the Face Servlet. Actually, is it possible to map .jsp files to Faces Servlet. Please let me know the problem or any other relevant information.

Thanks,
Rishi
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it a StackOverflowError ? By default, JSF redirects your requests to a view whose extension is ".jsp". So if you map Faces Servlet to all jsp extension, I guess that it will keep on forwarding to the same view again and again.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic