最近刚接触struts,要写那个web.xml和struts.xml文件,在视频上看见有代码提示,可不知道应该怎样配置,还请各位大虾帮忙啊,我用的是myeclipse5.1 all in one版本

解决方案 »

  1.   

    你把他的DDT拷进来就行啦
    struts2 web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">stuts.xml<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts PUBLIC 
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" 
        "http://struts.apache.org/dtds/struts-2.0.dtd">你也可以从window-->preferences-->MyEclipse-->Files and Editors-->XML-->XML Catalog下进行配置
      

  2.   

    我是这样配的window-->preferences-->MyEclipse-->Files and Editors-->XML-->XML Catalog下进行
    URI:    file:///C:/Documents%20and%20Settings/Administrator/workspace/struts-2.0.dtd//这个是我在lib文件中解压出来的
    Key Type: Public ID
    Key: -//Apache Software Foundation//DTD Struts Configuration 2.0//ENADD了这么一条,可还是不行啊,大虾再帮忙看看啊,谢了
      

  3.   

    你把他的DTD拷进来就行啦  
    什么意思啊?
    帮帮忙啊