com.xpn.xwiki.web
Class ViewEditAction
java.lang.Object
org.apache.struts.action.Action
com.xpn.xwiki.web.XWikiAction
com.xpn.xwiki.web.ViewEditAction
- public class ViewEditAction
- extends XWikiAction
A simple action that handles the display and editing of an
wiki page..
The action support an action URL. The action in the URL
controls what this action class does. The following values are supported:
- view - view the Wiki Document
- edit - edit the Wiki Document
- preview - preview the Wiki Document
- save - save the Wiki Document
Fields inherited from class org.apache.struts.action.Action |
defaultLocale, servlet |
Method Summary |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Handle server requests. |
void |
renderXMLRPC(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
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 |
log
private static final org.apache.commons.logging.Log log
UPLOAD_DEFAULT_MAXSIZE
private static final long UPLOAD_DEFAULT_MAXSIZE
- See Also:
- Constant Field Values
UPLOAD_DEFAULT_SIZETHRESHOLD
private static final long UPLOAD_DEFAULT_SIZETHRESHOLD
- See Also:
- Constant Field Values
ViewEditAction
public ViewEditAction()
throws java.lang.Exception
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.lang.Exception,
javax.servlet.ServletException
- Handle server requests.
- Parameters:
mapping
- The ActionMapping used to select this instanceform
- The optional ActionForm bean for this request (if any)req
- The HTTP request we are processingresp
- The HTTP response we are creating
- Throws:
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a servlet exception occurs
java.lang.Exception
renderXMLRPC
public void renderXMLRPC(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Copyright 2003 Ludovic Dubost