title: JSF 2 eclipse and JBOSS Dev studio + JBOSS tool, how to create a .xhtml file?
body: <p>I'm new to JSF so maybe it's a noob question.</p>
  
  <ol>
  <li>In eclipse, I create a new JSF project.</li>
  <li>After that, I open facex-config.xml, right click -> new view. Here, for every template I choose (html, xhtml, xhtml with xml syntax), eclipse always create a .jsp file.</li>
  <li>Now if I try to use JSF 2 tags (like h:link or h:head or h:ajax, jBoss throw errors (and eclipse too)</li>
  </ol>
  
  <p>I solved changing the extension to .xhtml and rewriting the header of the file like this:</p>
  
  <pre><code>&lt;html lang="en" xmlns:f="...." xmlns:h="..."&gt;
  </code></pre>
  
  <p>And with this, all works fine.</p>
  
  <p>The question is: how to create this xhtml file from eclipse instead of manually write it? Isn't JBOSS dev studio supposed to help me? :)</p>
  
  <p>ps: </p>
  
  <p>eclipse: juno</p>
  
  <p>jboss dev studio 6.0</p>
  
  <p>jboss as 7.1.1 final</p>
  
  <p><strong>EDIT:</strong>
  When the file is created from JBOSS dev studio (xhtml template) this is the result (test.jsp):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;%@ page language="java" contentType="text/html; charset=UTF-8"
      pageEncoding="UTF-8"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;f:view&gt;
      &lt;h:link&gt;test&lt;/h:link&gt;
  &lt;/f:view&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have to rename to .xhtml and remove the lines before !DOCTYPE[...] to get it working.
  I'm asking what am I doing wrong with JBOSS dev studio...</p>
  
  <p>Thanks.
  D.</p>