jsp 练习 contentType练习 博客分类: web开发 contentTypejsp
程序员文章站
2024-03-16 17:18:58
...
用网页打开contentType="text/html"
用word打开contentType="application/msword"
用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>