Two Laptop Bag
The moose likes JSF and the fly likes why my web pages are downloadable? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "why my web pages are downloadable?" Watch "why my web pages are downloadable?" New topic
Author

why my web pages are downloadable?

Kamila Rutkowski
Ranch Hand

Joined: Sep 22, 2009
Posts: 37
I have a JSF project. when I run it on tomcat and type the real name of my web pages (for example index.xhtml) in browser, the file download dialog appears so I can view the source code of my JSF page! how I can prevent this?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8142
    
  52

Make sure you have a servlet-mapping for the *.xhtml url-pattern to point to the FacesServlet.


[My Blog] [JavaRanch Journal]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56179
    
  13

Not Tomcat-related. Moved to the JSF forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Kamila Rutkowski
Ranch Hand

Joined: Sep 22, 2009
Posts: 37
Bear Bibeault wrote:Not Tomcat-related. Moved to the JSF forum.


Thanks so very much
Kamila Rutkowski
Ranch Hand

Joined: Sep 22, 2009
Posts: 37
Jaikiran Pai wrote:Make sure you have a servlet-mapping for the *.xhtml url-pattern to point to the FacesServlet.


Thanks so very much
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: why my web pages are downloadable?
 
Similar Threads
hiding pages behind WEB-INF?
help needed in jsf
My first step. - Please help!
Seam and WAI?
c:import with Facelets