Re: FW: JSP includes of

2001-03-04 Thread Craig R. McClanahan

"Zia, Asad" wrote:

> I am including the taglib URIs in the include file. The page comes up, with
> the tags unprocessed. When I view the source of the page, the tags appear
> unprocessed as text.
>
> This is my include file:
>
> //header.jsp
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> Hello!
>
> This is my JSP:
> //welcome.jsp
> 

Using  in this way causes a completely separate request to the
"include/header.jsp" page.  What you want is to use the include *directive*
instead:

<%@ include file="include/header.jsp" %>

which is processed as your welcome.jsp page is compiled, just like an "#include"
directive in a C program.

>
> 
>
> This image does not load in the page but Hello! appears. When I view the
> source, this img tag is described explicitly i.e.
> 
>
> Thus my include file is found and loaded without errors, but does not
> resolve the taglib URI, without reporting errors. Any suggestion will help!
>
> Thanks
>
> Asad
>

Craig





Re: JSP includes of

2001-03-03 Thread Incze Lajos

Or: if you really need runtime/dynamic include the put the taglib
declarations into the outer jsp, as well.
incze
On Fri, Mar 02, 2001 at 04:14:31PM -0500, Deadman, Hal wrote:
> You need to use <%@ include file="/include/header.jsp" %> instead of
> jsp:include.
> 
> When you use jsp:include it is invoking a seperate jsp. The include file
> directive will do an inline of the code from the other file which doesn't
> have to be a complete jsp, it may be just a code fragment. For that reason I
> would rename header.jsp to header.inc or something. That way if you are
> doing a batch jsp compile you will be able to tell jsp fragments from full
> jsps using the extension. 
> 
> -Original Message-
> From: Zia, Asad [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 02, 2001 1:00 PM
> To: '[EMAIL PROTECTED]'
> Subject: FW: JSP includes of
> 
> 
> I am including the taglib URIs in the include file. The page comes up, with
> the tags unprocessed. When I view the source of the page, the tags appear
> unprocessed as text. 
> 
> This is my include file:
> 
> //header.jsp
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> Hello!
> 
> This is my JSP:
> //welcome.jsp
> 
> 
> 
> This image does not load in the page but Hello! appears. When I view the
> source, this img tag is described explicitly i.e.
> 
> 
> Thus my include file is found and loaded without errors, but does not
> resolve the taglib URI, without reporting errors. Any suggestion will help!
> 
> Thanks
> 
> Asad
> 
> -Original Message-
> From: Katarina Nelson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 01, 2001 5:23 PM
> To: [EMAIL PROTECTED]
> Subject: RE: JSP includes of
> 
> 
> There is exactly what I mean.
> Paste the needed taglib tags e.g. :
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> into your "header.jsp" page.
> 
> /Katarina
> 
> -Original Message-
> From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
> Sent: den 1 mars 2001 23:12
> To: '[EMAIL PROTECTED]'
> Subject: RE: JSP includes of
> 
> 
> The application finds the header file; I am also sourcing an image which
> appears on the page from the include. However, it is unable to resolve the
> tag library descriptors. Thus the include statement is fine, it is the
> taglib uri that is not working from the include.
> 
> 
> Thanks
> -Original Message-
> From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 01, 2001 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP includes of
> 
> 
> Try to change  to put a full path to
> header.jsp file. For example:
> . But I am not sure.
> 
> Katarina Nelson wrote:
> 
> > Try to include the needed .tld files into the "include/header.jsp" page.
> > It worked for me.
> >
> > /Katarina
> >
> > -Original Message-
> > From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
> > Sent: den 1 mars 2001 22:29
> > To: '[EMAIL PROTECTED]'
> > Subject: JSP includes of
> >
> > I am having trouble using includes and custom tags in JSPs with Struts.
> >
> > The application is unable to find the tag descriptor files. For example, I
> > have an include file that contains:
> >
> > // header.jsp
> > <%@ page language="java" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> >
> > and call it in the JSP:
> > 
> >
> > The .tld files can not be resolved. The include directory is one level
> under
> > the JSP and I have tried different paths to the .tld files with no
> success.
> > How can I get this to work if at all?
> >
> > Solutions are appreciated.



RE: JSP includes of

2001-03-02 Thread Deadman, Hal

You need to use <%@ include file="/include/header.jsp" %> instead of
jsp:include.

When you use jsp:include it is invoking a seperate jsp. The include file
directive will do an inline of the code from the other file which doesn't
have to be a complete jsp, it may be just a code fragment. For that reason I
would rename header.jsp to header.inc or something. That way if you are
doing a batch jsp compile you will be able to tell jsp fragments from full
jsps using the extension. 

-Original Message-
From: Zia, Asad [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 1:00 PM
To: '[EMAIL PROTECTED]'
Subject: FW: JSP includes of


I am including the taglib URIs in the include file. The page comes up, with
the tags unprocessed. When I view the source of the page, the tags appear
unprocessed as text. 

This is my include file:

//header.jsp
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
Hello!

This is my JSP:
//welcome.jsp



This image does not load in the page but Hello! appears. When I view the
source, this img tag is described explicitly i.e.


Thus my include file is found and loaded without errors, but does not
resolve the taglib URI, without reporting errors. Any suggestion will help!

Thanks

Asad

-Original Message-
From: Katarina Nelson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 5:23 PM
To: [EMAIL PROTECTED]
Subject: RE: JSP includes of


There is exactly what I mean.
Paste the needed taglib tags e.g. :
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
into your "header.jsp" page.

/Katarina

-Original Message-
From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
Sent: den 1 mars 2001 23:12
To: '[EMAIL PROTECTED]'
Subject: RE: JSP includes of


The application finds the header file; I am also sourcing an image which
appears on the page from the include. However, it is unable to resolve the
tag library descriptors. Thus the include statement is fine, it is the
taglib uri that is not working from the include.


Thanks
-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP includes of


Try to change  to put a full path to
header.jsp file. For example:
. But I am not sure.

Katarina Nelson wrote:

> Try to include the needed .tld files into the "include/header.jsp" page.
> It worked for me.
>
> /Katarina
>
> -Original Message-
> From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
> Sent: den 1 mars 2001 22:29
> To: '[EMAIL PROTECTED]'
> Subject: JSP includes of
>
> I am having trouble using includes and custom tags in JSPs with Struts.
>
> The application is unable to find the tag descriptor files. For example, I
> have an include file that contains:
>
> // header.jsp
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> and call it in the JSP:
> 
>
> The .tld files can not be resolved. The include directory is one level
under
> the JSP and I have tried different paths to the .tld files with no
success.
> How can I get this to work if at all?
>
> Solutions are appreciated.



FW: JSP includes of

2001-03-02 Thread Zia, Asad

I am including the taglib URIs in the include file. The page comes up, with
the tags unprocessed. When I view the source of the page, the tags appear
unprocessed as text. 

This is my include file:

//header.jsp
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
Hello!

This is my JSP:
//welcome.jsp



This image does not load in the page but Hello! appears. When I view the
source, this img tag is described explicitly i.e.


Thus my include file is found and loaded without errors, but does not
resolve the taglib URI, without reporting errors. Any suggestion will help!

Thanks

Asad

-Original Message-
From: Katarina Nelson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 5:23 PM
To: [EMAIL PROTECTED]
Subject: RE: JSP includes of


There is exactly what I mean.
Paste the needed taglib tags e.g. :
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
into your "header.jsp" page.

/Katarina

-Original Message-
From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
Sent: den 1 mars 2001 23:12
To: '[EMAIL PROTECTED]'
Subject: RE: JSP includes of


The application finds the header file; I am also sourcing an image which
appears on the page from the include. However, it is unable to resolve the
tag library descriptors. Thus the include statement is fine, it is the
taglib uri that is not working from the include.


Thanks
-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP includes of


Try to change  to put a full path to
header.jsp file. For example:
. But I am not sure.

Katarina Nelson wrote:

> Try to include the needed .tld files into the "include/header.jsp" page.
> It worked for me.
>
> /Katarina
>
> -Original Message-
> From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
> Sent: den 1 mars 2001 22:29
> To: '[EMAIL PROTECTED]'
> Subject: JSP includes of
>
> I am having trouble using includes and custom tags in JSPs with Struts.
>
> The application is unable to find the tag descriptor files. For example, I
> have an include file that contains:
>
> // header.jsp
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> and call it in the JSP:
> 
>
> The .tld files can not be resolved. The include directory is one level
under
> the JSP and I have tried different paths to the .tld files with no
success.
> How can I get this to work if at all?
>
> Solutions are appreciated.



RE: JSP includes of

2001-03-01 Thread Katarina Nelson

There is exactly what I mean.
Paste the needed taglib tags e.g. :
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
into your "header.jsp" page.

/Katarina

-Original Message-
From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
Sent: den 1 mars 2001 23:12
To: '[EMAIL PROTECTED]'
Subject: RE: JSP includes of


The application finds the header file; I am also sourcing an image which
appears on the page from the include. However, it is unable to resolve the
tag library descriptors. Thus the include statement is fine, it is the
taglib uri that is not working from the include.


Thanks
-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP includes of


Try to change  to put a full path to
header.jsp file. For example:
. But I am not sure.

Katarina Nelson wrote:

> Try to include the needed .tld files into the "include/header.jsp" page.
> It worked for me.
>
> /Katarina
>
> -Original Message-
> From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
> Sent: den 1 mars 2001 22:29
> To: '[EMAIL PROTECTED]'
> Subject: JSP includes of
>
> I am having trouble using includes and custom tags in JSPs with Struts.
>
> The application is unable to find the tag descriptor files. For example, I
> have an include file that contains:
>
> // header.jsp
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> and call it in the JSP:
> 
>
> The .tld files can not be resolved. The include directory is one level
under
> the JSP and I have tried different paths to the .tld files with no
success.
> How can I get this to work if at all?
>
> Solutions are appreciated.




RE: JSP includes of

2001-03-01 Thread Hardee, Tony

The application finds the header file; I am also sourcing an image which
appears on the page from the include. However, it is unable to resolve the
tag library descriptors. Thus the include statement is fine, it is the
taglib uri that is not working from the include.


Thanks
-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP includes of


Try to change  to put a full path to
header.jsp file. For example:
. But I am not sure.

Katarina Nelson wrote:

> Try to include the needed .tld files into the "include/header.jsp" page.
> It worked for me.
>
> /Katarina
>
> -Original Message-
> From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
> Sent: den 1 mars 2001 22:29
> To: '[EMAIL PROTECTED]'
> Subject: JSP includes of
>
> I am having trouble using includes and custom tags in JSPs with Struts.
>
> The application is unable to find the tag descriptor files. For example, I
> have an include file that contains:
>
> // header.jsp
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> and call it in the JSP:
> 
>
> The .tld files can not be resolved. The include directory is one level
under
> the JSP and I have tried different paths to the .tld files with no
success.
> How can I get this to work if at all?
>
> Solutions are appreciated.



Re: JSP includes of

2001-03-01 Thread Maya Muchnik

Try to change  to put a full path to
header.jsp file. For example:
. But I am not sure.

Katarina Nelson wrote:

> Try to include the needed .tld files into the "include/header.jsp" page.
> It worked for me.
>
> /Katarina
>
> -Original Message-
> From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
> Sent: den 1 mars 2001 22:29
> To: '[EMAIL PROTECTED]'
> Subject: JSP includes of
>
> I am having trouble using includes and custom tags in JSPs with Struts.
>
> The application is unable to find the tag descriptor files. For example, I
> have an include file that contains:
>
> // header.jsp
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> and call it in the JSP:
> 
>
> The .tld files can not be resolved. The include directory is one level under
> the JSP and I have tried different paths to the .tld files with no success.
> How can I get this to work if at all?
>
> Solutions are appreciated.




RE: JSP includes of

2001-03-01 Thread Katarina Nelson

Try to include the needed .tld files into the "include/header.jsp" page.
It worked for me.

/Katarina


-Original Message-
From: Hardee, Tony [mailto:[EMAIL PROTECTED]]
Sent: den 1 mars 2001 22:29
To: '[EMAIL PROTECTED]'
Subject: JSP includes of


I am having trouble using includes and custom tags in JSPs with Struts.

The application is unable to find the tag descriptor files. For example, I
have an include file that contains:

// header.jsp
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

and call it in the JSP:


The .tld files can not be resolved. The include directory is one level under
the JSP and I have tried different paths to the .tld files with no success.
How can I get this to work if at all?

Solutions are appreciated.




JSP includes of

2001-03-01 Thread Hardee, Tony

I am having trouble using includes and custom tags in JSPs with Struts. 

The application is unable to find the tag descriptor files. For example, I
have an include file that contains:

// header.jsp
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

and call it in the JSP:
 

The .tld files can not be resolved. The include directory is one level under
the JSP and I have tried different paths to the .tld files with no success.
How can I get this to work if at all?

Solutions are appreciated.