Scott Can I make a suggestion that if you want to find out about a Tag (or set of) that you open the .tld and have a read through it. Most tag properties (especially in the Struts HTML tags) are quite clear from their labels. This isn't always the case, but certainly with the ones that come with Struts, you can kind of work them out. Those Struts HTML tag properties are mostly pass thru to the underlying HTML tags, so it is relatively simple to get a grasp of if you know the HTML tag itself.
I'd have a look at Bill Siggelkow's Jakarta Struts Cookbook, which covers both 1.1 and 1.2 of Struts. Cheers Christopher Marsh-Bourdon www.marsh-bourdon.com -----Original Message----- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 23 March 2005 13:56 To: Struts Users Mailing List; Richard Bywater Subject: HTML Tag Users Guide Hello, following up with my select-list issue, I ended up with this next question. First off, I have been referencing the HTML tag users guide. But to be honest, it does me little use, as it does not show how to use the html:select tags, etc. Some make sense, but most do not. I am probably like others, I like to see examples, and put the logic together in that way. Finally late last night I was able to get the select-list stuff to work, but it was through a hack and stealing of code. I ended up using something that was a "LabelValueBean" and passing it values. I own the O'Reilly struts book, and have read it many times, and through this, I understand how the framework works. The book is great at getting an understanding of the framework, but it does not go into any detail of using tags within the framework. The problem I am having now, is that I am wasting a ton of time with the logic: html: and bean: tags. I can populate my ActionForms, pass off to the Action classes, but I am having trouble, or a lack of understanding, how to cleanly populate my JSP pages from the ActionForms for lists, selects, etc. Does anyone know of any books, or links that spend some time on combining all these tags, struts, etc to create a full streamlined struts application? I shopped Amazon last night, but none seem to stand out for myself. Thanks, Scott -----Original Message----- From: Richard Bywater [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 11:13 PM To: Struts Users Mailing List Subject: Re: select list issues: I assume you know about the HTML tag Users Guide? (http://struts.apache.org/userGuide/struts-html.html) Richard. On Tue, 22 Mar 2005 14:35:25 -0600, Scott Purcell <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to do something pretty simple I would think. I am also trying to use html:select tags, logic, etc. to keep the project uniform. > I have a jsp page that I need to show a set of users in a select list. > > So I have an action that creates a bean in memory and does not validate. > <action path="/displaySelect" > type="foo.WorkAsUser" > scope="request" > name="usersbean" > validate="false" > input="/jsp/admin/mainAdmin.jsp"> > <forward name="Success" path="/jsp/admin/testSelect.jsp" /> > <!-- test above only --> > </action> > > In the foo.WorkAsUser Class, I am doing a query and grabbing the data into a Vector: > Then I cast the form (in this action) class back to the usersbean (type). > > eg: > com.UsersBean usersbean = (UsersBean)form; > Then I am setting the bean with the Vector. > > usersbean.setSelectVector(vector); > > So at this point, I believe to have a good vector of String names options, in the usersBean. > > Now in the JSP page how do I incorporate this bean into something like this: > <html:select property="multipleSelect" size="10" multiple="true"> > <html:options name="multipleValues" labelName="multipleValues" /> > </html:select> > > I cannot find the answer. I do have a form tag in this jsp page that calls once again for this usersbean: So I know I own the bean in the request scope, but how do put all this data into a select list? > > Any ideas > > Thanks, > Scott > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3167 -------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]