Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-12 Thread Gregor Schneider
Chris, On Wed, Mar 11, 2009 at 11:13 PM, Christopher Schultz wrote: > > No, he's telling you about /his/ webapp, not making a general statement. > agreed - wasn't thinking of that > >> Now I'm wondering ("Mr. Servlet-Spec" Chuck, you comment on that one): > > Aw you can read the spec just a

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 3/9/2009 3:58 PM, Gregor Schneider wrote: > On Mon, Mar 9, 2009 at 8:23 PM, Len Popp wrote: >> What I mean is, clients *never* access a .jsp file by URL, e.g. >> "http://www.example.com/app/foo.jsp";. > > This is definately wrong. No, he

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 3/9/2009 4:03 PM, Ken Bowen wrote: > I agree with everything in both posts, but I just don't see what the > /location/ of the jsp files (inside/outside WEB-INF) has to do with it. It's just an access thing, really: no remote client can reques

Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread mitalub
message in context: http://www.nabble.com/Default-Tomcat-Page-w-o-Redirect-tp22405664p22426951.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Ken Bowen
On Mar 9, 2009, at 4:46 PM, Len Popp wrote: So, I'm a disciplined developer? :-) I think it'd be a pretty good bet on this list :-) Yeah, it's basically because in this setup the JSP pages are part of the app's implementation, not part of the exposed URL space. So I put them under WEB-INF

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Len Popp
On Mon, Mar 9, 2009 at 16:03, Ken Bowen wrote: > I agree with everything in both posts, but I just don't see what the > /location/ of the jsp files (inside/outside WEB-INF) has to do with it. > All that controls is whether a user/client can find a way to look inside the > file. > One can (as I do)

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Gregor Schneider
No I got it. Guess I'll spent some time of the coming weekend reading up those concepts. Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 ---

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Len Popp
On Mon, Mar 9, 2009 at 15:58, Gregor Schneider wrote: > Len, > > agreed to the most of what you said, however, I still do not see why > JSPs have to go (or should go) into WEB-INF. Just to hide them from the user, because in this case they're not intended to be accessed directly by the user. > O

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Gregor Schneider
Dave, On Mon, Mar 9, 2009 at 9:16 PM, David Smith wrote: > > Just use the jstl tag url="/WEB-INF/jsps/myJspFile.jsp" /> and it's done. > Thanks - I guess that's what I was wondering about. Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807

RE: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: [OT] Re: Default Tomcat Page w/o Redirect > > > What I mean is, clients *never* access a .jsp file by URL, e.g. > > "http://www.example.com/app/foo.jsp";. > > This is definately wro

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread David Smith
Gregor Schneider wrote: > Len, > > agreed to the most of what you said, however, I still do not see why > JSPs have to go (or should go) into WEB-INF. > > Even in this tutorial (linked directly fom java.sun.com) > http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ the JSP-file goes > directly int

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Ken Bowen
I agree with everything in both posts, but I just don't see what the / location/ of the jsp files (inside/outside WEB-INF) has to do with it. All that controls is whether a user/client can find a way to look inside the file. One can (as I do) follow the separation of concerns quite strictly (a

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Gregor Schneider
Len, agreed to the most of what you said, however, I still do not see why JSPs have to go (or should go) into WEB-INF. Even in this tutorial (linked directly fom java.sun.com) http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/ the JSP-file goes directly into the app-dir where also the static HTM

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Hassan Schroeder
On Mon, Mar 9, 2009 at 12:23 PM, Len Popp wrote: > What I mean is, clients *never* access a .jsp file by URL, e.g. > "http://www.example.com/app/foo.jsp";. All URLs seen by the client are > mapped to servlets, not JSP files. > The reason for doing it this way is to separate app logic from page >

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Len Popp
What I mean is, clients *never* access a .jsp file by URL, e.g. "http://www.example.com/app/foo.jsp";. All URLs seen by the client are mapped to servlets, not JSP files. All client requests are handled by servlets, not JSP files. The servlets call various other Java objects to do their jobs, and at

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Ken Bowen
I don't /know/ what best practice is here (I do more or less what you do), but I suspect the theory is that if a user url could arrive at a page, then it should be comprehensible to the user. I don't think I support that. If users go poking around were they don't belong, they get what the

Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Gregor Schneider
Len, On Mon, Mar 9, 2009 at 7:47 PM, Len Popp wrote: > > Really? That's how I write all my apps! Requests are handled by > servlets, which forward to JSPs to format their output. Since the JSPs > are not intended to be served to clients directly, they must reside > under WEB-INF. > Well, that's

[OT] Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Len Popp
On Mon, Mar 9, 2009 at 05:13, Gregor Schneider wrote: > JSPs in WEB-INF-folder? > > Well, I'm not familiar with Spring, however, *that* concept is > completely new to me... Really? That's how I write all my apps! Requests are handled by servlets, which forward to JSPs to format their output. Sinc

Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Tim Funk
In practice, I've found the easiest way is to do this: - Create index.jsp - Add a one line /index.jsp which does a forward to your home page like this: -Tim mitalub wrote: Hi, I've tried searching around for this, but I can't find a clear answer, so am starting to think it's not possible.

Re: Default Tomcat Page w/o Redirect

2009-03-09 Thread Gregor Schneider
On Mon, Mar 9, 2009 at 3:00 AM, mitalub wrote: > > The corresponding ***jsp*** and java classes all sit within WEB-INF.  Setting > the > welcome page seems to work for static welcome pages only... is this true, or > am I doing something wrong? > JSPs in WEB-INF-folder? Well, I'm not familiar wit

RE: Default Tomcat Page w/o Redirect

2009-03-08 Thread Caldarale, Charles R
> From: mitalub [mailto:mita...@yahoo.com] > Subject: RE: Default Tomcat Page w/o Redirect > > Setting the welcome page seems to work for static > welcome pages only... Not true, you may specify dynamic content, such as index.jsp. Since Spring is doing most of the dirty wo

RE: Default Tomcat Page w/o Redirect

2009-03-08 Thread mitalub
p and java classes all sit within WEB-INF. Setting the welcome page seems to work for static welcome pages only... is this true, or am I doing something wrong? Caldarale, Charles R wrote: > >> From: mitalub [mailto:mita...@yahoo.com] >> Subject: Default Tomcat Page w/o Redirect >&

RE: Default Tomcat Page w/o Redirect

2009-03-08 Thread Caldarale, Charles R
> From: mitalub [mailto:mita...@yahoo.com] > Subject: Default Tomcat Page w/o Redirect > > Currently, my home page is at > http://www.mydomain.com/myappname/app/home. > > I want to be able to access this page by going to just > http://www.mydomain.com, but without

Default Tomcat Page w/o Redirect

2009-03-08 Thread mitalub
hout a redirect. In other words, the address in the address bar should remain short & sweet. Is this possible with tomcat? Thanks. -- View this message in context: http://www.nabble.com/Default-Tomcat-Page-w-o-Redirect-tp22405664p22405664.html Sent from the Tomcat - User mailing list ar