|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action mx.com.brained.actions.ResourceAction
public class ResourceAction
Title: AwTaglib
Description: Special action that handles reading and loading of special resources (usually js or png files) located in the classpath. It requires two parameters for it to work properly:
Copyright: Copyright (c) 2005
Company: Brain-ED
Field Summary |
---|
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
ResourceAction()
|
Method Summary | |
---|---|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The main method that will be executed to send through the ServletOutputStream the contents of the file |
void |
setResource(ResourceManagerIface resource)
Method to set the proper Resource Manager (the class that itself loads the required files) |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceAction()
Method Detail |
---|
public org.apache.struts.action.ActionForward execute(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.Exception
execute
in class org.apache.struts.action.Action
mapping
- ActionMappingform
- ActionFormrequest
- HttpServletRequestresponse
- HttpServletResponse
java.lang.Exception
- if any error occurs (usually a file not found on classpath)public void setResource(ResourceManagerIface resource)
resource
- ResourceManagerIface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |