How to block direct jsp page request

Hello;i have included some jsp files into other...And i want that included files not to be requested directly from browser...How can i do this...?thank you
[176 byte] By [netsonicca] at [2007-10-3 5:37:15]
# 1
you should use some kind of http request interceptor http://java.sun.com/products/servlet/Filters.htmlMessage was edited by: manuel.leiria
manuel.leiriaa at 2007-7-14 23:44:52 > top of Java-index,Java Essentials,Java Programming...
# 2
Use a filter. (class Filter)Edit:Sorry (interface Filter).And thank you manuel for editing your post to take my answer and make me look like a piggy-backing idiot.
masijade.a at 2007-7-14 23:44:52 > top of Java-index,Java Essentials,Java Programming...
# 3

> Hello;

>

> i have included some jsp files into other...And i

> want that included files not to be requested directly

> from browser...How can i do this...?

>

> thank you

By first of all, not putting those .jsp files in the web app's publically accessible folder(s). If they're meant to be private, put them somewhere in the web-inf/ folder structure, and of course modify your code to get them from there.

warnerjaa at 2007-7-14 23:44:52 > top of Java-index,Java Essentials,Java Programming...
# 4
thanks for the answers got it:)
netsonicca at 2007-7-14 23:44:52 > top of Java-index,Java Essentials,Java Programming...
# 5
Doublepost...Message was edited by: Lajm
Lajma at 2007-7-14 23:44:53 > top of Java-index,Java Essentials,Java Programming...
# 6
I suppose that you have some sort of jsp-code-snipplet that you use the <%@include%> on in other jsp's that you want to be called.My suggestion is that you put the JSP segment files into WEB-INF/jspf/ since that is the recommended way to do it according to the
Lajma at 2007-7-14 23:44:53 > top of Java-index,Java Essentials,Java Programming...
# 7
Thanks for effectively duplicating what I already said, Lajm.
warnerjaa at 2007-7-14 23:44:53 > top of Java-index,Java Essentials,Java Programming...