| 发表于:2007-05-06 22:24:46 楼主 |
sayhello.jsp代码如下: <%@ page contenttype= "text/html; charset=utf-8 " %> <%@ taglib prefix= "s " uri= "/struts-tags " %> <!doctype html public "-//w3c//dtd html 4.01 transitional//en "> <html> <head> <title> say hello </title> </head> <body> <h3> say "hello " to: </h3> <s:form action= "helloworld "> name: <s:textfield name= "name " /> <s:submit /> </s:form> </body> </html> 这段代码不能运行。我的运行环境是jdk1.5,tomcat5.5.17。而直接在浏览器中直接输入同目录下的helloworld却能运行。helloword.jsp代码如下: <%@ page contenttype= "text/html; charset=utf-8 " %> <%@ taglib prefix= "s " uri= "/struts-tags " %> <!doctype html public "-//w3c//dtd html 4.01 transitional//en "> <html> <head> <title> hello </title> </head> <body> <h3> <s:property value= "name " /> </h3> </body> </html> 这是什么原因??? |
|
|
|
|