Where to place JSP File ?

Hello Forum, I have Sun java webserver and would like to know as where to place .jsp files ? Any help is appreciated. Thanks.
[140 byte] By [PriyaMax] at [2007-9-30 22:29:47]
# 1
You have some packaging work to do.See http://docs.sun.com/source/817-6251-10/pwadeply.html-Alexis
am74686 at 2007-7-7 12:53:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
I am sorry, I dont get it. I think i didn't properly explained of what i am doing. I am a beginner learning jsp with a simple example. To see the output of my example, where do i place this simple jsp file ? Can you pls let me know. Thanks.
PriyaMax at 2007-7-7 12:53:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

Your JSP has to be part of a WAR file (a Web ARchive).

I think you need an IDE.

Maybe you should look at Java Studio Creator which provides RAD capabilities and where such packaging is all done for you: http://developers.sun.com.

If you want a free tool, go to NetBeans (http://www.netbeans.org) and pick version 3.6. NetBeans comes with Tomcat integrated (Tomcat is a servlet engine).

-Alexis

am74686 at 2007-7-7 12:53:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
You could also use the directory style deployment vs creating a war. The format for the directory is the same what you have in the war file.Please see the developers guide for SJAS for further details
lancea at 2007-7-7 12:53:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5

> Hello Forum,

> I have Sun java webserver and would like to know as

> s where to place .jsp files ? Any help is

> appreciated. Thanks.

This article might also help you if you want to do directory deployment as suggested by lancea

http://developers.sun.com/prodtech/appserver/reference/techart/deployment.html

vijaysr1 at 2007-7-7 12:53:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6
Yes, good idea.See http://docs.sun.com/source/817-6088/depapp.html#wp1017467(I realize the last URL I gave was for the Web Server, which AppServer/ Web Server are you using? J2EE 1.4 SDK? If so, then the above URL is correct)-Alexis
am74686 at 2007-7-7 12:53:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 7
Basically the web applications have a certain minimal directory structure:<webapp>/<webapp>/WEB-INF<webapp>/WEB-INF/web.xmlYou place the JSP under the <webapp>/ path.
asrmj0 at 2007-7-7 12:53:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 8

> I have Sun java webserver and would like to know as

> s where to place .jsp files ?

If you are using the newer Sun Java Web Server 6.1, it's default settings will know to interpret any .jsp files automatically if they are stored on your web document root. For example, the default docs directory is /opt/SUNWwbsvr/docs if you didn't change that path when you run the installation of SJWS 6.1.

Note that SJWS 6.1 only understand JSP1.2 specs.

jfjet at 2007-7-7 12:53:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...