• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Interpreting paths in jsp:include and include directive  RSS feed

 
Ranch Hand
Posts: 264
  • 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.
 
Ranch Hand
Posts: 2023
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!