• 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

Getting include to work

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am hoping to get an include to work for my internal web site. I am going to place the html that is common to all pages in a header and footer, which is included on all web pages. I am making them jsp so that I can enable them (with todays date for example).

However, I am having trouble getting them recognized. When I have



It produces the error:
File "/Includes/title.jsp" not found

I have created this file underneath
Web pages\Web INF\Includes\title.jsp

I have also tried



Obviously I don't understand the relative directory structure of the jsp pages. If someone could point me to a resource I would be much appreciative.

Thank you
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The root of your web app should be where the WEB-INF folder is located. Not "Web INF", by the way. When posting information in questions, please try to be accurate.

So your path would be "/WEB-INF/Includes/title.jsp"

You do not specify the context path in an include path.
 
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tom Joiner:
I have created this file underneath
Web pages\Web INF\Includes\title.jsp


Bear Bibeault:
When posting information in questions, please try to be accurate.


That one could've come right out of the FAQ...


Tom, what happens if you move "title.jsp" into "Web pages\Includes\" ?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you really have space in your context path?
 
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic