How To run JSP code without Tomcat Server
Hi,
I want to lunch a website that contains some dynamic pages with JSP codes. Now it runs proper after copying the code in webapps dir of Tomcat and then starting the manager in my local machine.
Now the question is that how i will run this in web, my hosting does not contain Tomcat as a package. So is there any way to run it without tomcat.
What i did:
I have copied all the files in the wwwroot dir of the hosting server using ftp. The html, xml and dhtml codes are working but the JSP porting is failing to start.
So kindly tell me how to run it without the tomcat manager in WEB Server.
Thanks in advance
Dipyaman
[670 byte] By [
Dipyamana] at [2007-10-2 19:44:11]

My code is located here:
Tomcat 5.0\work\Catalina\localhost\your web application\org\apache\jsp
jgalacambra can you explain how this could be run without a JSP compliant web-server?
I do not see how this could possibly be made to work without a Tomcat or similar.
When the server receives the request, it checks the suffix i.e. .jsp and knows from this that it is a java server page, and executes the corresponding code.
If the server does not know what a jsp page is, or how to execute the code then there is no way to get it working.
My opinion is that you need to find a new host, one that supports JSP.
> Hi,
>
> Thanks for the reply. I m new 2 this field so u
> brifly describe where in tomcat to fine the java
> files.
>
> And even i get them then how can i run them with a
> tomcat manager running. As per i knw java is platform
> independent but why jsp is dependent on tomcat.
>
> Dipyaman
of course it would be dependent.. you jsp will be compiled by your tomcat then it will be rendered as hmtl file so it can be viewed to your browser.. find a host that supports java..
> Hi,
>
> I want to lunch a website that contains some dynamic
> pages with JSP codes. Now it runs proper after
> copying the code in webapps dir of Tomcat and then
> starting the manager in my local machine.
>
> Now the question is that how i will run this in web,
> my hosting does not contain Tomcat as a package. So
> is there any way to run it without tomcat.
>
> What i did:
>
> I have copied all the files in the wwwroot dir of the
> hosting server using ftp. The html, xml and dhtml
> codes are working but the JSP porting is failing to
> start.
>
> So kindly tell me how to run it without the tomcat
> manager in WEB Server.
>
> Thanks in advance
>
> Dipyaman
hi Dipyaman :-)
just find other web hosting that support jsp or have a servlet container like tomcat :-)
if you have your own web server (ex. apache web),
you can configure your web server to pass any jsp request
to your application server (ex. tomcat)
apache will handle static contents like html
while tomcat handle jsp, there are pros and cons regarding this setup. but you can try it.
on your current situation. just find another web hosting that support jsp
or ask your web hosting if they can do the web+application server setup for you :-)
regards,