Package org.intermine.web.struts
Class TemplateController
- java.lang.Object
-
- org.apache.struts.action.Action
-
- org.apache.struts.tiles.actions.TilesAction
-
- org.intermine.web.struts.TemplateController
-
public class TemplateController extends org.apache.struts.tiles.actions.TilesActionController for the template tile. This tile can be used for real template input or to preview a TemplateQuery that is in construction. The preview case involves the page controller or action putting the TemplateQuery in the request attribute "previewTemplate". The jsp can also render differently based on the presence of the "previewTemplate" attribute.- Author:
- Mark Woodbridge, Thomas Riley, Richard Smith
-
-
Constructor Summary
Constructors Constructor Description TemplateController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.struts.action.ActionForwardexecute(org.apache.struts.tiles.ComponentContext context, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Finds the correct template to display in the following ways: First, looks for a "name" request parameter and uses that for a the lookup.-
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
-
-
-
Method Detail
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.tiles.ComponentContext context, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.ExceptionFinds the correct template to display in the following ways:- First, looks for a "name" request parameter and uses that for a the lookup.
- If "name" parameter doesn't exist, looks for TemplateQuery in request attribute "previewTemplate".
- Overrides:
executein classorg.apache.struts.tiles.actions.TilesAction- Throws:
java.lang.Exception
-
-