How to host a JSP website on a webserver?

absessive picture absessive · Apr 16, 2012 · Viewed 14.5k times · Source

I have a website developed mostly in HTML and JSP, and accessing a MySQL database. Having never put such a website online before, I wanted to know what are the steps needed to get it up and running online. I know there needs to be a web server. How do I host a JSP website online?

Answer

JohanB picture JohanB · Apr 16, 2012

You want to install the web server yourself, or you want pay for a java host?

Between the files, there is a web.xml file (probably in the WEB-INF folder). You need to take a look at it, it contains the webapp configuration. You also need to find out where the database configuration parameters are located. Once you’ve configured the webapp for its new hosting environment, you can just copy it to the webserver. It should automatically load. You could try this on your local machine first using a java webserver (like tomcat). This will help you to determine the webapp configuration settings.

Good luck!