eclipse中添加了struts和hibernate 但是在写配置文件*.xml时没有提示??
web.xml中提示
怎么设置才能让它有提示呢?

解决方案 »

  1.   

    比如:当敲写了<form 就会有下拉提示<form-beans>
    直接按回车就完成输入<form-beans>了
    写上<global就有<global-exceptions>下拉项提示,敲回车就<global-exceptions>
      

  2.   

    在hibernate.hbm.xml中
    <hibernate就有<hibernate-configuration>下拉提示出现,回车就完成输入,很方便的。
      

  3.   

    网上说:“在不能上外网的情况下,我们在eclipse中写xml时无法得到标签的提示,因为xml中的dtd获取不到.
       看了下外面的资料。说是选择"window"-->"preferences"--->"Myeclipse Enterprise Workbench"-->"Files and Editors"-->"xml"-->"xml category"
       在user specified Entries中新增一个. (Location选择dtd文件在本地的路径,keytype选择uri,key选择xml中的dtd文件,比如http://struts.apache.org/dtds/strutss-2.0.dtd) 
    本篇文章来源于:开发学院 http://edu.codepub.com   原文链接:http://edu.codepub.com/2010/0116/19804.php”但是我没设置成功
      

  4.   

    把struts和Hibernate包中的tld文件拷贝到web-inf文件夹下试试
      

  5.   

    tld文件放到web-inf下,应该就有了,按alt+/试试,如果没有,就到windows-preferences-Gerneral=keys,找到Content Assist,把binding改为alt+/,word complation的binding删掉,再试试了。