DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21050>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21050 redirect=true Summary: redirect=true Product: Struts Version: 1.0.1 Final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: Custom Tags AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Hi 1) I tried to find a way to keep all error-messages even when i set in the struts-config.xml in the action --> redirect="true". But i guess the error-tag does not support errors when redirect="true" (I tried to put the error into the session, but the error-tag still dont care for the errors) After this I wrote my own error-tag like this: Please comment my tag and advice which benefit or which problem i get after this. 2) I use a special way to determine between 2 different languages. I create for logical page (e.p. index.jsp) different pages for each language like index_en.jsp or index_de.jsp. Behind this i use a form. Now i like to validate="true" inside struts- config.xml but the input parameter doesn not allow multiple input- pages only one. How I can manage this or is there another solution Many thanks. Munot /* * Created on 19.06.2003 * * <!--$Id: ErrorMessages.java,v 1.1 2003/06/19 14:52:11 berger Exp $ --> */ package com.xxx.xxx.control.taglib; import java.util.Vector; /** * @author berger */ public class ErrorMessages { // ----------------------------------------------------- Instance Variables /** * The accumulated set of error message keys. */ private Vector errors = new Vector(); // --------------------------------------------------------- Public Methods /** * Add an error message key to the accumulated set of errors. * * @param key The error message key to be added */ public void addError(String key) { errors.addElement(key); } /** * Return the error message key at the specified zero-relative index. * * @param index Zero-relative index of the error message key to return */ public String getError(int index) { return ((String) errors.elementAt(index)); } /** * Return the set of error message keys we have accumulated. */ public String[] getErrors() { if (errors.size() > 0) { String array[] = new String[errors.size()]; errors.copyInto(array); return (array); } return (null); } /** * Return the number of error message keys we have accumulated so far. */ public int getSize() { return (errors.size()); } } Thanks ! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]