Issue Running web appl from Eclipse ( Apache) [message #182673] |
Tue, 14 November 2006 08:26  |
Eclipse User |
|
|
|
Originally posted by: fred_faria.yahoo.com.br
Hi,
I am NOT able to run a web appl from Eclipse gui.
I have followed the example from WTP tutorial;
I am able to create a new server ( Apache Tom Cat ) and start it from
Eclipse tool. I am able too to link a web project to the server.
Everything looks to work fine.
However when I try to run the appl inside the Eclipse I get an error
because the jsp page doesnt exist in webapp DIR. It looks that the web app
files were not copied to Tomcat webapp tool.
When I linked the web project to the server should not these files had
been updated in Tomcat web app dir ?
Regards,
Faria
|
|
|
|
|
|
|
Re: Issue Running web appl from Eclipse ( Apache) [message #182742 is a reply to message #182733] |
Tue, 14 November 2006 13:44  |
Eclipse User |
|
|
|
Though a mistake for your main.jsp, putting JSPs in WEB-INF (or a
subfolder) is not necessarily wrong. Often a JSP is used a "viewer" and
requires some session setup, typically by a servlet, before being
invoked on a request. Putting such a JSP in WEB-INF is a convenient way
to prevent users from accessing the JSP directly and having it
malfunction without the setup.
Cheers,
Larry
Fred wrote:
> Hi Larry,
>
> Thank you very much for your help. Right now, it is working fine!! I
> really had created the main.jsp file in wrong location diferently that
> one that Eclipse WTP Tutorial taught.
> ( I am a beginner for Eclipse and J2EE. ).
>
> Fred.
>
|
|
|
Powered by
FUDForum. Page generated in 0.04139 seconds