eclipse中添加了struts和hibernate 但是在写配置文件*.xml时没有标签提示??
web.xml中有提示Struts中没有
比如:当敲写了<form 就会有下拉提示<form-beans>
直接按回车就完成输入<form-beans>了
写上<global就有<global-exceptions>下拉项提示,敲回车就<global-exceptions怎么设置才能让它有提示呢?

解决方案 »

  1.   

    写了<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd">
      

  2.   

    网上说:
    IED Eclipse Java EE IDE for Web Developers:DTD 类型约束文件    1. Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽            2.在Add XML Catalog Entry 对话框中选择或输入以下内容:        Location: F:\soft\programmingSoft\Framework\Ibatis\sql-map-config-2.dtd        Key Type: URI        KEY: http://ibatis.apache.org/dtd/sql-map-config-2.dtd        XSD 类型约束文件    1. Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽            2.在Add XML Catalog Entry 对话框中选择或输入以下内容:        Location: F:\soft\programmingSoft\Framework\Spring\spring-framework-2.5.6.SEC01-with-dependencies\spring-framework-2.5.6.SEC01\dist\resources\spring-beans-2.5.xsd        Key Type: Schema Location        KEY: http://www.springframework.org/schema/beans/spring-beans-2.5.xsdF:\soft\programmingSoft\Framework\Ibatis\sql-map-config-2.dtd
    和F:\soft\programmingSoft\Framework\Spring\spring-framework-2.5.6.SEC01-with-dependencies\spring-framework-2.5.6.SEC01\dist\resources\spring-beans-2.5.xsd从什么地方得到的?
      

  3.   

    是在你下载的STURTS和HIBERNATE全部压缩包里面