You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fea jabi <zy...@hotmail.com> on 2006/11/14 02:54:36 UTC
jsp page/actions design question
Using struts. Have a JSP cust.jsp
In it half of it is very specific to that page only. other half is shown in
this cust.jsp and another report.jsp too.
want to implement this so that code can be re-used in the other one too.
The way I have designed is for a jsp have a prepare action and dispatch
action.
But not sure how to design this page so that I can re-use the code in
another too.
any suggesions are appreciated.
Thanks.
_________________________________________________________________
Get today's hot entertainment gossip
http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: jsp page/actions design question
Posted by Lixin Chu <li...@gmail.com>.
you can use <%@ include file="..." %> to include the common JSP.
On 11/14/06, fea jabi <zy...@hotmail.com> wrote:
>
> Using struts. Have a JSP cust.jsp
>
> In it half of it is very specific to that page only. other half is shown
> in
> this cust.jsp and another report.jsp too.
>
> want to implement this so that code can be re-used in the other one too.
>
> The way I have designed is for a jsp have a prepare action and dispatch
> action.
>
>
> But not sure how to design this page so that I can re-use the code in
> another too.
>
> any suggesions are appreciated.
>
> Thanks.
>
> _________________________________________________________________
> Get today's hot entertainment gossip
> http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: jsp page/actions design question
Posted by Chris Pratt <th...@gmail.com>.
I'd look at either JSP Include or Tiles.
(*Chris*)
On 11/13/06, fea jabi <zy...@hotmail.com> wrote:
>
> Using struts. Have a JSP cust.jsp
>
> In it half of it is very specific to that page only. other half is shown
> in
> this cust.jsp and another report.jsp too.
>
> want to implement this so that code can be re-used in the other one too.
>
> The way I have designed is for a jsp have a prepare action and dispatch
> action.
>
>
> But not sure how to design this page so that I can re-use the code in
> another too.
>
> any suggesions are appreciated.
>
> Thanks.
>
> _________________________________________________________________
> Get today's hot entertainment gossip
> http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>