Creating a Struts in MyEclipse error solution

xiaoxiao2021-03-23  221

This article operates:

JDK1.4.03, Tomcat5.0.28, Eclipse3.1.2 Chinese version, MyEclipse4.1, Tomcatplugin, Struts 1.2.

In myECLIPSE, when you create strut, you sometimes have the following errors.

No available Struts 1.2 projects found in workspace.All MyEclipse Struts 1.2 wizards requirs at least 1 properly configured Struts 1.2 project exist in your workspace.If your workspace current cotains Struts 1.2 project please ensure that they are opened and that their web.xml is valid .

Please remedy this situation and try again.

As shown in the figure:

Figure one

Don't close, just build a project

The first step, right click Select Project - MYECLIPSE-Add WebProject Capabilities as shown in Figure 2

Figure II

After the construction is completed, there will be no more mistakes, but if you want to create a struts framework, add struts Capabilities, right-click Select Project - MyClipse-Add Struts Capabilities As Figure 3, Figure 4

Figure three

Figure four

Click Finish, you will find the Web-INF folder, more Struts related files.

OK, now recreate Struts, it will all be smooth ~

If you have incorrect place, please ask your netizens to correct!

转载请注明原文地址:https://www.9cbs.com/read-130443.html

New Post(0)