Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old January 16th, 2001, 03:16 PM
coreyti coreyti is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: San Francisco
Posts: 1 coreyti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
running JServ on Apache:

I'm wanting to use context-relative URIs in my JSP include directives ( file="/pathfromroot/file.jsp" ) as opposed to absolute ( file="http://www.mysite.com/pathfromroot/file.jsp" ) or page-relative ( file="../../pathfromroot/file.jsp" ) URIs.

The Sun JavaServer Pages Spec says this is okay.

The problem is, when I modify something from, say,
<%@ include file="../../includes/file.jsp" @>
, which is in a page two directories deep from the established root, to
<%@ include file="/includes/file.jsp" @>
, which should then work wherever the page is located,
the page doesn't compile because the include isn't found.

Context-relative URIs work fine throughout the site for image references, links, and standard include directives ( <!--#include ... --> ).

When I check the error logs, JServ appears to interpret the context-relative URI in such a way that the string, "null", appears in the middle of the path used to find the include. Something like:
/site/jsp/null/include/file.jsp

Without that "null" the include would show up fine. However, I can't figure out where it's coming from.

Thanks in advance.
corey

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > JSP context-relative includes using JServ on Apache


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway