JAVA的struts框架问题

[复制链接]
查看11 | 回复4 | 2011-10-30 11:56:57 | 显示全部楼层 |阅读模式
写完代码之后,把struts配置文件关掉,然后再打开,就会出现一个这样的消息“Couldnotopentheeditor:ProjectAddStudentisnotconfiguredasaMyEclipseWeb-StrutsProject.ThereforetheMyEclipseStrutsEditormaynotbeusedwithstruts-config.xml.ThedefaultXMLEditorhasbeenusedtoopenthefileinstead.”,翻译过来是“不能打开编辑器:项目addstudent未配置为Myweb-struts项目。因此,My支柱不能用于struts-config.xml编辑。默认编辑器已被用来打开文件。”,struts环境已经配置好了,代码也没错,但是就是不能运行,哪里出问题了啊?急用!!!
回复

使用道具 举报

千问 | 2011-10-30 11:56:57 | 显示全部楼层
你用右键点项目有个myeclipse好像里面有个添加struts支持
回复

使用道具 举报

千问 | 2011-10-30 11:56:57 | 显示全部楼层
你以前没做过struts的项目么看看web.xml里配置没有..追问配置了
回复

使用道具 举报

千问 | 2011-10-30 11:56:57 | 显示全部楼层
找到你工程下的.project文件,打开,在natures节点下面加上naturecom.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature/nature就OK了。赞同
回复

使用道具 举报

千问 | 2011-10-30 11:56:57 | 显示全部楼层
在eclipse中右击文件openwith。。。试一下赞同
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行