openfuture.bugbase.actions
Class NewBugReportAction
java.lang.Object
|
+--org.apache.struts.action.Action
|
+--openfuture.bugbase.actions.BugBaseAction
|
+--openfuture.bugbase.actions.NewBugReportAction
- All Implemented Interfaces:
- JspConstants
- public class NewBugReportAction
- extends BugBaseAction
- implements JspConstants
Action bean handling new bug report generation.
Created: Fri Jan 12 11:27:27 2001
- Version:
- $Revision: 1.9 $
- Author:
- Wolfgang Reissenberger
Fields inherited from class org.apache.struts.action.Action |
DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGES_KEY, MULTIPART_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
Fields inherited from interface openfuture.bugbase.model.JspConstants |
ATTACHMENT_DIR, ATTACHMENT_URL, BUG_REPORT, BUGBASE_SERVLET, LOCALES, LOGIN_MANAGER, MAILSERVER, MD_PROVIDER, NEXT_PAGE, PACKAGES, PROJECT, QUERY, QUERYSTRING, REPORTS, RESULT, SENDMAIL, SERVLET_CLIENT, SERVLETPATH, USER, USER_ID |
Method Summary |
static java.lang.String |
makeRFC2396conform(java.lang.String name)
Make a String RFC2396 conform, i.e. remove all characters that
are both non alphanumeric and no mark characters:
"-" | "_" | "." |
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)
Upload new bug reports into Bug Base. |
Methods inherited from class openfuture.bugbase.actions.BugBaseAction |
checkLogin, findNextPage, getClient, getLoginManager, getMasterDataProvider, getProject, getQueryString, getServletPath, getUser, initialize, saveOriginalRequest, setProject, setUser |
Methods inherited from class org.apache.struts.action.Action |
generateToken, getLocale, getResources, getServlet, isCancelled, isTokenValid, perform, perform, perform, resetToken, saveErrors, saveToken, setLocale, setServlet, toHex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewBugReportAction
public NewBugReportAction()
- Creates a new
NewBugReportAction
instance.
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
- Upload new bug reports into Bug Base.
- Overrides:
perform
in class org.apache.struts.action.Action
- Parameters:
mapping
- The ActionMapping used to select this instanceform
- the form beanrequest
- The HTTP request we are processingresponse
- The HTTP response we are creating- Returns:
- The following forwards are generated:
- success: The bug report could be delivered
successfully.
- continue: URL where the "continue" link points
to when the transaction succeeded.
- error: the bug report delivery failed.
- Throws:
java.io.IOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet exception occurs
makeRFC2396conform
public static java.lang.String makeRFC2396conform(java.lang.String name)
- Make a String RFC2396 conform, i.e. remove all characters that
are both non alphanumeric and no mark characters:
"-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
.
- Parameters:
name
- a String
value- Returns:
- a
String
value
Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.