zoukankan      html  css  js  c++  java
  • 解决Struts配置文件里无提示信息的问题


    (1)在struts2配置文件编写的时候。有可能无法提示所有信息,在配置文件里打个”<” 后,并没有不论什么的提示信息(使用快捷键Alt+/ 也不提示)

    原因是下边的  "http://struts.apache.org/dtds/struts-2.0.dtd"这个是须要联网获得的!

    假设没有联网的话就没有办法获得信息。

    <span style="font-size:14px;"><!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
        "http://struts.apache.org/dtds/struts-2.0.dtd"></span>

    (2)解决方法有两个:

    第一个是直接连网就能够了!

    第二个手动配置


    第一步: window----------preferences-------------myeclipse-------files and editors  ---------xml--------xml Catalog




    第二步:点击 Add ---------File System



    然后找到你的struts-2.0.dtd文件  就可以(这个问津时存放在 struts-2.1.8-----struts-2.1.8srccoresrcmain esources)





    选择好后  点击Key Type   选择 URI这一选项。

    在下边的Key中输入   http://struts.apache.org/dtds/struts-2.0.dtd  点击 ok


    关闭页面又一次打开 就可以使用!


    到此完毕!





  • 相关阅读:
    324. Wiggle Sort II
    341. Flatten Nested List Iterator
    300. Longest Increasing Subsequence
    72. Edit Distance
    63. Unique Paths II
    221.Maximal Square
    House Robbers. 198 & 213
    [C++] 与比较有关的事情
    218.The Skyline Problem
    41. First Missing Positive
  • 原文地址:https://www.cnblogs.com/liguangsunls/p/6842596.html
Copyright © 2011-2022 走看看