2012-07-31 79 views
0

當我想運行我的xhtml文件時,firefox文件下載在Tomcat內部運行。 我該怎麼辦?請幫幫我。在這個頁面之前,它運行良好。但現在firefox文件下載在eclipse裏面運行。我不知道我該怎麼做。 enter image description here爲什麼firefox文件下載在Tomcat內部運行?

personel.xhtml

<?xml version="1.0" encoding="utf-8" ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" 
xmlns:h="http://java.sun.com/jsf/html" 
xmlns:p="http://primefaces.prime.com.tr/ui" 
> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>اطلاعات پرسنلی</title> 
</head> 
<body> 
<h1>اضافه کردن پرسنل جدید</h1> 
     <h:form> 

      <h:panelGrid columns="6" dir="rtl"> 
       شماره پرسنلی : 
       <h:inputText id="name" value="#{personelMB.personel_id}" 
        size="20" required="true" 
        label="id" > 
       </h:inputText> 
       نام : 
       <h:inputText id="name" value="#{personelMB.pname}" 
        size="20" required="true" 
        label="Name" > 
       </h:inputText> 

       نام خانوادگی: 
       <h:inputText id="family" value="#{personelMB.pfamily}" 
        size="20" required="true" 
        label="family" > 
       </h:inputText> 

       آدرس : 
       <h:inputTextarea id="address" value="#{personelMB.paddress}" 
        cols="30" rows="10" required="true" 
        label="Address" > 
       </h:inputTextarea> 


      تلفن: 
       <h:inputText id="tel" value="#{personelMB.pphone}" 
        size="20" required="true" 
        label="tel" > 
       </h:inputText> 
      </h:panelGrid> 

      <h:commandButton value="درج اطلاعات" action="#{personelMB.addPersonel()}" /> 

     </h:form> 
</body> 
</html> 
+3

「火狐瀏覽器在Tomcat內部運行」是什麼意思? – 2012-07-31 07:22:15

+0

@PeterGwiazda,我上面添加的圖片信息出現在我運行我的xhtml文件時。 – samira 2012-07-31 07:24:34

回答

1

我打掃tomcat目錄和它解決。

相關問題