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?
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!
You need a servlet container like tomcat or Jetty to host it. There are hosting providers that have it.
But you can also use Google app engine to host it there (though mysql is not supported well there)
© 2022 - 2024 — McMap. All rights reserved.