Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Include Error

 
Dennis Hopfer
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get:



when I try to include index_top.jsp like so:



The server seems to insist on prepending an extra / into the relative file path. Same issue even if I try to run the thing with an absolute link. Must be a server config issue right?

Server is running Tomcat 5.5 on some flavor of Linux.

I have tried the <jsp:include> directive but the result is the same.

Help.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64702
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Relative file paths are death in a web application. Use a path starting at the web root.
 
Dennis Hopfer
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems much less to do with relative/absolute URLs than it does with a configuration bug; as noted absolute references do not work either.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic