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

Phantom do-not-reply at jboss.com
Sat Jun 9 06:26:30 EDT 2007


To prevent this you can use following structure in web.xml:


  |   <security-constraint> 
  |         <display-name>Restrict XHTML Documents</display-name>
  |         <web-resource-collection>
  |             <web-resource-name>XHTML</web-resource-name>
  |             <url-pattern>*.xhtml</url-pattern>
  |         </web-resource-collection>
  |         <auth-constraint>
  |             <role-name>NONE</role-name>
  |         </auth-constraint>
  |     </security-constraint>
  | 

But Is there any mechanism to automaticly redirect to corresponding seam page?

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

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



More information about the jboss-user mailing list