{"id":11615,"date":"2024-05-04T10:07:22","date_gmt":"2024-05-04T10:07:22","guid":{"rendered":"https:\/\/hostvento.com\/kb\/web-hosting\/getting-started-guide\/shared-hosting-quick-start-guide\/how-to-install-servlets-on-your-hosting-account\/"},"modified":"2024-06-14T09:33:59","modified_gmt":"2024-06-14T09:33:59","slug":"how-to-install-servlets-on-your-hosting-account","status":"publish","type":"docs","link":"https:\/\/www.hostvento.com\/kb\/docs\/hosting-faqs\/how-to-install-servlets-on-your-hosting-account\/","title":{"rendered":"How To Install Servlets On Your Hosting Account"},"content":{"rendered":"\n<p>The servlet is a Java programming language class used to extend the capabilities of a server. Although servlets can respond to any types of requests, they are commonly used to extend the applications hosted by web servers, so they can be thought of as Java applets that run on servers instead of in web browsers.<br>The need to install Servlets is when you wish to use .jsp pages on your hosting account. You can use the .jsp pages on the server which has Java, Apache\/Tomcat installed.<br>Installing Servelts is possible when you have root access to your server. Login to your&nbsp;<strong>WHM&nbsp;<\/strong>as root &amp; access option&nbsp;<strong>Account Functions \u00bb Install Servlets<\/strong>. Select the domain which should support .jsp pages &amp; click on Install.<\/p>\n\n\n\n<p>An other alternative is to install it from the&nbsp;<strong>command prompt<\/strong>&nbsp;as root user. Install the servlets with command below.<br>root@server1 [~]# \/scripts\/addservlets \u2013domain yourdomain.com<br>Scanning userdata\u2026<br>Updating server.xml\u2026<br>Restarting Tomcat<br>Done: .jsp support installed for yourdomain.com<\/p>\n\n\n\n<p>Once done, a test jsp page is automatically created under your public_html directory which can be browsed with URL yourdomain.com\/jsptest.jsp. It should show an output as below<\/p>\n\n\n\n<p>Working JSP page!<br>This is a page to verify that .jsp support has been enabled<br>Date: Thu Feb 27 20:19:40 IST 2014<br>Remote Address: 59.94.222.149<br>Request Method: GET<br>Servlet Path: \/jsptest.jsp<\/p>\n\n\n\n<p>With our\u00a0cPanel hosting\u00a0 plans, you get\u00a0<strong>java version \u201c1.7.0_51\u201d<\/strong>, and\u00a0<strong>Apache Tomcat\/7.0.42<\/strong>. If you wish to enable .jsp support OR install servlets, get in touch with our Support Team\u00a0&amp; they will enable\/install it for you.<\/p>\n\n\n\n<p>Read Also: <a href=\"https:\/\/hostvento.com\/kb\/web-hosting\/getting-started-guide\/shared-hosting-quick-start-guide\/how-to-monitor-virtual-servers-bandwidth-usage\/\" target=\"_blank\" rel=\"noopener\">How To Monitor Virtual Server\u2019s Bandwidth Usage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The servlet is a Java programming language class used to extend the capabilities of a server. Although servlets can respond to any types of requests, they are commonly used to extend the applications hosted by web servers, so they can be thought of as Java applets that run on servers instead of in web browsers.The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23377,"menu_order":684,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-11615","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/11615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/comments?post=11615"}],"version-history":[{"count":3,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/11615\/revisions"}],"predecessor-version":[{"id":20383,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/11615\/revisions\/20383"}],"up":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/23377"}],"wp:attachment":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/media?parent=11615"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=11615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}