org.fhw.cabaweb.webfrontend.actions
Class LocaleAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byorg.fhw.cabaweb.webfrontend.actions.LocaleAction

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

Action-Klasse für die Locale Action . Wechseln der Sprache (locale) anhand eines Sprachkürzels. Die Controller Klasse der Struts Model View Controller Architektur. Im Bezug auf Umleitung auf den Referrer anstatt auf die Indexseite geändert. Basiert auf Source von David Wintefeldt (Struts Tutorial Application) ORIGINAL LICENSE The Apache Software License, Version 1.1 Copyright (c) 1999 The Apache Software Foundation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The end-user documentation included with the redistribution, if any, must include the following acknowlegement: "This product includes software developed by the Apache Software Foundation (http://www.apache.org/)." Alternately, this acknowlegement may appear in the software itself, if and wherever such third-party acknowlegements normally appear. 4. The names "The Jakarta Project", "Struts", and "Apache Software Foundation" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact apache@apache.org. 5. Products derived from this software may not be called "Apache" nor may "Apache" appear in their names without prior written permission of the Apache Group. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ==================================================================== This software consists of voluntary contributions made by many individuals on behalf of the Apache Software Foundation. For more information on the Apache Software Foundation, please see .

Version:
1999 - Changes 02.06.2004
Author:
Jon Howell and Thomas Vogt

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
LocaleAction()
           
 
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)
          Verarbeiten der spezifizierten HTTP Anfrage und erzeugen der zugeordneten HTTP Antwort bzw.
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleAction

public LocaleAction()
Method Detail

execute

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 Exception
Verarbeiten der spezifizierten HTTP Anfrage und erzeugen der zugeordneten HTTP Antwort bzw. Forwarden an eine andere Web Komponente, die die Antwort erzeugt. Gibt eine ActionForward Instanz zurück die angibt wohin und wie die Kontrolle weitergegeben werden soll. Kann auch null sein, wenn die Anfrage bereits bearbeitet wurde.

Parameters:
response - The HTTP Antwort die wir erzeugen
form - Das optionale ActionForm Bean für die Anfrage (soweit vorhanden)
mapping - Das ActionMapping das benutzt wurde um diese Instanz zu selektieren
request - Die HTTP Anfrage die wir gerade bearbeiten
Returns:
Die Action zu der wir weiterleiten
Throws:
Exception - wenn ein Eingabe-/Ausgabe Fehler auftritt oder eine Servlet Exception auftritt bzw. die Business Logik einen Fehler verursacht


Copyright © 2004 TVC-Software.com. All Rights Reserved.