You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Liles <da...@dynamichostings.com> on 2004/01/17 16:12:19 UTC
DispatchAction question
I just started working on an app and my action classes extend DisptachAction. I was wondering if there will be a problem if my action class supports multiple forms....
The action mapping in the struts-config.xml file has an input attribute indicating which jsp the request came from.... what happens if the action supports multiple forms? Do I need to create an action mapping for each form that maps to the same action class... that way each mapping can have its own input reference?
Thanks
RE: DispatchAction question
Posted by Richard Hightower <rh...@arc-mind.com>.
Sure that is one way to do it.
Look for my comments below.... (Mike Deegan [mpdeegan@hotmail.com] the
Struts list avenger missed them :)
Rick Hightower
Developer
Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm
Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring
-----Original Message-----
From: David Liles [mailto:dave@dynamichostings.com]
Sent: Saturday, January 17, 2004 8:12 AM
To: struts-user@jakarta.apache.org
Subject: DispatchAction question
I just started working on an app and my action classes extend
DisptachAction. I was wondering if there will be a problem if my action
class supports multiple forms....
** The same action can support multiple ActionForms as it can be mapped in
several times.
The action mapping in the struts-config.xml file has an input attribute
indicating which jsp the request came from.... what happens if the action
supports multiple forms? Do I need to create an action mapping for each form
that maps to the same action class... that way each mapping can have its own
input reference?
** This is the most straight forward way to do it. There are other ways,
but....
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: DispatchAction question
Posted by Richard Hightower <rh...@arc-mind.com>.
Sure that is one way to do it.
Rick Hightower
Developer
Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm
Struts/J2EE consulting --
http://www.arc-mind.com/consulting.htm#StrutsMentoring
-----Original Message-----
From: David Liles [mailto:dave@dynamichostings.com]
Sent: Saturday, January 17, 2004 8:12 AM
To: struts-user@jakarta.apache.org
Subject: DispatchAction question
I just started working on an app and my action classes extend
DisptachAction. I was wondering if there will be a problem if my action
class supports multiple forms....
** The same action can support multiple ActionForms as it can be mapped in
several times.
The action mapping in the struts-config.xml file has an input attribute
indicating which jsp the request came from.... what happens if the action
supports multiple forms? Do I need to create an action mapping for each form
that maps to the same action class... that way each mapping can have its own
input reference?
** This is the most straight forward way to do it. There are other ways,
but....
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Including one JSP in another
Posted by Gurpreet Dhanoa <gu...@smartdatainc.com>.
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" <gu...@smartdatainc.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<va...@wipro.com>
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 */
>
>
> <%@include 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 <%@include file="something"% > instead of %@include
> page="soimethjing%
>
>
> The above code is working on my end
>
> Gary
>
>
>
> ----- Original Message -----
> From: "Gurpreet Dhanoa" <gu...@smartdatainc.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
> <va...@wipro.com>
> 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" <va...@wipro.com>
> > To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>;
> > <va...@wipro.com>
> > 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
> > > <%@include 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
> > > Mailadmin@wipro.com immediately
> > > and destroy all copies of this message and any attachments.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> > > 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
> > Mailadmin@wipro.com immediately
> > > and destroy all copies of this message and any attachments.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Including one JSP in another
Posted by vasudevrao gupta <va...@wipro.com>.
That was a typo mistake..but in the actual program , I used "file"
Regards
VasudevRaoGupta
-----Original Message-----
From: Gurpreet Dhanoa [mailto:gurpreetd@smartdatainc.com]
Sent: 19 January 2004 14:16
To: Struts Users Mailing List; vasudevrao.gupta@wipro.com
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 */
<%@include 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 <%@include file="something"% > instead of %@include
page="soimethjing%
The above code is working on my end
Gary
----- Original Message -----
From: "Gurpreet Dhanoa" <gu...@smartdatainc.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<va...@wipro.com>
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" <va...@wipro.com>
> To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>;
> <va...@wipro.com>
> 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
> > <%@include 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
> > Mailadmin@wipro.com immediately
> > and destroy all copies of this message and any attachments.
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> > 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
> Mailadmin@wipro.com immediately
> > and destroy all copies of this message and any attachments.
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
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 Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Including one JSP in another
Posted by Gurpreet Dhanoa <gu...@smartdatainc.com>.
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 */
<%@include 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 <%@include file="something"% > instead of %@include
page="soimethjing%
The above code is working on my end
Gary
----- Original Message -----
From: "Gurpreet Dhanoa" <gu...@smartdatainc.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<va...@wipro.com>
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" <va...@wipro.com>
> To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>;
> <va...@wipro.com>
> 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
> > <%@include 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
> > Mailadmin@wipro.com immediately
> > and destroy all copies of this message and any attachments.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> > 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
> Mailadmin@wipro.com immediately
> > and destroy all copies of this message and any attachments.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Including one JSP in another
Posted by "Sathish Kumar T.K." <sa...@quinnox.com>.
How about your path?? Is that available in the relative path of ur app?
try something like this...
<%@ include file="/WEB-INF/pages/abc.jsp" %>
- Sathish
----- Original Message -----
From: "vasudevrao gupta" <va...@wipro.com>
To: "'Gurpreet Dhanoa'" <gu...@smartdatainc.com>; "'Struts Users Mailing
List'" <st...@jakarta.apache.org>
Sent: Monday, January 19, 2004 2:05 PM
Subject: RE: Including one JSP in another
>
> I tries that also..but, even then its not recognising the String
>
> -----Original Message-----
> From: Gurpreet Dhanoa [mailto:gurpreetd@smartdatainc.com]
> Sent: 19 January 2004 14:03
> To: Struts Users Mailing List; vasudevrao.gupta@wipro.com
> Subject: Re: Including one JSP in another
>
>
> try to using <jsp:include> instead of <%@ include>
>
>
> Gary
> ----- Original Message -----
> From: "vasudevrao gupta" <va...@wipro.com>
> To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>;
> <va...@wipro.com>
> 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
> > <%@include 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
> > Mailadmin@wipro.com immediately
> > and destroy all copies of this message and any attachments.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> > 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
> Mailadmin@wipro.com immediately
> > and destroy all copies of this message and any attachments.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
> 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
Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Including one JSP in another
Posted by vasudevrao gupta <va...@wipro.com>.
I tries that also..but, even then its not recognising the String
-----Original Message-----
From: Gurpreet Dhanoa [mailto:gurpreetd@smartdatainc.com]
Sent: 19 January 2004 14:03
To: Struts Users Mailing List; vasudevrao.gupta@wipro.com
Subject: Re: Including one JSP in another
try to using <jsp:include> instead of <%@ include>
Gary
----- Original Message -----
From: "vasudevrao gupta" <va...@wipro.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>;
<va...@wipro.com>
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
> <%@include 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
> Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> 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
Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
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 Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Including one JSP in another
Posted by Gurpreet Dhanoa <gu...@smartdatainc.com>.
try to using <jsp:include> instead of <%@ include>
Gary
----- Original Message -----
From: "vasudevrao gupta" <va...@wipro.com>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>;
<va...@wipro.com>
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
> <%@include 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
> Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> 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
Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Including one JSP in another
Posted by vasudevrao gupta <va...@wipro.com>.
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
<%@include 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
Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
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 Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Including one JSP in another
Posted by vasudevrao gupta <va...@wipro.com>.
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
<%@include 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 Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org