From struts-user-return-83907-qmlist-jakarta-archive-struts-user=nagoya.apache.org@jakarta.apache.org Mon Jun 30 09:20:17 2003 Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 33120 invoked from network); 30 Jun 2003 09:20:16 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 30 Jun 2003 09:20:16 -0000 Received: (qmail 23232 invoked by uid 97); 30 Jun 2003 09:22:52 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 23225 invoked from network); 30 Jun 2003 09:22:51 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 30 Jun 2003 09:22:51 -0000 Received: (qmail 30972 invoked by uid 500); 30 Jun 2003 09:19:43 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 30960 invoked from network); 30 Jun 2003 09:19:42 -0000 Received: from pcp02833531pcs.levtwn01.pa.comcast.net (HELO localhost.localdomain) (68.80.216.199) by daedalus.apache.org with SMTP; 30 Jun 2003 09:19:42 -0000 Received: from localhost.localdomain (hvar [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.5) with ESMTP id h5U9Jo5b001097 for ; Mon, 30 Jun 2003 05:19:50 -0400 Received: (from mail@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id h5U9JoZS001095 for struts-user@jakarta.apache.org; Mon, 30 Jun 2003 05:19:50 -0400 X-Authentication-Warning: localhost.localdomain: mail set sender to struts-user-account@basebeans.net using -f To: struts-user@jakarta.apache.org X-Injected-Via-Gmane: http://gmane.org/ Received: from localhost.localdomain (hvar [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.5) with ESMTP id h5U9Jn5b001090 for ; Mon, 30 Jun 2003 05:19:49 -0400 Received: (from news@localhost) by localhost.localdomain (8.12.8/8.12.8/Submit) id h5U9Jn9T001088 for Struts@basebeans.net; Mon, 30 Jun 2003 05:19:49 -0400 Path: not-for-mail From: Marc Subject: Re: File Upload size restriction ?? Date: Mon, 30 Jun 2003 11:21:30 +0200 Organization: baseBeans Engineering Lines: 37 Message-ID: References: NNTP-Posting-Host: pd95029dc.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: localhost.localdomain 1056964789 1082 217.80.41.220 (30 Jun 2003 09:19:49 GMT) X-Complaints-To: news@news.basebeans.net NNTP-Posting-Date: Mon, 30 Jun 2003 09:19:49 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en In-Reply-To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Uups, found the answer in one of the strus-examples. Here it is for those who are interested. Regards Markus /** * Check to make sure the client hasn't exceeded the maximum allowed upload size inside of this * validate method. */ public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = null; //has the maximum length been exceeded? Boolean maxLengthExceeded = (Boolean) request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED); if ((maxLengthExceeded != null) && (maxLengthExceeded.booleanValue())) { errors = new ActionErrors(); errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new ActionError("maxLengthExceeded")); } return errors; } --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org