jsp 练习 contentType练习

用网页打开contentType="text/html"
用word打开contentType="application/msword"


<%@ page contentType="text/html;charset=gb2312"  %>

<html>

    
    <title>My JSP 'hello7.jsp' starting page</title>
    
  </head>
  
  <body>
	使用HTML处理所接收到的信息:
	<input type="text" size=10>	
  </body>
</html>


<%@ page contentType="application/msword; charset=gb2312"  %>
<html>
  <head>
   
    <title>My JSP 'hello8.jsp' starting page</title>
    
	
  </head>
  
  <body> 
    eThis is my JSP page. <br>
    <input type="text" name="at">
  </body>
</html>

你可能感兴趣的:(jsp,contenttype)