RE: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Tom Goemaes

BEA Weblogic doesnt allow you to put these under the WEB-INF!
I tried...

so not /WEB-INF/jsp/
but /jsp/
and you have to put a security constraint on that url so for example only
the 'system' user can access it ...



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Ted Husted

At least a forward. That way we can just refer to the logical name in
the link tag. It is also a convenient way to pass any parameters, so you
can have 

 
 

Saves a lot of slashes, and lets you do things like switch between pages
and actions, as needed. 

 


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


Bryan Field-Elliot wrote:
> 
> I've tried this with Struts but found it to be unwieldly in the
> struts-config.xml file.
> 
> Do you make an , and a , for every single "real" JSP
> page?
> 
> Kind of a pain in the buttocks if you ask me, but I see where you're
> going with the idea of centralizing access control, exception handling,
> etc.
> 
> I wonder if I'm not doing it as elegantly as I could (with respect to
> the struts-config file).
> 
> I also wonder if using the new Filtering scheme (which Struts doesn't do
> anything with), is a more elegant way of inserting that layer in front
> of every JSP access, rather than a Struts action.
> 
> Thanks,
> Bryan
> 
> On Tue, 2001-12-18 at 10:53, Ted Husted wrote:
> 
> I do strongly recommend that all references go through actions or
> forwards, and that a Struts application never link directly to a JSP.
> This makes where the JSPs are kept less of an issue, since that location
> is never revealed on the address bar. Heck, there's no reason for anyone
> to even know that they are JSPs back there to access ;-)
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Bryan Field-Elliot

I've tried this with Struts but found it to be unwieldly in the
struts-config.xml file.

Do you make an , and a , for every single "real" JSP
page?

Kind of a pain in the buttocks if you ask me, but I see where you're
going with the idea of centralizing access control, exception handling,
etc.

I wonder if I'm not doing it as elegantly as I could (with respect to
the struts-config file).

I also wonder if using the new Filtering scheme (which Struts doesn't do
anything with), is a more elegant way of inserting that layer in front
of every JSP access, rather than a Struts action.

Thanks,
Bryan

On Tue, 2001-12-18 at 10:53, Ted Husted wrote:


I do strongly recommend that all references go through actions or
forwards, and that a Struts application never link directly to a JSP.
This makes where the JSPs are kept less of an issue, since that location
is never revealed on the address bar. Heck, there's no reason for anyone
to even know that they are JSPs back there to access ;-) 






Re: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Ted Husted

Andrew B Forman wrote:
> we're following Ted's suggestion for putting jsps in
> WEB-INF and it's been working well so far.  the only
> downside i've seen is that jBuilder5's webapp format
> isn't open-minded to jsps being under WEB-INF.

Just for the record, I don't actually do this myself anymore. 

I do strongly recommend that all references go through actions or
forwards, and that a Struts application never link directly to a JSP.
This makes where the JSPs are kept less of an issue, since that location
is never revealed on the address bar. Heck, there's no reason for anyone
to even know that they are JSPs back there to access ;-) 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Edward Q. Bridges


note that it should be:
WEB-INF

not
web-inf

nota bene: even though windows* is not case sensitive in terms of paths,
java *is* even when running on windows.

--e--


On Tue, 18 Dec 2001 12:13:30 -0500, [EMAIL PROTECTED] wrote:

> 2) struts-config.xml
>
> ...
> type="mypackage.StartAction"
>name="theForm"
>scope="session"
>  validate="false"
>  parameter="commingIn"
>input="/web-inf/jsp/start.jsp">
> 
> 
.
.
.
.
> Tomcat 3 says:
> ... 404 ...
> Original request: /myApp/web-inf/jsp/start.jsp
> Not found request: /myApp/web-inf/jsp/start.jsp
>
> Tomcat4 brings:
> Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp



 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Dave J Dandeneau

Does anyone know how WebSphere 4.0 treats jsps under the WEB-INF?

dave

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 12:14 PM
To: Struts Users Mailing List
Subject: Re: 404 error when placing JSPs beneath WEB-INF


BEA is of the opinion that accessing JSPs even from an internal forward
should be disallowed. 

Though, I'm told that Sun disagrees.


Tom Lister wrote:
> 
> I thought that although you cannot access directly, you are allowed to
> forward from a servlet/jsp. And that this is an option for securing
pages.
> Does this have any bearing on my earlier post re trying to access
> WEB-INF/javadoc/index.html?
> :-)
> Regards
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> Advanced Banking Solutions Limited
> +44 (0)20 7448 9146
>
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º
º¤ø,
> ¸¸,ø¤º°'°º¤ø,¸¸,
> This email and any attachments are confidential. They may contain
privileged
> 
> information or useless trivia and are intended for the named addressee
(s)
> only.
> They must not be distributed without our consent. If you are not the
> intended recipient,
> please notify us immediately and do not disclose, distribute, or
retain this
> email or any
> part of it. Unless expressly stated, opinions in this email are those
of the
> 
> individual sender, and not of Advanced Banking Solutions Limited. We
believe
> 
> but do not warrant that this e-mail and any attachments are virus
free. You
> must
> therefore take full responsibility for virus checking. Advanced
Banking
> Solutions
> Limited and its subsidiaries reserve the right to monitor all email
> communications
> through their networks.
>
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º
º¤ø,
> ¸¸,ø¤º°'°º¤ø,¸¸,
> 
> -Original Message-
> From:   D. Veniseleas [SMTP:[EMAIL PROTECTED]]
> Sent:   18 December 2001 16:11
> To: 'Struts Users Mailing List'
> Subject:AW: 404 error when placing JSPs beneath
WEB-INF
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi,
> 
> You shouldn't have jsp's under WEB-INF, but only xml-files for
> webapp-configuration,
> compiled classes, libraries, tag-lib-descriptor-files etc.
> WEB-INF and beneath is not accessible from outside.
> 
> Regards,
> 
> Dimitris
> 
> > -Ursprüngliche Nachricht-
> > Von:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Gesendet am:  Dienstag, 18. Dezember 2001 16:40
> > An:   [EMAIL PROTECTED]
> > Betreff:  404 error when placing JSPs beneath WEB-INF
> >
> > After reading the Struts Catalogue and having spent a good
> > amount of time trying to get the JSPs run under the
> > web-inf directory, I figured out that there has been a
thread
> > on "Can't place JSP beneath WEB-INF in WebLogic 6.0".
> >
> > I'm using BEA WL 6.1 and also have the same 404 error
mentioned
> > in the message
> >
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14704.
> > html . However, I also tried it on Tomcat4.0 and Tomcat3.2,
which
> > both gave the same 404 error. So it seems to be something
I'm
> doing
> > wrong.
> >
> > Just to make sure -- I have the following setup:
> >
> > 1) directory structure:
> > - myApp
> > - web-inf
> > - jsp (contains one page: start.jsp)
> > - lib
> > - classes ...
> >
> > 2) struts-config.xml
> >
> > ...
> >  >type="mypackage.StartAction"
> >name="theForm"
> >scope="session"
> >  validate="false"
> >  parameter="commingIn"
> >input="/web-inf/jsp/start.jsp">
> > 
> > 
> >
> > 3) StartAction
> > perform(...){
> > ...
> > System.out.println("forward path: " +
> > mapping.findForward("display").getPath());
> > return (mapping.findForward(forward));
> >   }
> >
> > which accurately prints out "path

Re: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Ted Husted

BEA is of the opinion that accessing JSPs even from an internal forward
should be disallowed. 

Though, I'm told that Sun disagrees.


Tom Lister wrote:
> 
> I thought that although you cannot access directly, you are allowed to
> forward from a servlet/jsp. And that this is an option for securing pages.
> Does this have any bearing on my earlier post re trying to access
> WEB-INF/javadoc/index.html?
> :-)
> Regards
> [EMAIL PROTECTED] 
> Advanced Banking Solutions Limited
> +44 (0)20 7448 9146
> º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
> ¸¸,ø¤º°'°º¤ø,¸¸,
> This email and any attachments are confidential. They may contain privileged
> 
> information or useless trivia and are intended for the named addressee (s)
> only.
> They must not be distributed without our consent. If you are not the
> intended recipient,
> please notify us immediately and do not disclose, distribute, or retain this
> email or any
> part of it. Unless expressly stated, opinions in this email are those of the
> 
> individual sender, and not of Advanced Banking Solutions Limited. We believe
> 
> but do not warrant that this e-mail and any attachments are virus free. You
> must
> therefore take full responsibility for virus checking. Advanced Banking
> Solutions
> Limited and its subsidiaries reserve the right to monitor all email
> communications
> through their networks.
> º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
> ¸¸,ø¤º°'°º¤ø,¸¸,
> 
> -Original Message-
> From:   D. Veniseleas [SMTP:[EMAIL PROTECTED]]
> Sent:   18 December 2001 16:11
> To: 'Struts Users Mailing List'
> Subject:AW: 404 error when placing JSPs beneath WEB-INF
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi,
> 
> You shouldn't have jsp's under WEB-INF, but only xml-files for
> webapp-configuration,
> compiled classes, libraries, tag-lib-descriptor-files etc.
> WEB-INF and beneath is not accessible from outside.
> 
> Regards,
> 
> Dimitris
> 
> > -Ursprüngliche Nachricht-
> > Von:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Gesendet am:  Dienstag, 18. Dezember 2001 16:40
> > An:   [EMAIL PROTECTED]
> > Betreff:  404 error when placing JSPs beneath WEB-INF
> >
> > After reading the Struts Catalogue and having spent a good
> > amount of time trying to get the JSPs run under the
> > web-inf directory, I figured out that there has been a thread
> > on "Can't place JSP beneath WEB-INF in WebLogic 6.0".
> >
> > I'm using BEA WL 6.1 and also have the same 404 error mentioned
> > in the message
> >
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14704.
> > html . However, I also tried it on Tomcat4.0 and Tomcat3.2, which
> > both gave the same 404 error. So it seems to be something I'm
> doing
> > wrong.
> >
> > Just to make sure -- I have the following setup:
> >
> > 1) directory structure:
> > - myApp
> > - web-inf
> > - jsp (contains one page: start.jsp)
> > - lib
> > - classes ...
> >
> > 2) struts-config.xml
> >
> > ...
> >  >type="mypackage.StartAction"
> >name="theForm"
> >scope="session"
> >  validate="false"
> >  parameter="commingIn"
> >input="/web-inf/jsp/start.jsp">
> > 
> > 
> >
> > 3) StartAction
> > perform(...){
> > ...
> > System.out.println("forward path: " +
> > mapping.findForward("display").getPath());
> > return (mapping.findForward(forward));
> >   }
> >
> > which accurately prints out "path: /web-inf/jsp/start.jsp"
> >
> >
> > Bea doesn't say anything except 404 (basically).
> >
> > Tomcat 3 says:
> > ... 404 ...
> > Original request: /myApp/web-inf/jsp/start.jsp
> > Not found request: /myApp/web-inf/jsp/start.jsp
> >
> > Tomcat4 brings:
> > Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp
> >
> 
> >  type Status report
> > message /web-inf/jsp/start.jsp
> > description The requested resource (/web-inf/jsp/start.jsp) is not
> > available.
> >
> > The application is packed in a jar file. I checked the contents of
> > the file. Looks as expected (having the jsp in the web-inf/jsp
> > directory).
> >
> > It might have something to do with Win NT4, o

Re: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread holger.wiechert

Hi,

I just came a good step closer. The version of the struts-config.xml I sent
was not correct. It should have the WEB-INF in upper case of course:
After all that different versions on NT (with its strange file namings),
I ended up with this when sending. However, the correct version is:


 


So I tried again with Tomcat3.2, Tomcat4, and Bea 6.0/6.1.
Not surprisingly, it worked fine on both Tomcats (as many
others found out a houndred times before ;-). 
But unfortunately not on Bea 6.0 or Bea 6.1.

I'll contact Bea in order to find out about the problem
and let you know about as soon as I know what the problem is.


Holger

<[EMAIL PROTECTED]> wrote on 18.12.01:
> After reading the Struts Catalogue and having spent a good 
> amount of time trying to get the JSPs run under the
> web-inf directory, I figured out that there has been a thread
> on "Can't place JSP beneath WEB-INF in WebLogic 6.0".
> 
> I'm using BEA WL 6.1 and also have the same 404 error mentioned
> in the message 
>http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14704.html .
> However, I also tried it on Tomcat4.0 and Tomcat3.2, which both gave the
> same 404 error. So it seems to be something I'm doing wrong.
> 
> Just to make sure -- I have the following setup:
> 
> 1) directory structure:
> - myApp
> - web-inf
> - jsp (contains one page: start.jsp)
> - lib
> - classes ...
> 
> 2) struts-config.xml
> 
> ...
> type="mypackage.StartAction"
>name="theForm"
>scope="session"
>  validate="false"
>  parameter="commingIn"
>input="/web-inf/jsp/start.jsp">
> 
> 
> 
> 3) StartAction 
> perform(...){
> ...
> System.out.println("forward path: " + mapping.findForward("display").getPath());
> return (mapping.findForward(forward));
>   }
> 
> which accurately prints out "path: /web-inf/jsp/start.jsp"
> 
> 
> Bea doesn't say anything except 404 (basically). 
> 
> Tomcat 3 says: 
> ... 404 ... 
> Original request: /myApp/web-inf/jsp/start.jsp
> Not found request: /myApp/web-inf/jsp/start.jsp 
> 
> Tomcat4 brings:
> Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp
> 
> type Status report
> message /web-inf/jsp/start.jsp
> description The requested resource (/web-inf/jsp/start.jsp) is not available.
> 
> The application is packed in a jar file. I checked the contents of the file.
> Looks as expected (having the jsp in the web-inf/jsp directory).
> 
> It might have something to do with Win NT4, on which the servers are running.
> But this is just a guess.
> 
> 
> Help greatly appreciated! Thanks for your time,
> Holger
> 
> Please respond to [EMAIL PROTECTED]
> 
> 
> __
> Eine Klasse für sich - der WEB.DE Club. High End Kommunikation & MEHR.
> Mehr Speicher, mehr Leistung, mehr Vorteile - http://club.web.de
>  


__
Hollywood unterm Weihnachtsbaum + ExtraPraemie bei WEB.DE
http://premiere.web.de


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Andrew B Forman


Hopefully this will help clear things up a bit...

(from Ted Husted's Struts Catalog)
(http://husted.com/about/scaffolding/catalog.htm)

---

Place all Java ServerPages below WEB-INF

Note: This is not supported by all containers (e.g. WebLogic). If you
believe it should be, contact your vendor. The Servlet 2.3 specification
makes it much clearer that this is allowed.

The container provides security for all files below WEB-INF. This applies to
client requests, but not forwards from the ActionServlet. Placing all JSPs
below WEB-INF ensure that they are only accessed through Actions, and not
directly by the client or each other. This allows security to be moved up
into the Controller, where it can be handled more efficiently, and out of
the base presentation layer.

However, if your Java ServerPages need to access a number of other HTML
resources, like images and stylesheets, it may be more convenient to leave
them in the document root. If you are using Link only to Actions, then the
address of your JSP's is never exposed anyway, and this strategy loses much
of its value. Link only to Actions is usually sufficient.




we're following Ted's suggestion for putting jsps in
WEB-INF and it's been working well so far.  the only
downside i've seen is that jBuilder5's webapp format
isn't open-minded to jsps being under WEB-INF.
(if anyone knows a work-around please share! =)

_\|/___
  generation-d development
  andrew b forman
  aim: ph0rman

> -Original Message-
> From: Tom Lister [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 10:40 AM
> To: 'Struts Users Mailing List'
> Subject: RE: 404 error when placing JSPs beneath WEB-INF

> I thought that although you cannot access directly, you are allowed to
> forward from a servlet/jsp. And that this is an option for securing pages.
> Does this have any bearing on my earlier post re trying to access
> WEB-INF/javadoc/index.html?
> :-)
> Regards
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> Advanced Banking Solutions Limited
> +44 (0)20 7448 9146

>   -Original Message-
>   From:   D. Veniseleas [SMTP:[EMAIL PROTECTED]]

>   Hi,
>
>   You shouldn't have jsp's under WEB-INF, but only xml-files for
>   webapp-configuration,
>   compiled classes, libraries, tag-lib-descriptor-files etc.
>   WEB-INF and beneath is not accessible from outside.
>
>   Regards,
>
>   Dimitris

>   > -Ursprüngliche Nachricht-
>   > Von:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]

> After reading the Struts Catalogue and having spent a good
>   > amount of time trying to get the JSPs run under the
>   > web-inf directory, I figured out that there has been a thread
>   > on "Can't place JSP beneath WEB-INF in WebLogic 6.0".



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Tom Lister

I thought that although you cannot access directly, you are allowed to
forward from a servlet/jsp. And that this is an option for securing pages.
Does this have any bearing on my earlier post re trying to access
WEB-INF/javadoc/index.html?
:-)
Regards
[EMAIL PROTECTED]  
Advanced Banking Solutions Limited
+44 (0)20 7448 9146
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
¸¸,ø¤º°'°º¤ø,¸¸,
This email and any attachments are confidential. They may contain privileged

information or useless trivia and are intended for the named addressee (s)
only. 
They must not be distributed without our consent. If you are not the
intended recipient, 
please notify us immediately and do not disclose, distribute, or retain this
email or any
part of it. Unless expressly stated, opinions in this email are those of the

individual sender, and not of Advanced Banking Solutions Limited. We believe

but do not warrant that this e-mail and any attachments are virus free. You
must
therefore take full responsibility for virus checking. Advanced Banking
Solutions
Limited and its subsidiaries reserve the right to monitor all email
communications
through their networks. 
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
¸¸,ø¤º°'°º¤ø,¸¸,


-Original Message-
From:   D. Veniseleas [SMTP:[EMAIL PROTECTED]]
Sent:   18 December 2001 16:11
To: 'Struts Users Mailing List'
Subject:AW: 404 error when placing JSPs beneath WEB-INF

 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

You shouldn't have jsp's under WEB-INF, but only xml-files for
webapp-configuration,
compiled classes, libraries, tag-lib-descriptor-files etc.
WEB-INF and beneath is not accessible from outside.

Regards,

Dimitris


> -Ursprüngliche Nachricht-
> Von:  [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Dienstag, 18. Dezember 2001 16:40
> An:   [EMAIL PROTECTED]
> Betreff:  404 error when placing JSPs beneath WEB-INF
> 
> After reading the Struts Catalogue and having spent a good 
> amount of time trying to get the JSPs run under the
> web-inf directory, I figured out that there has been a thread
> on "Can't place JSP beneath WEB-INF in WebLogic 6.0".
> 
> I'm using BEA WL 6.1 and also have the same 404 error mentioned
> in the message
>
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14704.
> html . However, I also tried it on Tomcat4.0 and Tomcat3.2, which
> both gave the same 404 error. So it seems to be something I'm
doing
> wrong.
> 
> Just to make sure -- I have the following setup:
> 
> 1) directory structure:
> - myApp
> - web-inf
> - jsp (contains one page: start.jsp)
> - lib
> - classes ...
> 
> 2) struts-config.xml
> 
> ...
> type="mypackage.StartAction"
>name="theForm"
>scope="session"
>  validate="false"
>  parameter="commingIn"
>input="/web-inf/jsp/start.jsp">
> 
> 
> 
> 3) StartAction 
> perform(...){
> ...
> System.out.println("forward path: " +
> mapping.findForward("display").getPath()); 
> return (mapping.findForward(forward));
>   }
> 
> which accurately prints out "path: /web-inf/jsp/start.jsp"
> 
> 
> Bea doesn't say anything except 404 (basically). 
> 
> Tomcat 3 says: 
> ... 404 ... 
> Original request: /myApp/web-inf/jsp/start.jsp
> Not found request: /myApp/web-inf/jsp/start.jsp 
> 
> Tomcat4 brings:
> Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp
>

>  type Status report
> message /web-inf/jsp/start.jsp
> description The requested resource (/web-inf/jsp/start.jsp) is not
> available.  
> 
> The application is packed in a jar file. I checked the contents of
> the file. Looks as expected (having the jsp in the web-inf/jsp
> directory).
> 
> It might have something to do with Win NT4, on which the servers
> are running. But this is just a guess.
> 
> 
> Help greatly appreciated! Thanks for your time,
> Holger
> 
> Please respond to [EMAIL PROTECTED]
> 
> 
>

> 

RE: 404 error when placing JSPs beneath WEB-INF

2001-12-18 Thread Dave J Dandeneau

Have you tried "WEB-INF" instead of "web-inf". I was having a similiar
problem, and that fixed it.

Thanks,
dave dandeneau

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 10:40 AM
To: [EMAIL PROTECTED]
Subject: 404 error when placing JSPs beneath WEB-INF


After reading the Struts Catalogue and having spent a good 
amount of time trying to get the JSPs run under the
web-inf directory, I figured out that there has been a thread
on "Can't place JSP beneath WEB-INF in WebLogic 6.0".

I'm using BEA WL 6.1 and also have the same 404 error mentioned
in the message
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14704.html
.
However, I also tried it on Tomcat4.0 and Tomcat3.2, which both gave the
same 404 error. So it seems to be something I'm doing wrong.

Just to make sure -- I have the following setup:

1) directory structure:
- myApp
- web-inf
- jsp (contains one page: start.jsp)
- lib
- classes ...

2) struts-config.xml

...




3) StartAction 
perform(...){
...
System.out.println("forward path: " +
mapping.findForward("display").getPath());
return (mapping.findForward(forward));
  }

which accurately prints out "path: /web-inf/jsp/start.jsp"


Bea doesn't say anything except 404 (basically). 

Tomcat 3 says: 
... 404 ... 
Original request: /myApp/web-inf/jsp/start.jsp
Not found request: /myApp/web-inf/jsp/start.jsp 

Tomcat4 brings:
Apache Tomcat/4.0.1 - HTTP Status 404 - /web-inf/jsp/start.jsp


type Status report
message /web-inf/jsp/start.jsp
description The requested resource (/web-inf/jsp/start.jsp) is not
available.

The application is packed in a jar file. I checked the contents of the
file.
Looks as expected (having the jsp in the web-inf/jsp directory).

It might have something to do with Win NT4, on which the servers are
running.
But this is just a guess.


Help greatly appreciated! Thanks for your time,
Holger

Please respond to [EMAIL PROTECTED]



__
Eine Klasse für sich - der WEB.DE Club. High End Kommunikation & MEHR.
Mehr Speicher, mehr Leistung, mehr Vorteile - http://club.web.de


--
To unsubscribe, e-mail:

For additional commands, e-mail: