RE: How to reduce jsp files by using Tiles?

2005-03-02 Thread Fogleson, Allen
I would do this... assuming I have no form needed for the page I would
just use Struts Forward action class. 

Assuming the tile def is ".mynewBody"



then do 



Al


-Original Message-
From: Daniel PC Leung [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 9:13 PM
To: Struts Users Mailing List
Subject: Re: How to reduce jsp files by using Tiles?

Thank you, Allen.
I have tried your advice.
But I do not know how write that entry in struts-config.xml if change
it to 
because I do not have a form to associate the link


On Wed, 2 Mar 2005 22:06:14 -0500, Fogleson, Allen
<[EMAIL PROTECTED]> wrote:
> But why would you do an html:link to a jsp?
> 
> Link to an action. (even if it is just a ForwardAction) and then
forward
> to the definition now you only need to write the layout.jsp that can
be
> "standardized" across the site, and put different bodies and such in
it
> as needed.
> 
> Al
> 
> -Original Message-
> From: Daniel PC Leung [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 02, 2005 7:29 PM
> To: Struts Users Mailing List
> Subject: Re: How to reduce jsp files by using Tiles?
> 
> Yes, I am using tiles-def.xml
> If mylayout.jsp is defined in tiles-def.xml,
> do I have to write a mylayout.jsp?
> 
> If yes, then I have to write 2 jsp files
> for each change of body layout.
> 
>   
>   
>   
>   
> 
> Can I write only 1 jsp file for each change
> of body layout?
> 
> On Wed, 2 Mar 2005 18:21:44 -0500, Fogleson, Allen
> <[EMAIL PROTECTED]> wrote:
> > Eric is correct. If you use the tiles-def.xml file you can get rid
of
> a
> > lot of duplication. In this case you could do exactly what you want
by
> > creating definitions in the xml that extend the original and only
> change
> > the body portion.
> >
> > 
> >  
> >  
> >  
> >  
> > 
> >
> > 
> >  
> > 
> >
> > To me it is a lot easier to use the tiles-def.xml than it is to use
> the
> > tiles taglib to do the "grunt" work. And I have one place to go to
> edit
> > things if I later decide I want a new footer, or header in my child
I
> go
> > to the tiles-def.xml regardless of where the page is. (I don't have
to
> > have several JSP's with tiles inserts in them that I have to go and
> > edit.)
> >
> > Al
> >
> >
> > -Original Message-
> > From: Eric Lemle [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 02, 2005 4:29 PM
> > To: user@struts.apache.org
> > Subject: Re: How to reduce jsp files by using Tiles?
> >
> > I think if you use the tiles-defs.xml  configuration properly you
can
> > eliminate lots of files.
> > But I don't use that file yet.
> > -Eric
> >
> > >>> [EMAIL PROTECTED] 3/2/2005 12:53:59 PM >>>
> > I do not think it's possible... I hope someone can
> > prove me wrong.
> >
> > --- Daniel PC Leung <[EMAIL PROTECTED]> wrote:
> >
> > > I have a standand Tiles layout.
> > > ie. it has header, Left, Body and footer.
> > > In one of the body, I have this.
> > >
> > > 
> > > 
> > >  > > key="securityMaint.userAccountMaint"/>
> > > 
> > > 
> > >
> > > Whenever it is clicked, only the body portion is
> > > changed.
> > > I have to use 2 jsp files to make it happen,
> > >
> > > UserAccountMaint.jsp:
> > >  > > flush="true" >
> > >> > value="/UserAccountMaintBody.jsp" />
> > > 
> > >
> > > Can I use only 1 jsp file so that only the body
> > > portion is changed?
> > >
> > > Thanks
> > >
> > >
> >
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> > __
> > Celebrate Yahoo!'s 10th Birthday!
> > Yahoo! Netrospective: 100 Moments of the Web
> > http://birthday.yahoo.com/netrospective/
> >
> >
-
> > 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]
> 
> -
> 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]



Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
Thank you, Allen.
I have tried your advice.
But I do not know how write that entry in struts-config.xml if change
it to 
because I do not have a form to associate the link


On Wed, 2 Mar 2005 22:06:14 -0500, Fogleson, Allen
<[EMAIL PROTECTED]> wrote:
> But why would you do an html:link to a jsp?
> 
> Link to an action. (even if it is just a ForwardAction) and then forward
> to the definition now you only need to write the layout.jsp that can be
> "standardized" across the site, and put different bodies and such in it
> as needed.
> 
> Al
> 
> -Original Message-
> From: Daniel PC Leung [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 02, 2005 7:29 PM
> To: Struts Users Mailing List
> Subject: Re: How to reduce jsp files by using Tiles?
> 
> Yes, I am using tiles-def.xml
> If mylayout.jsp is defined in tiles-def.xml,
> do I have to write a mylayout.jsp?
> 
> If yes, then I have to write 2 jsp files
> for each change of body layout.
> 
>   
>   
>   
>   
> 
> Can I write only 1 jsp file for each change
> of body layout?
> 
> On Wed, 2 Mar 2005 18:21:44 -0500, Fogleson, Allen
> <[EMAIL PROTECTED]> wrote:
> > Eric is correct. If you use the tiles-def.xml file you can get rid of
> a
> > lot of duplication. In this case you could do exactly what you want by
> > creating definitions in the xml that extend the original and only
> change
> > the body portion.
> >
> > 
> >  
> >  
> >  
> >  
> > 
> >
> > 
> >  
> > 
> >
> > To me it is a lot easier to use the tiles-def.xml than it is to use
> the
> > tiles taglib to do the "grunt" work. And I have one place to go to
> edit
> > things if I later decide I want a new footer, or header in my child I
> go
> > to the tiles-def.xml regardless of where the page is. (I don't have to
> > have several JSP's with tiles inserts in them that I have to go and
> > edit.)
> >
> > Al
> >
> >
> > -Original Message-
> > From: Eric Lemle [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 02, 2005 4:29 PM
> > To: user@struts.apache.org
> > Subject: Re: How to reduce jsp files by using Tiles?
> >
> > I think if you use the tiles-defs.xml  configuration properly you can
> > eliminate lots of files.
> > But I don't use that file yet.
> > -Eric
> >
> > >>> [EMAIL PROTECTED] 3/2/2005 12:53:59 PM >>>
> > I do not think it's possible... I hope someone can
> > prove me wrong.
> >
> > --- Daniel PC Leung <[EMAIL PROTECTED]> wrote:
> >
> > > I have a standand Tiles layout.
> > > ie. it has header, Left, Body and footer.
> > > In one of the body, I have this.
> > >
> > > 
> > > 
> > >  > > key="securityMaint.userAccountMaint"/>
> > > 
> > > 
> > >
> > > Whenever it is clicked, only the body portion is
> > > changed.
> > > I have to use 2 jsp files to make it happen,
> > >
> > > UserAccountMaint.jsp:
> > >  > > flush="true" >
> > >> > value="/UserAccountMaintBody.jsp" />
> > > 
> > >
> > > Can I use only 1 jsp file so that only the body
> > > portion is changed?
> > >
> > > Thanks
> > >
> > >
> > -
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> > __
> > Celebrate Yahoo!'s 10th Birthday!
> > Yahoo! Netrospective: 100 Moments of the Web
> > http://birthday.yahoo.com/netrospective/
> >
> > -
> > 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]
> 
> -
> 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]



RE: How to reduce jsp files by using Tiles?

2005-03-02 Thread Fogleson, Allen
But why would you do an html:link to a jsp?

Link to an action. (even if it is just a ForwardAction) and then forward
to the definition now you only need to write the layout.jsp that can be
"standardized" across the site, and put different bodies and such in it
as needed. 

Al

-Original Message-
From: Daniel PC Leung [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 7:29 PM
To: Struts Users Mailing List
Subject: Re: How to reduce jsp files by using Tiles?

Yes, I am using tiles-def.xml
If mylayout.jsp is defined in tiles-def.xml,
do I have to write a mylayout.jsp?

If yes, then I have to write 2 jsp files
for each change of body layout.


   
   
   
   

Can I write only 1 jsp file for each change 
of body layout?


On Wed, 2 Mar 2005 18:21:44 -0500, Fogleson, Allen
<[EMAIL PROTECTED]> wrote:
> Eric is correct. If you use the tiles-def.xml file you can get rid of
a
> lot of duplication. In this case you could do exactly what you want by
> creating definitions in the xml that extend the original and only
change
> the body portion.
> 
> 
>  
>  
>  
>  
> 
> 
> 
>  
> 
> 
> To me it is a lot easier to use the tiles-def.xml than it is to use
the
> tiles taglib to do the "grunt" work. And I have one place to go to
edit
> things if I later decide I want a new footer, or header in my child I
go
> to the tiles-def.xml regardless of where the page is. (I don't have to
> have several JSP's with tiles inserts in them that I have to go and
> edit.)
> 
> Al
> 
> 
> -Original Message-
> From: Eric Lemle [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 02, 2005 4:29 PM
> To: user@struts.apache.org
> Subject: Re: How to reduce jsp files by using Tiles?
> 
> I think if you use the tiles-defs.xml  configuration properly you can
> eliminate lots of files.
> But I don't use that file yet.
> -Eric
> 
> >>> [EMAIL PROTECTED] 3/2/2005 12:53:59 PM >>>
> I do not think it's possible... I hope someone can
> prove me wrong.
> 
> --- Daniel PC Leung <[EMAIL PROTECTED]> wrote:
> 
> > I have a standand Tiles layout.
> > ie. it has header, Left, Body and footer.
> > In one of the body, I have this.
> >
> > 
> > 
> >  > key="securityMaint.userAccountMaint"/>
> > 
> > 
> >
> > Whenever it is clicked, only the body portion is
> > changed.
> > I have to use 2 jsp files to make it happen,
> >
> > UserAccountMaint.jsp:
> >  > flush="true" >
> >> value="/UserAccountMaintBody.jsp" />
> > 
> >
> > Can I use only 1 jsp file so that only the body
> > portion is changed?
> >
> > Thanks
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> 
> __
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> http://birthday.yahoo.com/netrospective/
> 
> -
> 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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
Yes, I am using tiles-def.xml
If mylayout.jsp is defined in tiles-def.xml,
do I have to write a mylayout.jsp?

If yes, then I have to write 2 jsp files
for each change of body layout.


   
   
   
   

Can I write only 1 jsp file for each change 
of body layout?


On Wed, 2 Mar 2005 18:21:44 -0500, Fogleson, Allen
<[EMAIL PROTECTED]> wrote:
> Eric is correct. If you use the tiles-def.xml file you can get rid of a
> lot of duplication. In this case you could do exactly what you want by
> creating definitions in the xml that extend the original and only change
> the body portion.
> 
> 
>  
>  
>  
>  
> 
> 
> 
>  
> 
> 
> To me it is a lot easier to use the tiles-def.xml than it is to use the
> tiles taglib to do the "grunt" work. And I have one place to go to edit
> things if I later decide I want a new footer, or header in my child I go
> to the tiles-def.xml regardless of where the page is. (I don't have to
> have several JSP's with tiles inserts in them that I have to go and
> edit.)
> 
> Al
> 
> 
> -Original Message-
> From: Eric Lemle [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 02, 2005 4:29 PM
> To: user@struts.apache.org
> Subject: Re: How to reduce jsp files by using Tiles?
> 
> I think if you use the tiles-defs.xml  configuration properly you can
> eliminate lots of files.
> But I don't use that file yet.
> -Eric
> 
> >>> [EMAIL PROTECTED] 3/2/2005 12:53:59 PM >>>
> I do not think it's possible... I hope someone can
> prove me wrong.
> 
> --- Daniel PC Leung <[EMAIL PROTECTED]> wrote:
> 
> > I have a standand Tiles layout.
> > ie. it has header, Left, Body and footer.
> > In one of the body, I have this.
> >
> > 
> > 
> >  > key="securityMaint.userAccountMaint"/>
> > 
> > 
> >
> > Whenever it is clicked, only the body portion is
> > changed.
> > I have to use 2 jsp files to make it happen,
> >
> > UserAccountMaint.jsp:
> >  > flush="true" >
> >> value="/UserAccountMaintBody.jsp" />
> > 
> >
> > Can I use only 1 jsp file so that only the body
> > portion is changed?
> >
> > Thanks
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> 
> __
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> http://birthday.yahoo.com/netrospective/
> 
> -
> 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]



RE: How to reduce jsp files by using Tiles?

2005-03-02 Thread Fogleson, Allen
Eric is correct. If you use the tiles-def.xml file you can get rid of a
lot of duplication. In this case you could do exactly what you want by
creating definitions in the xml that extend the original and only change
the body portion.


  
  
  
  



  


To me it is a lot easier to use the tiles-def.xml than it is to use the
tiles taglib to do the "grunt" work. And I have one place to go to edit
things if I later decide I want a new footer, or header in my child I go
to the tiles-def.xml regardless of where the page is. (I don't have to
have several JSP's with tiles inserts in them that I have to go and
edit.)

Al


-Original Message-
From: Eric Lemle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 4:29 PM
To: user@struts.apache.org
Subject: Re: How to reduce jsp files by using Tiles?

I think if you use the tiles-defs.xml  configuration properly you can
eliminate lots of files.
But I don't use that file yet.
-Eric

>>> [EMAIL PROTECTED] 3/2/2005 12:53:59 PM >>>
I do not think it's possible... I hope someone can
prove me wrong.

--- Daniel PC Leung <[EMAIL PROTECTED]> wrote:

> I have a standand Tiles layout. 
> ie. it has header, Left, Body and footer.
> In one of the body, I have this.
> 
> 
> 
>  key="securityMaint.userAccountMaint"/>
> 
>  
> 
> Whenever it is clicked, only the body portion is
> changed.
> I have to use 2 jsp files to make it happen, 
> 
> UserAccountMaint.jsp:
>  flush="true" >
>value="/UserAccountMaintBody.jsp" />
> 
> 
> Can I use only 1 jsp file so that only the body
> portion is changed?
> 
> Thanks
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED] 
> For additional commands, e-mail:
> [EMAIL PROTECTED] 
> 
> 





__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/ 

-
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]



Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Eric Lemle
I think if you use the tiles-defs.xml  configuration properly you can
eliminate lots of files.
But I don't use that file yet.
-Eric

>>> [EMAIL PROTECTED] 3/2/2005 12:53:59 PM >>>
I do not think it's possible... I hope someone can
prove me wrong.

--- Daniel PC Leung <[EMAIL PROTECTED]> wrote:

> I have a standand Tiles layout. 
> ie. it has header, Left, Body and footer.
> In one of the body, I have this.
> 
> 
> 
>  key="securityMaint.userAccountMaint"/>
> 
>  
> 
> Whenever it is clicked, only the body portion is
> changed.
> I have to use 2 jsp files to make it happen, 
> 
> UserAccountMaint.jsp:
>  flush="true" >
>value="/UserAccountMaintBody.jsp" />
> 
> 
> Can I use only 1 jsp file so that only the body
> portion is changed?
> 
> Thanks
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED] 
> For additional commands, e-mail:
> [EMAIL PROTECTED] 
> 
> 





__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/ 

-
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]



Re: How to reduce jsp files by using Tiles?

2005-03-02 Thread Jonathan M Z
I do not think it's possible... I hope someone can
prove me wrong.

--- Daniel PC Leung <[EMAIL PROTECTED]> wrote:

> I have a standand Tiles layout. 
> ie. it has header, Left, Body and footer.
> In one of the body, I have this.
> 
> 
> 
>  key="securityMaint.userAccountMaint"/>
> 
>  
> 
> Whenever it is clicked, only the body portion is
> changed.
> I have to use 2 jsp files to make it happen, 
> 
> UserAccountMaint.jsp:
>  flush="true" >
>value="/UserAccountMaintBody.jsp" />
> 
> 
> Can I use only 1 jsp file so that only the body
> portion is changed?
> 
> Thanks
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 





__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to reduce jsp files by using Tiles?

2005-03-02 Thread Daniel PC Leung
I have a standand Tiles layout. 
ie. it has header, Left, Body and footer.
In one of the body, I have this.





 

Whenever it is clicked, only the body portion is changed.
I have to use 2 jsp files to make it happen, 

UserAccountMaint.jsp:

  


Can I use only 1 jsp file so that only the body portion is changed?

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]