还有就是:HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application使用MyEclipse自带的tomcat能一个一个访问1xx.jsp、2xx.jsp、3xx.jsp页面的内容!!!!为什么会这样,小女子初学求指导
在程序中找不到jar或者没有加载web.xml.
少struts包吧
<%@ 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" %><html:html lang="true">
<head>
<title>LoginDemo.jsp</title>
</head>
<body>
<%
request.setAttribute("name","MLDN");
session.setAttribute("password","LXH");
%>
<logic:present name="name" scope="request"></logic:present>
<h1>指定的属性存在 :${name}</h1>
<logic:notPresent name="name" scope="request">
<h1>指定属性不存在</h1>
</logic:notPresent>
<logic:present name ="password" scope="session"></logic:present>
<h1>指定的属性存在 :${password}</h1>
<logic:notPresent name="password" scope="session">
<h1>指定属性不存在</h1>
</logic:notPresent>
</body>
</html:html>
<%@ 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" %>
是上面这4个吧!有了啊