• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic