File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mapping JSP

 
Hiep Nguyen
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
http://127.0.0.1:8080/myapp/A.jsp

so now i don't want user access to B
http://127.0.0.1:8080/myapp/B.jsp

i want to force everytime user uses the URL
http://127.0.0.1:8080/myapp/B.jsp
it also mean http://127.0.0.1:8080/myapp/A.jsp

thank you !
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic