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

Interpreting paths in jsp:include and include directive

 
Senthil Kumar
Ranch Hand
Posts: 264
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
can some one decipher the following text from the specs.

The page attribute of both the jsp:include and the jsp:forward actions are interpreted relative to the current JSP page, while the file
attribute in an include directive is interpreted relative to the current JSP file.

� A.jsp says %@ include file=�dir/B.jsp�% and dir/B.jsp says %@ include
file=�C.jsp� In this case the relative specification C.jsp resolves to dir/C.jsp.
� A.jsp says jsp:include page=�dir/B.jsp�/ and dir/B.jsp says jsp:include
page=�C.jsp� /. In this case the relative specification C.jsp resolves to dir/
C.jsp.
� A.jsp says jsp:include page=�dir/B.jsp�/ and dir/B.jsp says %@ include
file=�C.jsp� %. In this case the relative specification C.jsp resolves to dir/C.jsp.
� A.jsp says %@ include file=�dir/B.jsp�% and dir/B.jsp says jsp:include
page=�C.jsp�/. In this case the relative specification C.jsp resolves to C.jsp.
 
wise owen
Ranch Hand
Posts: 2023
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic