Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

jsp include

Thread view: 
KevinRobinson - 25 Apr 2007 14:12 GMT
Hi,

Can anyone help me with a problem please.

I am using the <%@ include file="/include/amt_header.jsp" %> code to include
a header into a JSP and it works

fine if the file which uses the include statement is in the same folder that
contains the include folder.

The problem is when a file wishes to use the "/include/amt_header.jsp" file
from a different folder.

So for example if my main file is in a folder "cart" and I want to access
the header file contained in the folder "include" then I can't.

I have tried the following but it won't work <%@ include
file="../include/amt_header.jsp" %>.

I am sure there is a siimple solution to this problem but what.

Thanks in Anticipation.

Kevin
Lew - 26 Apr 2007 12:27 GMT
> Hi,
>
> Can anyone help me with a problem please.
>
> I am using the <%@ include file="/include/amt_header.jsp" %> code to include
> a header into a JSP and it works

Please do not multipost. It fragments the thread, making it harder to follow,
and causing people potentially to repeat information someone else has already
provided.  It becomes a time-waster for the very people you most want to help you.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.