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]
# 1

actullay if you deploy your application through a server that doesn't support java/jsp then you should find one which has the capability to support one.. what you see on tomcat are compiled servlets out of you jsp files.. try to look for the java files on you tomcat corresponding to the name of your jsp to see..

jgalacambraa at 2007-7-13 22:22:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
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
Dipyamana at 2007-7-13 22:22:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

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.

angrycata at 2007-7-13 22:22:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Without a container which runs jsp and servlet you cannot. You configure the webserver to direct this request to your tomcat and then it will work.
bbhangalea at 2007-7-13 22:22:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

i didn't say that you could run our jsp/servlets without a container.. a said to him that he should find one web host that supports java.. as i said earlier jsp's are run as servlets.. the java and the class files are located on \Tomcat 5.5\work\Catalina\localhost\_\org\apache\jsp if you are using the latest tomcat..

jgalacambraa at 2007-7-13 22:22:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

> 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..

jgalacambraa at 2007-7-13 22:22:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7

> 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,

jie2eea at 2007-7-13 22:22:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...