What technologies are needed to run JSP and servlet?

If I want to create a website with PHP, all I have to do is install the PHP package and make sure mod_php is enabled on my apache web server. Voila! PHP environment.

Now if I want to create a site with equivalent Java technology i.e. JSPs and servlets, what do I need to install?

+2


source to share


5 answers


You need a servlet container like Tomcat or Jetty . They are highly customizable and there are many tutorials available online.



+4


source


You only need to install Java (usually already run) and a servlet container like Tomcat .



+3


source


Netbeans includes everything you need to run startconfig and sample projects locally, and you can deploy them to gae or eatj . It is difficult and worth the effort. You can go with gae or the usual way with a dock, cat, jboss, websphere or glass fish. 512 RAM was minimal after trying with 256 that were copied. You can try 256. I recommend avoiding EJBs and custom tags and storing web archives instead of corporate archives for small to medium sized projects.

+1


source


You need a Java Web Container (Tomcat is a good starting point), and you also need to tell the Apache frontend how to get to the outside of the web container.

Note that most modern Java Web Containers can perform well enough not to require an external Apache server.

0


source


You need to install a Java environment where there is a web server, code that does the corresponding function.

You will be using jsp for the view part Servlets for the main modal part where you will write business logic and Web.xml is a deployment descriptor where you will tell the server about servlets and jsp and how flow control will be defined.

0


source







All Articles