tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gamble, Wesley (WG10)" <W...@tmw.com>
Subject Struts 2 annotations and Tiles 2
Date Mon, 19 May 2008 22:37:27 GMT
Can I use the Struts 2 annotation - style of specifying action results
to set a tile name as the target for a Struts action?


Here's my action:


@Result(name = "success", value="startApplication")


public class ApplicationStartAction {     

      private String pageTitle;

      private String companyName;


      public String execute() throws Exception {

            pageTitle = "Start Job Application";

            companyName = "Men's Wearhouse";          

            return "success";



...getters and setters here..



Here's my tiles.xml file:


<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD
Tiles Configuration 2.0//EN"




  <definition name="baseLayout" template="/layouts/base.jsp">

      <put-attribute name="head" value="/tiles/head.jsp"/>

      <put-attribute name="body" value="/tiles/body.jsp"/>



  <definition name="startApplication" extends="baseLayout">




When I attempt to execute the ApplicationStartAction, I get the error:
The requested resource (/ApplicantTracking/startApplication) is not

which I assume to mean that the action result mapping to the tile
definition is not working.





  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message