日期:2014-05-17  浏览次数:20667 次

myeclipse新建一个页面,出了点小问题,花大家10秒钟帮忙看看
在一个web project新建一个jsp页面如下:
Java code
<%@ page language="java" pageEncoding="UTF-8"%>

<%@ 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>
    This a struts page. <br>
  </body>
</html:html>

页面自动加上了struts1的标签,struts1的项目还好,其他的每次新建一个页面就得删除
<%@ 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" %>这些标签,要不就报错,看着就不爽,也不知道什么时候开始就自动加了,在哪儿设置,求解惑

------解决方案--------------------
http://hi.baidu.com/quce227/blog/item/5299cb99cdc543a2c8eaf4a2.html
都strusts了
百度一下应该好多,改下模板应该可以吧