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
-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
-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
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
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
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)
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
---
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
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
> 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
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
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
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
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
>
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
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
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
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
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.
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
> 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
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
>&
> 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
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
24 matches
Mail list logo