Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

error file not found in jsp:include  RSS feed

 
amir taghvayi
Ranch Hand
Posts: 54
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
my project structure is:
    views/content/content.jsp
    skin_manager/structure/main_panels/defualt/StartPanel.jsp
    skin_manager/structure/main_panels/red_rounder/StartPanel.jsp

the content of views/content/content.jsp is:

the content of skin_manager/structure/main_panels/defualt/StartPanel.jsp is:

when The requested page views/content/content.jsp get this error in Tomcat :


but project is successfully run when replace path variable with 'red_rounder' in skin_manager/structure/main_panels/defualt/StartPanel.jsp page :



please help me !!!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stop with the "../../" stuff. Page-relative addressing is guaranteed to cause problems -- if not now, then later.

Use context-relative addressing that starts with "/" and contains the entire path from the context root.
 
amir taghvayi
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you bear !!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!