The log indicate that your .login definition is called by a way or another. It is hard to say why without knowledge of the workflow of your application. Is your /greeting action called when you hit a page issuing the log ?
Cedric
Rick Smith wrote:
Have you tried to remove the associated controller from your logindefinition ?
When I remove the controller from the .login definition everything works as expected. Also if I move the controller from the .login definition to a different tiles definition, the controller is not called multiple times.
Where do you get or insert your login definition ?
The .login definiton is retrieved via an ActionForward, I don't explicitly 'get' or 'insert' it from within a JSP.
<action="/greetings" forward=".login"/>
Rick
The attached file shows the template JSP used in the tiles .baseLayouta
definition that all other definitions extend; it also includes a sample of
'content' tile that gets substituted for each definition.bar, a context menu, a content
I control the navigation to the various pages by using tiles definitions as ActionForwards.
I hope that the above is acceptable tiles practice.
Rick
------------------------------------------------------------------------
------------------------- My BaseLayout.jsp --------------------
<%--
/**
This is a page layout that provides for a header area, a navigational
area and a footer area.summary="Page Content">
* Does NOT open the BODY tag. * This allows header tiles to set body-tag attributes. * Does close the BODY tag.
* Exports attributes to request so that they can be used by any sub-tile.
* Expects "app.title" to be defined in the application resources * as name of the application. *
*/ --%> <%@ page language="java" %> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> <%@ taglib uri="/tags/tiles" prefix="tiles" %>
<tiles:importAttribute scope="request"/>
<html:html>
<tiles:get name="header" />
<tiles:get name="banner" />
<tiles:get name="navigationBar" />
<table border="0" cellpadding="0" cellspacing="2" width="740"
<tr>summary="Secondary Navigation">
<td valign="top" width="155" ><br>
<logic:present name="contextMenu">
<table border="0" cellpadding="0" cellspacing="0" width="155"
key="images.commonURL"/>/spacer.gif" height="1" width="3" alt=" "></td><tiles:get name="contextMenu" /> </table> </logic:present> </td>
<td valign="top" width="3"><img src="<bean:message
<td valign="top" bgcolor="#cdcdcd" width="1"><img src="<bean:messagekey="images.commonURL"/>/spacer.gif" height="1" width="1" alt=" "></td>
<td valign="top" width="5"><img src=""<bean:messagekey="images.commonURL"/>/spacer.gif" height="1" width="5" alt=" "></td>
<td valign="top" width="530"><tiles:get name="content" /> </td>key="images.commonURL"/>/spacer.gif" height="1" width="7" alt=" "></td>
<td valign="top" width="7"><img src=""<bean:message
<td valign="top" bgcolor="#cdcdcd" width="1"><img src="<bean:messagekey="images.commonURL"/>/spacer.gif" height="1" width="1" alt=" "></td>
<td valign="top" width="7"><img src=""<bean:messagekey="images.commonURL"/>/spacer.gif" height="1" width="7" alt=" "></td>
tile ---------------- VVVVVVVVVVVVVVVVVVVV</tr> </table>
<tiles:get name="footer" /> </body>
</html:html>
VVVVVVVVVVVVVVVVVV ------------------- a sample content
summary="Page Content"><%-- /** This renders the content of the welcome text for Type1 users */ --%> <%@ page language="java" import="util.Constants"%> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<table border="0" cellpadding="0" cellspacing="2" width="740"
<tr>key="images.commonURL"/>/main_title_company.gif" width="367" height="21"
<td valign="top" class="contenttext">
<p>
<img src="<bean:message
border="0" alt="My System"><br>
<br>property="firstName"/></b>,
<logic:present name="<%=Constants.USER %>">
<b>Wecolme <bean:write name="<%=Constants.USER %>"
</logic:present> <logic:notPresent name="<%=Constants.USER %>"> <b>Welcome Type 1 user</b>,</p> </logic:notPresent> <p><bean:message key="welcome.type1user"/><br> </p> </td> </tr> </table>
------------------------------------------------------------------------
--------------------------------------------------------------------- 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]