This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Mapping JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Mapping JSP" Watch "Mapping JSP" New topic

Mapping JSP

Hiep Nguyen
Ranch Hand

Joined: Oct 26, 2001
Posts: 46
I know we can map a jsp to servlet. so now my problem is:
i have a jsp A, and B which A includes B.
so for instance:

so now i don't want user access to B

i want to force everytime user uses the URL
it also mean

thank you !
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

pretty much impossible.

Let's say you managed somehow to map b.jsp to mean "a.jsp". What would happen when a.jsp "includes" b.jsp?

To prevent access to b.jsp, you can place it in WEB-INF. You can <%@ include or <jsp:include files that are in WEB-INF.
I agree. Here's the link:
subject: Mapping JSP
Similar Threads
mock question
Absolute path for jsp
Difference JSP File & JSP Page
how to change the URL
response.sendRedirect Problem