Hi all, Is it possible to deploy JSPs and Servlets in WAS, without them being a part of any web application(even default web app). If yes, what is the document root, and how do we specify the URI and such properties for a servlet? -Bala Krishna
Hi, Suneel you don't deploy your servlets/JSP's in a virtual host. You deploy them in either a servlet container. Bala, If you put your servlets in the <WAS_home>/appserver/servlets your servlets will work with http://localhost/servlet/HelloWorldServlet Where HelloWorldServlet.class is available in the servlets Folder. If you want to play around with your jsp's then you can put them in <ibm http server root>/htdocs
Joined: Jan 26, 2001
Thanks for your answer. I have tried out what you told me about placing JSPs in htdocs. The url I am trying is : http://localhost/htdocs/test.jsp. When this didn't work, I've tried http://localhost/test.jsp. That didn't work either. What should be the URL for accessing JSPs stored in this directory? We are using IHS 1.3.12 and WAS 3.5.2. What am I doing wrong here? Could you please help me?
To deploy JSPs, you need to put the JSP files into the "Document Root" of an "Web Application" which is in turn in a "Servlet Engine" of an "Application Server". The /htdocs directory of IHS just serve the static html pages and has nothing to do with WAS. You MUST setup an "Web Application" to serve JSPs & Servlets. Try it again! Good luck! You can find more info about Administer applications here ------------------ Tony Chen SCJP, ICS & ICSD (WebSphere)
SCJP Java 2 - IBM Certified Enterprise Developer - WebSphere V4.0 & V5.0 - IBM Certified System Administrator - WebSphere Network Deployment V6.0 - Canadian Securities Course (CSC) Certification
Joined: Jan 26, 2001
Tony, Thanks for answering. That's exactly what I wanted to know - whether or not we can server JSPs without a web application. Looks like this is a short coming in Websphere(to not be able to server JSPs without defining a web app). I already have created web apps and been able to serve JSPs thru that, but wanted to know if I always have to go thru the pain of having a web app. Thanks once again. -Bala.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: JSPs and Servlets in WAS, without a web application