View Javadoc

1   package de.tivsource.page.admin.actions.others.gallery;
2   
3   import org.apache.logging.log4j.LogManager;
4   import org.apache.logging.log4j.Logger;
5   import org.apache.struts2.convention.annotation.Action;
6   import org.apache.struts2.convention.annotation.Actions;
7   import org.apache.struts2.convention.annotation.Result;
8   import org.apache.struts2.tiles.annotation.TilesDefinition;
9   import org.apache.struts2.tiles.annotation.TilesDefinitions;
10  import org.apache.struts2.tiles.annotation.TilesPutAttribute;
11  
12  import de.tivsource.page.admin.actions.EmptyAction;
13  
14  /**
15   * 
16   * @author Marc Michele
17   *
18   */
19  @TilesDefinitions({
20    @TilesDefinition(name="galleryGrid", extend = "adminTemplate", putAttributes = {
21      @TilesPutAttribute(name = "meta",       value = "/WEB-INF/tiles/active/meta/default_jquery.jsp"),
22      @TilesPutAttribute(name = "navigation", value = "/WEB-INF/tiles/active/navigation/others.jsp"),
23      @TilesPutAttribute(name = "content",    value = "/WEB-INF/tiles/active/view/gallery/list.jsp")
24    })
25  })
26  public class IndexAction extends EmptyAction {
27  
28  	/**
29  	 * Serial Version UID.
30  	 */
31  	private static final long serialVersionUID = -3178996543889256154L;
32  
33  	/**
34  	 * Statischer Logger der Klasse.
35  	 */
36      private static final Logger LOGGER = LogManager.getLogger(IndexAction.class);
37  
38  	@Override
39      @Actions({
40          @Action(
41          		value = "index", 
42          		results = { @Result(name = "success", type="tiles", location = "galleryGrid") }
43          )
44      })
45      public String execute() throws Exception {
46      	LOGGER.info("execute() aufgerufen.");
47      	return SUCCESS;
48      }// Ende execute()
49  
50  }// Ende class