• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Interpreting paths in jsp:include and include directive

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to interpret paths in JSP's inclusion?
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic