File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 61661
    
  67

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Include Error