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

Quick Search    Search Deep

com.RuntimeCollective.questionnaire.action
Class AddQuestionnaireLinkAction  view AddQuestionnaireLinkAction download AddQuestionnaireLinkAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.RuntimeCollective.questionnaire.action.AddQuestionnaireLinkAction

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

Implementation of Action that adds a QuestionnaireLink to the current CSL. It is passed the id of the Link.

Version:
$Id: AddQuestionnaireLinkAction.java,v 1.8 2003/09/30 15:12:53 joe Exp $

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
AddQuestionnaireLinkAction()
           
 
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 Questionnaire 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

AddQuestionnaireLinkAction

public AddQuestionnaireLinkAction()
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 Questionnaire 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