Hey I have found the main cause.

Actually when yopu are declaring the variable  you are putting the value of
tag right.

When your 2.jsp file includes 1.jsp file it do use the value of variable
which is coming as a html tag
and it is not showing anyuthing.

Try chaning the value of the cvarialble to something welse than that of html
tag and it will show you the output.


Hope this will help.


Gary



----- Original Message -----
From: "Gurpreet Dhanoa" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, January 19, 2004 2:16 PM
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]
> >
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to