最简单的Struts为什么生成不了jsp???少了哪一部???
有个问题请教大家
我下的是eclipse3.2 装了myeclipse5.0 用的是tomcat5.5 准备学习struts,可能自己太笨,最简单的JSP页面都没能搞出来了,
1.file---myeclipse----j2ee----webproject 己经 add struct capablities,加入了10个jar文件。
2.在webRoot中建立了一个JSP(advanted tenplates) 什么都不做,就在body中 写了几个单词!
代码如下
<%@ page language= "java " pageEncoding= "ISO-8859-1 "%>
<%@ taglib uri= "http://struts.apache.org/tags-bean " prefix= "bean " %>
<%@ taglib uri= "http://struts.apache.org/tags-html " prefix= "html " %>
<%@ taglib uri= "http://struts.apache.org/tags-logic " prefix= "logic " %>
<%@ taglib uri= "http://struts.apache.org/tags-tiles " prefix= "tiles " %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN ">
<html:html lang= "true ">
<head>
<html:base />
<title> MyJsp.jsp </title>
<meta http-equiv= "pragma " content= "no-cache ">
<meta http-equiv= "cache-control " content= "no-cache ">
<meta http-equiv= "expires " content= "0 ">
<meta http-equiv= "keywords " content= "keyword1,keyword2,keyword3 ">
<meta http-equiv= "description " content= "This is my page ">
<!--
<link rel= "stylesheet " type= "text/css " href= "styles.css ">
-->
</head>
<body>
helloworld!
</body>
</html:html>
就去运行tonmcat,好象不行,提示是 "500 "的错误代码,为什么呢?还有什么没做吗
运行一般的JSP是可以的.请大家帮帮忙,
------解决方案--------------------用netbean 比较好噢。呵呵