日期:2014-05-18  浏览次数:20796 次

关于struts-config.xml的配置问题
在eclipse+myeclipse的组合中写了一个简单的项目,结果在打开struts-config.xml配置文件时出现如下错误:

project myLogin id not configured as a myEclipse web-Struts project.
Therefore the myEclipse Struts Editor may not be used with Struts-config.xml. The default XML
editor has been used to open the file instead.

eclipse3.3.2+myeclipse6.5版本的组合,

请高手帮我分析一下,谢谢!

------解决方案--------------------
说的是你这个项目不是Struts项目,所以不能用struts编辑器打开,只能用默认的XML编辑器打开。


打开myeclipse-->
右击项目-->MyEclipse-->Add Struts Capabilities ...。

要是没有“Add Struts Capabilities ”,我的做法是新建一个web工程,再执行上述动作,再把之前项目的代码导入进来。

------解决方案--------------------
探讨
说的是你这个项目不是Struts项目,所以不能用struts编辑器打开,只能用默认的XML编辑器打开。


打开myeclipse-->
右击项目-->MyEclipse-->Add Struts Capabilities ...。

要是没有“Add Struts Capabilities ”,我的做法是新建一个web工程,再执行上述动作,再把之前项目的代码导入进来。

------解决方案--------------------
lz忘记添加Struts容器了,选中你的项目,然后按照一楼的的来做应该就没问题了
------解决方案--------------------
同意楼上的~
------解决方案--------------------
引用楼主 hzmyxy 的帖子:
在eclipse+myeclipse的组合中写了一个简单的项目,结果在打开struts-config.xml配置文件时出现如下错误:

project myLogin id not configured as a myEclipse web-Struts project.
Therefore the myEclipse Struts Editor may not be used with Struts-config.xml. The default XML
editor has been used to open the file instead.

eclipse3.3.2+myeclipse6.5版本的组合,

请高手帮我分析一下,谢谢!

------解决方案--------------------
抱歉,引用错了,呵呵
------解决方案--------------------
就是啊 直接导入 struts就可以了。
------解决方案--------------------
探讨
说的是你这个项目不是Struts项目,所以不能用struts编辑器打开,只能用默认的XML编辑器打开。


打开myeclipse-->
右击项目-->MyEclipse-->Add Struts Capabilities ...。

要是没有“Add Struts Capabilities ”,我的做法是新建一个web工程,再执行上述动作,再把之前项目的代码导入进来。

------解决方案--------------------
果然是struts的配置问题啊
------解决方案--------------------
直接改配置文件。。。。
------解决方案--------------------
LS给的可行~~~~~~~~~~~
------解决方案--------------------
Struts Capabilities