From taglibs-user-return-1399-apmail-jakarta-taglibs-user-archive=jakarta.apache.org@jakarta.apache.org Wed Oct 10 20:05:36 2001 Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 9768 invoked by uid 500); 10 Oct 2001 20:05:34 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: taglibs-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 9687 invoked from network); 10 Oct 2001 20:05:33 -0000 X-Server-Uuid: 6E802067-ECFC-4FC2-A617-DD5220DD9CBB Message-ID: <046001c151c6$704180c0$c77ba8c0@frmt1.sfba.home.com> From: martin.cooper@tumbleweed.com To: struts-user@jakarta.apache.org cc: taglibs-user@jakarta.apache.org References: <60E0B58C043BD51190FB00805F9F6E5B32DEA7@commwloo.ca.descartes.com> Subject: Re: struts-tags - long form problem Date: Wed, 10 Oct 2001 13:02:03 -0700 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-WSS-ID: 17DA76E2312044-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The form taglib is deprecated in Struts 1.0 (see the Release Notes and/or the struts-form.tld file), and will be removed in Struts 1.1. -- Martin Cooper ----- Original Message ----- From: "Tahir Awan" To: Sent: Wednesday, October 10, 2001 12:47 PM Subject: struts-tags - long form problem > > yes, I am using org.apache.struts.taglibs.FormTag and never used one tags > from html, logic packages. I think the files from taglibs should be removed > (or perhaps already deprecated). > > Tahir > > -----Original Message----- > From: martin.cooper@tumbleweed.com [mailto:martin.cooper@tumbleweed.com] > Sent: Wednesday, October 10, 2001 2:41 PM > To: taglibs-user@jakarta.apache.org > Subject: Re: struts-tags - long form problem > > > Perhaps you're using, and looking at, the wrong version of the tag? If you > are using the struts-form taglib, you should be aware that that is obsolete. > You should be using the struts-html taglib instead. The source for the > tag in Struts 1.0 is here: > > http://cvs.apache.org/viewcvs/jakarta-struts/src/share/org/apache/struts/tag > lib/html/FormTag.java?rev=1.13&content-type=text/vnd.viewcvs-markup > > As you can see, the bean is being saved in request scope. > > Including JSP pages with form elements inside a form does work with Struts > 1.0. I have a shipping product that makes use of it. > > -- > Martin Cooper > > > ----- Original Message ----- > From: "Tahir Awan" > To: > Sent: Tuesday, October 09, 2001 12:56 PM > Subject: RE: struts-tags - long form problem > > > > > > I tried to break my long-form like below. > > > > > > > > > > But could not succeed. I checked the struts 1.0 version and there's no > > different in related code as its still putting the bean in Page scope. Can > > somebody confirm if this is solved in struts 1.1 ?(though I got it to work > > by chaning appropriate line in FormTag.java). > > > > Thanks, > > Tahir > > > > -----Original Message----- > > From: martin.cooper@tumbleweed.com [mailto:martin.cooper@tumbleweed.com] > > Sent: Saturday, October 06, 2001 4:35 PM > > To: taglibs-user@jakarta.apache.org > > Subject: Re: struts-tags - long form problem > > > > > > > > ----- Original Message ----- > > From: "Tahir Awan" > > To: > > Sent: Saturday, October 06, 2001 3:56 AM > > Subject: RE: struts-tags - long form problem > > > > > > > Thanks a lot for this valuable info. Actually I have a version retrieved > > in > > > last December and modified some tags and wrote some new tags to fit our > > > needs (I am only using taglibs from the struts framework). > > > But it looks like to solve this problem, I have to acquire the latest > > > version and redo my changes. > > > > If you think the changes you made to the Struts tags might be useful > > extensions, then you could propose them as such on the struts-dev mailing > > list. > > > > > I have all the forms with a Custom Type (PageBean) which is wrapper > around > > a > > > Collection and like this idea because I dont have to create a new > javabean > > > for each view. > > > > > > So the question is whether the included jsp files (fragments) will still > > > read properties from form's bean? > > > > Yes, they will. > > > > -- > > Martin Cooper > > > > > > > > Tahir > > > > > > -----Original Message----- > > > From: martin.cooper@tumbleweed.com > > > To: taglibs-user@jakarta.apache.org > > > Sent: 10/5/01 11:34 PM > > > Subject: Re: struts-tags - long form problem > > > > > > Actually, it is possible, and it is the only solution I am aware of. I > > > know, > > > because I rely on this heavily to solve exactly the problem you are > > > having. > > > :-} > > > > > > Early versions of Struts stored form-related data in page scope, which > > > prevented the use of nesting in the way you describe. However, some time > > > ago - before the Struts 1.0 release - this was changed so that the > > > form-related data is stored in request scope. > > > > > > This makes it possible to break up your pages like this: > > > > > > > > > > > > > > > > > > > > > Incidentally, questions on Struts-related tags are better asked on the > > > struts-user mailing list. > > > > > > -- > > > Martin Cooper > > > > > > > > > ----- Original Message ----- > > > From: "Tahir Awan" > > > To: > > > Sent: Friday, October 05, 2001 2:46 PM > > > Subject: RE: struts-tags - long form problem > > > > > > > > > > That's not possible because all of the tags have to be nested inside > > > > struts:form tag (otherwise they wont render). > > > > > > > > Tahir > > > > > > > > -----Original Message----- > > > > From: Lavandowska > > > > To: taglibs-user@jakarta.apache.org > > > > Sent: 10/5/01 5:01 PM > > > > Subject: Re: struts-tags - long form problem > > > > > > > > --- Tahir Awan wrote: > > > > > I can't break the page because all the tags have to be nested in the > > > > >
> > > > > tag. Is there any workaround? > > > > > > > > I'm not saying this is a "good" solution, but you could break it up by > > > > putting parts into other .jspf (fragment) files and using > > > /> to execute them. > > > > > > > > Lance > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > NEW from Yahoo! GeoCities - quick and easy web site hosting, just > > > > $8.95/month. > > > > http://geocities.yahoo.com/ps/info1 > > > > >