You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yaragalla Muralidhar <ya...@gmail.com> on 2013/09/19 17:23:55 UTC

how to use single jsp as template

hi I have a jsp with a layout. it means the jsp has menu on the left and
header on the top. now for every action the center part of the jsp should
change. Is this possible?

I mean for every different action a different jsp should be included in the
center of the layout jsp. If this is possible it will be of so much help.
kindly help? if possible is there a solution without tiles?



*Thanks and Regards,*
Muralidhar Yaragalla.
*
*

Re: how to use single jsp as template

Posted by Chris Pratt <th...@gmail.com>.
Angular makes web service requests to rest services to get its data, so
there are no struts tags or attach points to deal with, but you pretty much
develop the whole app as a single page that makes rest calls for data.
  (*Chris*)


On Thu, Sep 19, 2013 at 6:09 PM, Martin Gainty <mg...@hotmail.com> wrote:

> Chris-
>
>
> I remember with dojo.js you needed to identify DOM attach points for
> Struts Action to populate the DOM at the  specified attach points within
> the dojo.js
>
> Does Angular.js have DOM Attach points?
> Are there additional considerations substituting Angular.js for JS
> Libraries (like Dojo or JQuery) ?
>
> thanks,
> Martin-
>
>
>
>
> > From: thechrispratt@gmail.com
> > Date: Thu, 19 Sep 2013 08:37:04 -0700
> > Subject: Re: how to use single jsp as template
> > To: user@struts.apache.org
> >
> > Apache Tiles sounds like exactly what you're looking for, and works great
> > with Struts2. You could also consider a single page app (i.e. AngularJS)
> > approach.
> > (*Chris*)
> >
> >
> > On Thu, Sep 19, 2013 at 8:23 AM, Yaragalla Muralidhar <
> > yaragallamurali@gmail.com> wrote:
> >
> > > hi I have a jsp with a layout. it means the jsp has menu on the left
> and
> > > header on the top. now for every action the center part of the jsp
> should
> > > change. Is this possible?
> > >
> > > I mean for every different action a different jsp should be included
> in the
> > > center of the layout jsp. If this is possible it will be of so much
> help.
> > > kindly help? if possible is there a solution without tiles?
> > >
> > >
> > >
> > > *Thanks and Regards,*
> > > Muralidhar Yaragalla.
> > > *
> > > *
> > >
>
>

RE: how to use single jsp as template

Posted by Martin Gainty <mg...@hotmail.com>.
Chris-


I remember with dojo.js you needed to identify DOM attach points for Struts Action to populate the DOM at the  specified attach points within the dojo.js

Does Angular.js have DOM Attach points?
Are there additional considerations substituting Angular.js for JS Libraries (like Dojo or JQuery) ?

thanks,
Martin-
  



> From: thechrispratt@gmail.com
> Date: Thu, 19 Sep 2013 08:37:04 -0700
> Subject: Re: how to use single jsp as template
> To: user@struts.apache.org
> 
> Apache Tiles sounds like exactly what you're looking for, and works great
> with Struts2. You could also consider a single page app (i.e. AngularJS)
> approach.
> (*Chris*)
> 
> 
> On Thu, Sep 19, 2013 at 8:23 AM, Yaragalla Muralidhar <
> yaragallamurali@gmail.com> wrote:
> 
> > hi I have a jsp with a layout. it means the jsp has menu on the left and
> > header on the top. now for every action the center part of the jsp should
> > change. Is this possible?
> >
> > I mean for every different action a different jsp should be included in the
> > center of the layout jsp. If this is possible it will be of so much help.
> > kindly help? if possible is there a solution without tiles?
> >
> >
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> > *
> > *
> >
 		 	   		  

Re: how to use single jsp as template

Posted by Yaragalla Muralidhar <ya...@gmail.com>.
ok will try. Thank you.

*Thanks and Regards,*
Muralidhar Yaragalla.
*
*


On Thu, Sep 19, 2013 at 9:07 PM, Chris Pratt <th...@gmail.com>wrote:

> Apache Tiles sounds like exactly what you're looking for, and works great
> with Struts2.  You could also consider a single page app (i.e. AngularJS)
> approach.
>   (*Chris*)
>
>
> On Thu, Sep 19, 2013 at 8:23 AM, Yaragalla Muralidhar <
> yaragallamurali@gmail.com> wrote:
>
> > hi I have a jsp with a layout. it means the jsp has menu on the left and
> > header on the top. now for every action the center part of the jsp should
> > change. Is this possible?
> >
> > I mean for every different action a different jsp should be included in
> the
> > center of the layout jsp. If this is possible it will be of so much help.
> > kindly help? if possible is there a solution without tiles?
> >
> >
> >
> > *Thanks and Regards,*
> > Muralidhar Yaragalla.
> > *
> > *
> >
>

Re: how to use single jsp as template

Posted by Chris Pratt <th...@gmail.com>.
Apache Tiles sounds like exactly what you're looking for, and works great
with Struts2.  You could also consider a single page app (i.e. AngularJS)
approach.
  (*Chris*)


On Thu, Sep 19, 2013 at 8:23 AM, Yaragalla Muralidhar <
yaragallamurali@gmail.com> wrote:

> hi I have a jsp with a layout. it means the jsp has menu on the left and
> header on the top. now for every action the center part of the jsp should
> change. Is this possible?
>
> I mean for every different action a different jsp should be included in the
> center of the layout jsp. If this is possible it will be of so much help.
> kindly help? if possible is there a solution without tiles?
>
>
>
> *Thanks and Regards,*
> Muralidhar Yaragalla.
> *
> *
>