我在调试一个程序时,遇到了一点问题:
a.jsp文件的内容如下:<%@ page contentType="text/html;charset=GB2312"%>
<html>
<body>
你想
<form action="word.jsp" method="post" name=form>
<input type="submit" name="submit" value="word">
</form>
</body>
</html>word.jsp的文件如下:<%@ page contentType="text/html;charset=GB2312"%>
<html>
<body><%
String str=request.getParameter("submit");
if(str==null)
{str="";}
if(str.equals("word"))
{response.setContentType("application/msword;charset=GB2312");
%>
<jsp:include page="hello.txt"/>
</body>
</html>hello.txt 文件中就只有几句文本,并且和a.jsp和word.jsp放在了同一目录root下,但运行时,a.jsp没有错误,跳转到word.jsp文件时就有错误,希望哪位高手大哥给予解答,谢谢