Fmg:follow my girl.
Two days ago, my sister told me that the teacher assigned to work can not be written out, I said, give me a look, maybe I can help you.
Take a look, silly eyes, for Mao is servlet,jsp,tomcat what ah.
Bo Lord Why such an egg hurts, because bloggers for the web this piece, only familiar with html/css/js content, what javaweb,asp.net do not understand AH.
But Ah, for sister, undress also want to, fortunately before the Android a little interest under a adt-eclipse, and, before Sister Learning Java Language Foundation, this ADT is also output not small Ah, help sister solved a lot of problems, but this time the problem, What's the problem?
Very egg pain problem, is simply not create Web application, after a round of verification, actually told me to upgrade the update Web features.
In fact, the steps are very simple, the first step, click Open ADT, enter the environment to find the Help menu, click on the Help menu in the drop-down menu of install new software to the installation of software updates.
Name can be casually written, location must be: Http://download.eclipse.org/webtools/repository/luna, and then click OK, set up the update source
After that, ADT detects which packages need to be updated and is not afraid of the hassle of updating them all.
After the update, bloggers can finally create a Web project, so, there are problems, the creation of the project?
After comparison, you find that you should create file->new->dynamic Web Project.
After creating the project, in the Java resources under the project to create a good meal, the Bean,dao package and corresponding files written, then the servlet is written.
Or that sentence, Bo Master really won't, so go online search code case list look ah, tired to die.
According to write Ah, finally write, JSP also created, HTML also has, to note that jsp,html these files should be placed under the WebContent folder. Because Tomcat's default path is there, and then, to add Tomcat server, run up, error.
java.util.concurrent.ExecutionException:org.apache.catalina.LifecycleException:Failed to start component [ Standardengine[catalina]. Standardhost[localhost]. Standardcontext
See this mistake, the heart is cold, this what AH is, Internet search, said is the Web. xml file inside the mapping inside less "/", I went to find the tomcat inside of web. XML, found that there is no less "/", so the egg hurt a night.
To the next day, asked sister, see Sister know not know, then sister is very cute to a, I sent you like 32-bit Tomcat ah ...
Re-received the sister sent 64 Tomcat, re-add the server, incredibly, OK ...
[FMG] Adt-eclipse upgrade to can add Javaweb