How can I ask for it to make JSP website applications locally?

xiaoxiao2021-03-06  45

Learn Java for a long time and rarely finished the whole independence to make a web application. A friend who wanted to sell things online, I gave him a website. I have always been a high hand, because the logic is relatively simple, but my friend has helped me in the past. Human love is always still going.

I used UltraEdit to write Java programs when I played my website, including bean and servlet. Use Dreamweaver to do a front page, now I am used to WSED, I can't stand the original original coding method, I have to seek one Convenient website development plan.

The virtual host bought by my friend is RESIN as a web container. I started using the Eclipse Resin plugin to develop RESIN to do local development, and found that the resin plugin is very uncomfortable. For my horses and tiger, the programmers are not DEBUG function.

Under the experience of Eclipse, Resin, Dreamweaver, and finally realized the basic functions required by the friends, I sighed, and my friends suddenly told me that there were a lot of ideas. What to do? What is it ... I think so, I have to do this, I have to be exhausted, locally maintain two Java code, Java class and servlet will come from the Eclipse's working directory from Eclipse to RESIN.

The running directory in the resin will go up to the server from time to time ...

So I thought I thought I decided that this machine was developed or used Tomcat Eclipse. After all, the Tomcat plug-in functionality can fully meet my requirements.

After configuring the Eclipse3.0.1 Lomboz Tomcat, start establishing the Tomcat project, then put the Java source code on the previous Eclipse2.1.3 to the corresponding directory to copy the web code of Dreamweaver MX 2004 under the Tomcat project, the mysql database connection does not consider Because the virtual host does not give JNDI binding data source connection I just manipulate the database, well, start Tomcat in Eclipse, visit the corresponding URL, look at the stupid, the picture and the servlet's URL full chaotic set, I can't think of the problem, I will see the ghost. I used to run in RESIN. The Application Context is the same as "/index.jsp" to access the project built under the Tomcat plugin (Tomcat is started). "Projectname / INDEX.JSP", made. Only Tomcat's virtual host has been configured locally. Which relative path will appear after the "ProjectName" appearing after the Web container is parsed. Newly built the JSP site in Dreamweaver to point to the project in Eclipse.

In the end, there is a local development environment you are satisfied, you can write the program with confidence, and don't have to maintain the chaotic code, migrate pain.

JSP website local development environment:

Software: (I use version) Eclipse3.0.1, Lomboz3.0, Tomcat5.0.27, TomcatPlugin, Dreamweaver MX 2004, MySQL, MySQL Front, Resin 2.1.16

A set of test environment software (Dreamweaver, MySQL, RESIN) is required to upload to the server

The reason for this is that the environment of the virtual host is RESIN. I have developed Tomcat. I have to test the rehabilitation server. DM has to manage the site management function, and use it to manage the test site.

A set of local development environment software (Eclipse, Tomcat, Lomboz, Tomcatplugin, MySQL, Dreamweaver) is mainly used by Eclipse combines Tomcat's convenient web development, Lomboz I mainly used to write servlets, design page DM this stuff still use. Here I have to remind yourself to make the directory where the Tomcat project is located, and corresponding to a virtual host, try to imitate the environment of the virtual host on the public network, reduce the trouble brought by code transplant.

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

New Post(0)