Struts2(一):怎么创建对应版本的struts.xml

1.eclisep导航菜单:windows->preferences->Xml->Xml Catalog;

2.在Xml Catalog右侧,添加一个新的XML Catalog:

3,在Src\下,新建一个struts.xml。

右键-》新建->others->Xml-> Xml File-> New Xml File窗口中,选择“Create XML file from a DTD file“:

Next:Select XML Catalog entry.

新建好后,如下图所示:

这时候,在struts.xml编写如果不提示,可以把这样修改:

 把key Type修改为URI.

posted @ 2016-05-23 21:25  cctext  阅读(3417)  评论(0编辑  收藏  举报