Hostesses that use JSP

1

I have a web hosting linux that I put all my systems in PHP, and now I need to work with the extension (* .JSP) and I have some doubts

  • What kind of host do I use to run JSP?
  • Does CPanel run JSP automatically?
  • What do I need to do to run JSP and PHP on the same server?
asked by anonymous 09.05.2015 / 04:14

1 answer

1

I do not know if I understand your question right, and I will try to give an objective, neutral and non-judgmental answer. But I confess that this is not one of the best answers that could be given.

  

What kind of host do I use to run JSP?

You can use Tomcat, JBoss, Glassfish, or any other container for Servlets and JSP.

  

Does CPanel run JSP automatically?

I think so. Maybe you can see more here: link - I will not detail this more deeply, because I do not have the knowledge to do so.

  

What do I need to do to run JSP and PHP on the same server?

Just put the two to run on the same server. However, they should be on different TCP ports. A simple way to do this would be to run PHP on port 80 and your Servlets / JSP server on an 8080 port, for example.

If you need everything on port 80, you can:

  • Server side includes , which allows you to even mix JSP and PHP generated content on a single page,
  • Place some proxy service (eg Apache) on your server on port 80 and use it to redirect requests to PHP or JSP according to some criteria. The JSP would be running on a port other than 80. PHP could be running inside Apache itself (or not).

09.05.2015 / 09:32