This content has been marked as final.
Show 3 replies
-
1. Re: beginner can't figure out how to change URL from home.se
norman.richards Feb 23, 2007 11:02 AM (in response to icpooreman)The default extension is set in web.xml. It's not a Seam thing, it's a JSF thing.
-
2. Re: beginner can't figure out how to change URL from home.se
fernando_jmt Feb 23, 2007 11:09 AM (in response to icpooreman)This is not a Seam stuff, but I'll give you some hints to figure out (maybe you should read more about JSF ).
It depends what you have configured in your web.xml.
By instance, if you are using facelets, you should have this:<context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.xhtml</param-value> </context-param>
Now, the Faces Servlet is configured to use *.seam whether you have this:<servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.seam</url-pattern> </servlet-mapping>
This means when you write a page like home.xhtml in your app. and in the browser you type: http://domain/helloworld/home.seam
This will open the JSF managed view for home.xhtml.
So, if you wanna change .seam to .html , you should change:<servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.html</url-pattern> </servlet-mapping>
Then all *.html extensions will call the respective .xhtml JSF managed view.
HTH. -
3. Re: beginner can't figure out how to change URL from home.se
icpooreman Feb 23, 2007 11:29 AM (in response to icpooreman)Thanks alot sorry about posting something off-topic I'm new to JSF as well.