Deploying struts with myeclipse development on eclipse

Source: Internet
Author: User
Tags tomcat

Author: Shouzhong (You can reprint, expand Communication, but the source)

I was going to search the internet for something that could be done, do not want to have been grinding me for one weeks, always in the deployment of the time problems, give up a few days, this morning to continue to do the full strength, incredibly buttoned up, the afternoon will not do other things, simply put this small exploration to write, to make a record for themselves, I also hope to be able to visit my blog friends in the same problem encountered me less to go a little detour. OK, no more wordy, start.

About the specific configuration I briefly describe: 1.j2sdk1.4.2_07 2. Use tomcat5.0.28 3.eclipse3.0.1 4. SysdeoTomcatPluginV3 5.myeclipse3.8.4 will be the top Dongdong installed in order, SysdeoTomcatPluginV3 decompression to install myeclipse3.8.4 before, otherwise can not find Tomcat, cause I No fine pursuit, can produce results for the principle of it, hehe. Specific installation to search the Internet, I will not detail. I'm talking about some of the problems I've encountered.

After all the above things are installed, start new projects, open File->new->project-->j2ee-->web project, see map Point "Next" input project name, other default, "Finish" on OK.

After the establishment of the project, began to add struts structure, I built the project called "Insect", in the project point right, select Myeclise-->add struts capabilities. Set as you want. See figure:

OK, now you can create a new struts action, Actionform, JSP, in the project point right, new-->struts1.2 action,form,jsp, see the following figure, no can be in the file point new---"Other, inside find."

OK, now appear dialog box according to their own request to write it, the picture is not added, the Internet has these steps of the instructions, I will not repeat. Here is a simple, these are configured, start deployment, release trial run. Notice, this is where I fell and climbed a few geniuses.

The interfaces that appear after the top steps are:

If everyone appears this similar to the page can be deployed, point tool stop on the deployment button, the network has friends said is red, but mine is not, see figure:

Click on this button, in the pop-up dialog box midpoint "Add", and then jump out of a, in the "server" select "Externally launched", Deploy location Enter the location of deployment, I lost to the Tomcat installation path under the WebApps, namely: "C:\Tomcat 5.0\webapps\insect" Well, to this can be, finish, appear in the following figure:



Dot redeploy release, OK, start Tomcat, run it.

Open the browser input: HTTP://LOCALHOST:8080/INSECT/FORM/LOGIN.JSP will see the interface Oh, the development is not feel very cool:

But also encountered in the middle of some other errors, I said it separately, so long I am afraid not to go up, one afternoon the credit is over, hehe.

What else to add, we can leave a message oh, common progress, grow together.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.