How to host a JSP website on a web server?

I have a website developed mainly in HTML and JSP, and access to a MySQL database. Having never put such a site on the net before, I would like to know what steps need to be taken to start and work on the Internet. I know there must be a web server. How to host a JSP website online?

+5
source share
2 answers

Do you want to install the web server yourself or want to pay for the java host?

Between the files is the web.xml file (possibly 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 options are. Once you have configured webapp for your new hosting environment, you can simply copy it to the web server. It should load automatically. You can try this on your local machine first using the java web server (e.g. tomcat). This will help you determine your webapp configuration settings.

Good luck

+1
source

To host it, you need a servlet container, such as tomcat or Jetty. He has hosting providers.

But you can also use the Google application engine to place it there (although mysql is not supported there)

0
source

All Articles