You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by aum strut <au...@gmail.com> on 2008/07/19 11:22:53 UTC

not working

Hi all,

i am trying to include a jsp page using struts2 <s:include tag> but
itdosen't seems to be working in my way.
i have a menu.jsp page where i have written a code for the menu for my
application.
i have included this menu.jsp page in my index.jsp page were it is working
fine.When i click on any menu option it redirect me to another page using
the action.i tried to use the same <s:include> tage in other pages but it is
not working where as it is working fine in the index.jsp page. where as if i
include the code in the other pages instead of including the jap page the
menuy starts appearing fine.


<s:include value="IncludedMenu/menu.jsp"></s:include>

i have included the menu.jsp page in index page using this tag and working
fine here but when tried to use the same tage in others pageses i failed.Can
any one suggest me where i am doing wrong.??

Thanks in advance

-aum

Re: not working

Posted by aum strut <au...@gmail.com>.
Thanks Chase for the Help

There was the problem with the URL value in the include statement.
:)

On Mon, Jul 21, 2008 at 2:46 AM, Chase <ch...@osdev.org> wrote:

> Are you adjusting the relative URL value in your include statement
> based on the folder depth of the containing page or are you just
> copying & pasting the same include statement in every single page?
>
> -Chase
>
> On Sun, Jul 20, 2008 at 1:20 AM, aum strut <au...@gmail.com> wrote:
> > Hi Chase,
> >
> > Is there any relation with the depth because when i put index.jsp page
> and
> > HElloWorld.jsp page in the same folder, it starts to include the other
> jsp
> > page which i unable to include when the pages were in different folders.
> >
> > any suggestion in this regards will be much helpful.
> > yes all the pages have same tag lib directive
> >
> > -Aum
> >
> >
> > On 7/19/08, Chase <ch...@osdev.org> wrote:
> >>
> >> Why does your tag have a body? <s:include
> value="IncludedMenu/menu.jsp"/>
> >>
> >> Do the other pages contain the same taglib directives? If you view the
> >> source in your web browser and see the tag code that means you are
> >> missing a taglib directive.
> >>
> >> Your include is using a relative page, are all the pages at the same
> depth?
> >>
> >> -Chase
> >>
> >> On Sat, Jul 19, 2008 at 4:22 AM, aum strut <au...@gmail.com>
> wrote:
> >> > Hi all,
> >> >
> >> > i am trying to include a jsp page using struts2 <s:include tag> but
> >> > itdosen't seems to be working in my way.
> >> > i have a menu.jsp page where i have written a code for the menu for my
> >> > application.
> >> > i have included this menu.jsp page in my index.jsp page were it is
> >> working
> >> > fine.When i click on any menu option it redirect me to another page
> using
> >> > the action.i tried to use the same <s:include> tage in other pages but
> it
> >> is
> >> > not working where as it is working fine in the index.jsp page. where
> as
> >> if i
> >> > include the code in the other pages instead of including the jap page
> the
> >> > menuy starts appearing fine.
> >> >
> >> >
> >> > <s:include value="IncludedMenu/menu.jsp"></s:include>
> >> >
> >> > i have included the menu.jsp page in index page using this tag and
> >> working
> >> > fine here but when tried to use the same tage in others pageses i
> >> failed.Can
> >> > any one suggest me where i am doing wrong.??
> >> >
> >> > Thanks in advance
> >> >
> >> > -aum
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: not working

Posted by Chase <ch...@osdev.org>.
Are you adjusting the relative URL value in your include statement
based on the folder depth of the containing page or are you just
copying & pasting the same include statement in every single page?

-Chase

On Sun, Jul 20, 2008 at 1:20 AM, aum strut <au...@gmail.com> wrote:
> Hi Chase,
>
> Is there any relation with the depth because when i put index.jsp page and
> HElloWorld.jsp page in the same folder, it starts to include the other jsp
> page which i unable to include when the pages were in different folders.
>
> any suggestion in this regards will be much helpful.
> yes all the pages have same tag lib directive
>
> -Aum
>
>
> On 7/19/08, Chase <ch...@osdev.org> wrote:
>>
>> Why does your tag have a body? <s:include value="IncludedMenu/menu.jsp"/>
>>
>> Do the other pages contain the same taglib directives? If you view the
>> source in your web browser and see the tag code that means you are
>> missing a taglib directive.
>>
>> Your include is using a relative page, are all the pages at the same depth?
>>
>> -Chase
>>
>> On Sat, Jul 19, 2008 at 4:22 AM, aum strut <au...@gmail.com> wrote:
>> > Hi all,
>> >
>> > i am trying to include a jsp page using struts2 <s:include tag> but
>> > itdosen't seems to be working in my way.
>> > i have a menu.jsp page where i have written a code for the menu for my
>> > application.
>> > i have included this menu.jsp page in my index.jsp page were it is
>> working
>> > fine.When i click on any menu option it redirect me to another page using
>> > the action.i tried to use the same <s:include> tage in other pages but it
>> is
>> > not working where as it is working fine in the index.jsp page. where as
>> if i
>> > include the code in the other pages instead of including the jap page the
>> > menuy starts appearing fine.
>> >
>> >
>> > <s:include value="IncludedMenu/menu.jsp"></s:include>
>> >
>> > i have included the menu.jsp page in index page using this tag and
>> working
>> > fine here but when tried to use the same tage in others pageses i
>> failed.Can
>> > any one suggest me where i am doing wrong.??
>> >
>> > Thanks in advance
>> >
>> > -aum
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: not working

Posted by aum strut <au...@gmail.com>.
Hi Chase,

Is there any relation with the depth because when i put index.jsp page and
HElloWorld.jsp page in the same folder, it starts to include the other jsp
page which i unable to include when the pages were in different folders.

any suggestion in this regards will be much helpful.
yes all the pages have same tag lib directive

-Aum


On 7/19/08, Chase <ch...@osdev.org> wrote:
>
> Why does your tag have a body? <s:include value="IncludedMenu/menu.jsp"/>
>
> Do the other pages contain the same taglib directives? If you view the
> source in your web browser and see the tag code that means you are
> missing a taglib directive.
>
> Your include is using a relative page, are all the pages at the same depth?
>
> -Chase
>
> On Sat, Jul 19, 2008 at 4:22 AM, aum strut <au...@gmail.com> wrote:
> > Hi all,
> >
> > i am trying to include a jsp page using struts2 <s:include tag> but
> > itdosen't seems to be working in my way.
> > i have a menu.jsp page where i have written a code for the menu for my
> > application.
> > i have included this menu.jsp page in my index.jsp page were it is
> working
> > fine.When i click on any menu option it redirect me to another page using
> > the action.i tried to use the same <s:include> tage in other pages but it
> is
> > not working where as it is working fine in the index.jsp page. where as
> if i
> > include the code in the other pages instead of including the jap page the
> > menuy starts appearing fine.
> >
> >
> > <s:include value="IncludedMenu/menu.jsp"></s:include>
> >
> > i have included the menu.jsp page in index page using this tag and
> working
> > fine here but when tried to use the same tage in others pageses i
> failed.Can
> > any one suggest me where i am doing wrong.??
> >
> > Thanks in advance
> >
> > -aum
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: not working

Posted by Chase <ch...@osdev.org>.
Why does your tag have a body? <s:include value="IncludedMenu/menu.jsp"/>

Do the other pages contain the same taglib directives? If you view the
source in your web browser and see the tag code that means you are
missing a taglib directive.

Your include is using a relative page, are all the pages at the same depth?

-Chase

On Sat, Jul 19, 2008 at 4:22 AM, aum strut <au...@gmail.com> wrote:
> Hi all,
>
> i am trying to include a jsp page using struts2 <s:include tag> but
> itdosen't seems to be working in my way.
> i have a menu.jsp page where i have written a code for the menu for my
> application.
> i have included this menu.jsp page in my index.jsp page were it is working
> fine.When i click on any menu option it redirect me to another page using
> the action.i tried to use the same <s:include> tage in other pages but it is
> not working where as it is working fine in the index.jsp page. where as if i
> include the code in the other pages instead of including the jap page the
> menuy starts appearing fine.
>
>
> <s:include value="IncludedMenu/menu.jsp"></s:include>
>
> i have included the menu.jsp page in index page using this tag and working
> fine here but when tried to use the same tage in others pageses i failed.Can
> any one suggest me where i am doing wrong.??
>
> Thanks in advance
>
> -aum
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org