jsp include
  Home FAQ Contact Sign in
comp.lang.java.misc only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.java.misc Profile…
 Up
jsp include         


Author: KevinRobinson
Date: Apr 25, 2007 06:12

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
2 Comments
Re: jsp include         


Author: Lew
Date: Apr 26, 2007 04:27

KevinRobinson wrote:
> 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.

--
Lew
no comments