Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 5800 invoked from network); 15 Jan 2004 13:36:00 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Jan 2004 13:36:00 -0000 Received: (qmail 38439 invoked by uid 500); 15 Jan 2004 13:35:41 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 38407 invoked by uid 500); 15 Jan 2004 13:35:40 -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 38393 invoked from network); 15 Jan 2004 13:35:40 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.171) by daedalus.apache.org with SMTP; 15 Jan 2004 13:35:40 -0000 Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1Ah7ev-000486-00 for struts-user@jakarta.apache.org; Thu, 15 Jan 2004 14:35:41 +0100 Received: from [217.228.248.242] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1Ah7eu-0002mP-00 for struts-user@jakarta.apache.org; Thu, 15 Jan 2004 14:35:41 +0100 Message-ID: <400696D2.7090803@cyberspaceroad.com> Date: Thu, 15 Jan 2004 14:34:10 +0100 From: Adam Hardy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031210 X-Accept-Language: en, en-us, de-de MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Struts and iframes References: <6.0.1.1.0.20040114154457.02311520@pop.superig.com.br> In-Reply-To: <6.0.1.1.0.20040114154457.02311520@pop.superig.com.br> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:7be52423742ce504c1b541fa1f258887 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N If you're going to use a form in one frame to submit to another frame, then you should expect that! You could set the action mapping 'input' parameter to an error page instead of the form itself. That way, the 2nd frame will display an error message instead of a form. Adam On 01/14/2004 06:52 PM Vinicius Carvalho wrote: > Hi there! In our project, at a certain point, we have a table with a > form in a td, which target is a iframe, code looks like this: > > > > Well, it works fine, almost! The action forwards to the viewModel.jsp, > which is rendered in the main window. The problem is, when an error is > captured by the validate() method of the BuildModelForm.java, it returns > to the page with the forms, but now in the wrong window. So I end up > with 2 forms in my window. Is it possible to solve this? I don't know, > maybe by changing the target attribute of the request(response??) when > an error occurs. > > And, BTW, In that jsp, I use this: > > > > In my BuildModelForm, inside the validate model, I have something like > this: > if(getDate().length() < 1 || getDate() == null){ > errors.add("date",new ActionError("errors.date.required")); > } > > and although I have configured the resources bundle, no message is > displayed, when user lefts it blank (even though it is displayed in the > wrong window). > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > > -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org