jsp and Tomcat

I would like to ask where is the right place for jsp in Tomcat directory?I mean should the jps files to be deployed inside web-Inf or outside?
[156 byte] By [juanitaJa] at [2007-11-26 15:23:22]
# 1
outside you can have files in separate directory and run it.,
loguKKa at 2007-7-8 21:38:34 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
create a webapp under the webapp directory,place the jsp files within that new directory then when your tomcat is runninggoto: http://localhost:8080/Webappdirectoryname/jspname.jsp
h1400046a at 2007-7-8 21:38:34 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

But what is more appropriate? To have a structure like:

webapps

- webapplication

-- WEB-INF

jsp(first.jsp)

OR

webapps

- webapplication

-- WEB-INF

-- jsp (first.jsp)

The problem is that in the first structure I cannot get it to work.

In faces-config.xml I use

<from-view-id>/jsp/first.jsp</from-view-id>

<navigation-case>

<from-outcome>personalInfo</from-outcome>

<to-view-id>/jsp/second.jsp</to-view-id>

</navigation-case>

and it says that it cannot found webapplication/WEB-INF/jsp/second.jsp

Any help?

juanitaJa at 2007-7-8 21:38:34 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
its better to use the second if you are using jsf, it will make conflicts on url mapping if you try the first one
jgalacambraa at 2007-7-8 21:38:34 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

> In faces-config.xml I use

> <from-view-id>/jsp/first.jsp</from-view-id>

> <navigation-case>

> <from-outcome>personalInfo</from-outcome>

> <to-view-id>/jsp/second.jsp</to-view-id>

> </navigation-case>

>

Think you have to mention the path like this

<from-view-id>WEB-INF/jsp/first.jsp</from-view-id>

so on...

or there may be something wrong with mapping url in web.xml

kalania at 2007-7-8 21:38:34 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...