[jboss-user] [JBoss Seam] - Re: how to prevent *.xhtml pages from downloading?

stephen.friedrich do-not-reply at jboss.com
Fri Aug 10 18:03:01 EDT 2007


Maybe it saves somebody from a little trial and error.
If you just want to serve your pages (rather than source code) with *.xhtml URLs these rules do the job fine:
	<rule match-type="wildcard">
  | 		<from>/**.xhtml**</from>
  | 		<to>/$1.seam$2</to>
  | 	</rule>
  | 
  | 	<outbound-rule match-type="wildcard">
  | 		<from>/**.seam**</from>
  | 		<to>/$1.xhtml$2</to>
  | 	</outbound-rule>

Also be sure to add the rewrite filter as the _first_ filter in web.xml


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073216#4073216

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073216



More information about the jboss-user mailing list