I am new to Struts and Tiles and am trying to make it work. I have written a
simple web site that uses the html:link forward=some forward name ... and
this works well. The some forward name is currently defined in the
global forwards section of the struts-config.xml I have looked at the
Your forward path can be a Tiles Def in the struts-config. You don't want to
ever link directly to a Def (or JSP) so it sounds like you are fine. Need
more detail otherwise.
-Original Message-
From: Davidson, Glenn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:22 PM
To:
Thanks for the quick response!
Lets say I have a menu item that I want to use to call another jsp page.
This new jsp page is defined as a new tile.
More detail:
Lets say I have a welcome page (which is defined in tiles-defs.xml). In the
header.jsp I look to see if the user is logged in. If
Like I said. Don't link to any JSPs from a JSP. So you need to look into
things a little more or you will have problems in the long run. If you
really don't need to do any type of preparation for the display of a JSP
(i.e. nothing put in the request,session,etc. for the JSP to pull out) then
Shane,
You have been most helpful and correct. Please bear with me for one more
moment. When I do my links I link to a forward and not directly to a JSP. I
agree that the best way to handle the is logged in question is by sub
classing the ActionServlet (Ted Husted's Book has a nice example of
Believe me there are many ways to do it and I am not the best but I like to
treat any JSP defined in the tiles def xml and any JSPs that are like
templates as in classic_layout.jsp which assembles all of the other JSPs as
the equivalent of an abstract class and I don't forward to any of those. I
6 matches
Mail list logo