From struts-user-return-85198-qmlist-jakarta-archive-struts-user=nagoya.apache.org@jakarta.apache.org Thu Jul 10 08:39:58 2003 Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 59592 invoked from network); 10 Jul 2003 08:39:57 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 10 Jul 2003 08:39:57 -0000 Received: (qmail 24689 invoked by uid 97); 10 Jul 2003 08:42:36 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 24682 invoked from network); 10 Jul 2003 08:42:35 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 10 Jul 2003 08:42:35 -0000 Received: (qmail 57591 invoked by uid 500); 10 Jul 2003 08:39:34 -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 57580 invoked from network); 10 Jul 2003 08:39:33 -0000 Received: from moutng.kundenserver.de (212.227.126.185) by daedalus.apache.org with SMTP; 10 Jul 2003 08:39:33 -0000 Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19aWxu-0000aD-00 for struts-user@jakarta.apache.org; Thu, 10 Jul 2003 10:39:46 +0200 Received: from [80.128.15.177] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19aWxt-0006XV-00 for struts-user@jakarta.apache.org; Thu, 10 Jul 2003 10:39:45 +0200 Message-ID: <3F0D260C.6020606@cyberspaceroad.com> Date: Thu, 10 Jul 2003 10:38:36 +0200 From: Adam Hardy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Outputting form:text value as "normal" text in the .jsp References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I would not put the text to display into the form. Just put it straight in the request scope when you obtain it, or in both places if needs be. Or alternatively, output it as a read-only text field with CSS styles that make the field box invisible. Adam Linus Nikander wrote: > Is there a way to output the value of an attribute contained in a Form as > "normal" text on the displaying .jsp page ? The following code illustrates > what I'm trying to do. > > > > property="isRegistrationAllowed" /> > > > isRegistrationAllowed is a checkbox property. the " property="isRegistrationAllowed"/>" works fine and displays the set value. > " />" also works fine and renders "true" or "false" to the screen. > > Essentially that is exactly what I want to do, BUT when using the > tag i have to specify which bean the property is to be > fetched from, thus I make the .jsp dependant on the fact that > registrationHandlerForm is the name of the bean in the request/session. The > form on the other hand knows the name of the bean because of the > struts-config.xml. Is there another way to output the text without > explicitly naming the bean in the .jsp ? > > //Linus Nikander - linus@nikander.net > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org