These years free to help classmates or classmates friend did the bi set or some, my blog is basically based on the project I have done related, and there are one-third of them are doing the completion of their own or others after the completion of the feeling. The completion of this includes MFC image processing,. NET security software, C # chat software dictionary software, Android Baidu map Handy shot, PHP website. NET book management system and so on. In fact, I look back to think Ah! These knowledge to my help and improve is very big, although compared to the company actually line project, but help classmates to me very good, of course, is also a lot of harm to some classmates, but they are engaged in a non-software related professional.
Obviously, most of the completion is based on the XXX system on the database additions and deletions, including JSP (Java), PHP, ASP (C #), the front-end includes JavaScript, Ajax, Html, CSS and other knowledge. Writing this article also marks me to do a Java related website, I will simply write a few introductory knowledge of it! Because I am really not very good at Java, no system of learning, just do Android-related apps, not learn the reason is largely due to the previous j2ee\android are very difficult to configure it!
This article mainly describes the Java+myeclipse+tomcat configuration process and the first JSP website to get started knowledge, and does not involve the spring, struts and other framework knowledge, I hope the article is helpful to you.
I. Configuring TOMCAT
Since the Android JDK was previously configured, I started the configuration from Tomcat at this point. I downloaded the Apache-tomcat-7.0.59.exe, the following is the installation process, usually port 8080:
here is the binding Java Virtual machine:
It is recommended to install to a non-C drive directory because it is easier to manually modify or configure some parameters. After installation run Tomcat, click "Start" On "General" to start. If my tomcat is installed in the F-Drive directory:
then create a new index.jsp file in the F:\tomcat\Tomcat 7.0\webapps\test directory (the default look for running index.jsp files in XML), the code is as follows:
invoking browser access, the result of the run is as follows, which also marks the success of this Tomcat installation.
two. Configure MyEclipseInstall MyEclipse, below is free, follow the PDF configuration inside to activate MyEclipse.
Http://pan.baidu.com/s/1bnuEcnd
Run MyEclipse, my workspace installation directory is F:\MyEclipse\Workspaces\MyEclipse 10. Create a new Web project with the project name Firstweb.
The directory structure of the project, as shown, has a default index.jsp:
You need to bind MyEclipse and Tomcat at this point, click
"MyEclipse" "Preferences" "Servers" "Tomcat" select "Tomcat 7.x", and select the Tomcat installation directory, my is the F drive, as shown in. PS: This may appear in the configuration of apply can not click, as if click OK can also be configured successfully.
Some also need to bind or check the JDK, as shown in:
When Tomcat and MyEclipse are configured and bound successfully, running the program may error:
severity: standardserver.await:create[localhost:8005]:
Java.net.BindException:Address already in Use:jvm_bind
that's because your port is occupied and you need to kill Tomcat off and its process. Since you run MyEclipse later, you can run it directly and you don't need to run Tomcat manually. Run the following, and then select Tomcat 7.x:
the results of the operation are as follows:
its default index.jsp code is as follows:
<%@ page Language= "java" import= "java.util.*" pageencoding= "iso-8859-1"%><%string path = Request.getcontextpath (); String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";%> <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
The final implementation of the website effect as shown, my post will also briefly introduce some techniques. Hope that the article is helpful to everyone, if there are errors or shortcomings, please Haihan ~
PS: At the beginning of the article, I just remind you that if you are a member of the University software Engineering or computer, you need to do something you like to improve yourself, and help others to do things can be improved, but this degree needs your own grasp!
speaking of which, I thought about what a high school friend on the train said to me: "We are still very good, at least from the hometown of Guizhou to go to college, in life we will meet a lot of people have difficulties in need of help, it is possible that this is only a small effort for you, but it is difficult for him to the whole family. At this time you want to help, you help him not less meat. Especially for strangers. !" Oh, yes! In programming we also encounter a variety of difficulties, and it is possible that this difficulty is very simple for you, but others really baffled it! This feeling I also often meet, how can not be a bit of others to pass. So when people don't ask you, you should ...
(By:eastmount 2015-5-5 5 o'clock in the afternoon http://blog.csdn.net/eastmount/) Java+myeclipse+tomcat (i) Introduction to the configuration process and JSP Web site development