That was a typo mistake..but in the actual program , I used "file"

Regards
VasudevRaoGupta

-----Original Message-----
From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] 
Sent: 19 January 2004 14:16
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Including one JSP in another


Hey your syntax is inccorect

try this

/**1.jsp */
<BODY>
<%!
//Enquiry module images
private static final String ENQUIRY_IMG_PATH="<html:rewri2:14 PM
1/19/2004te
src='/screens/enquiry/images'/>";

%>


/*###################*/

/** 2.jsp */


<[EMAIL PROTECTED] file="1.jsp" %>
But, when I try to access any of the constants of jsp1 from jsp2 in the
below way, its not getting the value of the constant..
<html:link href="javascript:click('customer');" ><%=
ENQUIRY_IMG_PATH%>


You should use <[EMAIL PROTECTED] file="something"% > instead of  [EMAIL PROTECTED]
page="soimethjing%


The above code is working on my end

Gary



----- Original Message -----
From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, January 19, 2004 2:03 PM
Subject: Re: Including one JSP in another


> try to using <jsp:include> instead of <%@ include>
>
>
> Gary
> ----- Original Message -----
> From: "vasudevrao gupta" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Monday, January 19, 2004 1:56 PM
> Subject: Including one JSP in another
>
>
> >
> >
> >
> > Hi All,
> >
> > I have jsp1 which contains the below code as the scriplet:
> >
************************************************************************
> > **********
> > <BODY>
> > <%!
> > //Enquiry module images
> > private static final String ENQUIRY_IMG_PATH="<html:rewrite
> > src='/screens/enquiry/images'/>";
> >
> > %>
> > </BODY>
> >
************************************************************************
> > ***********
> >
> > Jsp2 includes jsp1 using
> > <[EMAIL PROTECTED] page="jsp1.jsp" %>
> > But, when I try to access any of the constants of jsp1 from jsp2 in
the
> > below way, its not getting the value of the constant..
> > <html:link href="javascript:click('customer');" ><html:img src="<%=
> > ENQUIRY_IMG_PATH%>/Customer-DB.gif/>" imageName="custImage"
> > /></html:link>
> >
> > Can anyone help me in this regard..???
> >
> > Regards
> > VasudevRaoGupta
> >
> >
> > Confidentiality Notice
> >
> > The information contained in this electronic message and any
attachments
> > to this message are intended
> > for the exclusive use of the addressee(s) and may contain
confidential
> > or privileged information. If
> > you are not the intended recipient, please notify the sender at
Wipro or
> > [EMAIL PROTECTED] immediately
> > and destroy all copies of this message and any attachments.
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > Confidentiality Notice
> >
> > The information contained in this electronic message and any
attachments
> to this message are intended
> > for the exclusive use of the addressee(s) and may contain
confidential
or
> privileged information. If
> > you are not the intended recipient, please notify the sender at
Wipro or
> [EMAIL PROTECTED] immediately
> > and destroy all copies of this message and any attachments.
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


Confidentiality Notice 

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to