public class GetStaticResourceAction extends TVCAction
What we do here is to append the tvc version to the URL. Example:
Calling the method getURL(HttpServletRequest, String) with value of
the last argument as "/tvc/core/tvcCommonScript.js" would return an URL like
below:
When calling this action, we will resolve the path above to the JavaScript /tvc/core/scripts/tvcCommonScript.js
Following response headers are set:
ServletContext.getMimeType(String)
| Modifier and Type | Field and Description |
|---|---|
static int |
EXPIRE_YEAR |
CLIENT_TASK_ERROR, CLIENT_TASK_ERROR_KEY, CLIENT_TASK_NOTICE_KEY, CLIENT_TASK_WARNING_KEY, GLOBAL_ERROR_KEY, INFORMATION_ERROR| Constructor and Description |
|---|
GetStaticResourceAction() |
| Modifier and Type | Method and Description |
|---|---|
com.technia.tvc.struts.action.ActionForward |
executeImpl(com.technia.tvc.struts.action.ActionMapping mapping,
com.technia.tvc.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
This method MUST be overridden by subclasses to handle the logic.
|
static java.lang.String |
getURL(javax.servlet.http.HttpServletRequest request,
java.lang.String resource) |
addError, addError, addErrors, addGlobalError, addGlobalError, addInformationError, asActionError, asActionErrors, copy, debugRequest, execute, findErrorForward, findForwardOrTargetPage, perform, perform, saveError, saveError, saveGlobalError, saveGlobalError, saveInformationError, setLocaleaddErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setServletpublic static java.lang.String getURL(javax.servlet.http.HttpServletRequest request,
java.lang.String resource)
public com.technia.tvc.struts.action.ActionForward executeImpl(com.technia.tvc.struts.action.ActionMapping mapping,
com.technia.tvc.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.lang.Exception
TVCActionexecuteImpl in class TVCActionjava.lang.ExceptionCopyright ? Technia AB. All Rights Reserved.