Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.sitemap.action
Class AddInternalLinkAction  view AddInternalLinkAction download AddInternalLinkAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.RuntimeCollective.sitemap.action.AddInternalLinkAction

public final class AddInternalLinkAction
extends org.apache.struts.action.Action

Implementation of Action that adds an Internal Link to the current CSL. It is passed the id of the Link.

Version:
$Id: AddInternalLinkAction.java,v 1.9 2003/10/13 11:30:59 miles Exp $

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
AddInternalLinkAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds an Internal Link to the current CSL.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, 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

AddInternalLinkAction

public AddInternalLinkAction()
Method Detail

perform

public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.io.IOException,
                                                      javax.servlet.ServletException
Adds an Internal Link to the current CSL. It is passed the id of the Link.

The following Forwards are returned:
failure - local forward to go to if there was a problem editing
cancel - local forward to go to if the edition was cancelled.
custom success - determined using the edit_filename of the template of this CSL
chooseTemplate - local forward used if we need to set up a template before editing the content

The following error messages are returned:
error.db.connection - if there was a problem connecting to the database