This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes JSP Include Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JSP Include Error" Watch "JSP Include Error" New topic
Author

JSP Include Error

Dennis Hopfer
Ranch Hand

Joined: Dec 02, 2010
Posts: 43
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

Joined: Jan 10, 2002
Posts: 60752
    
  65

Relative file paths are death in a web application. Use a path starting at the web root.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Dennis Hopfer
Ranch Hand

Joined: Dec 02, 2010
Posts: 43
Seems much less to do with relative/absolute URLs than it does with a configuration bug; as noted absolute references do not work either.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSP Include Error
 
Similar Threads
Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei
Open crystal report in JSP
struts application in tomcat server
Unable to Resolve JSTL taglib Declaration
struts application deployment in tomcat server