RE: way to use bean:write with label value beans

2002-01-24 Thread Rob Parker
. Hope this is the answer you want, ask for more detail if req. Keith. --- Rob Parker [EMAIL PROTECTED] wrote: This may be a little complicated to explain. Here is a some background info. I have a page that shows a list of clients (in an html table, not a form) for a user and a form that lets

RE: way to use bean:write with label value beans

2002-01-24 Thread Rob Parker
=beanList property=value labelProperty=longName/ /html:select where aProperty is one of the strings in the field of the bean specified by property in the options tag. -Original Message- From: Rob Parker [mailto:[EMAIL

Re: Adding/Modifying parameters in the Request object

2002-01-24 Thread Rob Parker
Try request.setAttribute(String name, Object value) - that should do it. To set a parameter in the classical sense, Object value can be a String object -- for example: request.setAttribute(username,rparker); or String userName = rparker; request.setAttribute(username, userName); I think

way to use bean:write with label value beans

2002-01-23 Thread Rob Parker
This may be a little complicated to explain. Here is a some background info. I have a page that shows a list of clients (in an html table, not a form) for a user and a form that lets the user either edit information for and existing client (by selecting that client from the list) or add a new

RE: Execute Struts in Netbeans?

2002-01-15 Thread Rob Parker
I have been able to use struts with Netbeans by unzipping the struts-blank war file and mounting the resulting directory. Netbeans recognizes the dir as a web app and takes care of everything for you - mounting jars, setting up mount points for editing conf files, etc. What I usually do in

RE: Country List

2001-12-19 Thread Rob Parker
how about something like this - you could do a lot to improve this, but here is the basic idea. Better yet, use a properties file or a database to specify the country list. Then use the Collection returned from this method from the html:options tag to create the option list for the select.

RE: Country List

2001-12-19 Thread Rob Parker
]); list.add(bean); } return list; } -Original Message- From: Rob Parker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 2:37 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Country List how about something like

RE: Re[2]: SAX / Struts problem SAXNotRecognizedException

2001-12-14 Thread Rob Parker
I have run into that problem before with corrupted class files - you might want to download a new xerces.jar to replace your current file. Hope that helps, Rob -Original Message- From: jpablo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 8:57 AM To: Struts Users Mailing

RE: DataSources Problem: 2 DataSources won't work!

2001-12-12 Thread Rob Parker
I usually get that problem when there is a problem with the actual xml in struts-config (eg, I left out a closing tag, etc). Is this exactly like your struts-config xml looks? If so, you have a problem at the end - there are 2 closing /data-sources tags - one is actually data-sources-- If that

Design question - option lists populated from db

2001-12-11 Thread Rob Parker
I need to create some select option lists that are populated from a database. The call to the database will pass in the current user's id to create customized option lists. Where is the best place to create these option lists? If I create the lists in the user form, how can I pass in the user id?

RE: Design question - option lists populated from db

2001-12-11 Thread Rob Parker
getDefaultOption() { String sss = ((ReviewDisplayTypeOption)getReviewDisplayTypeOptions().get(0)).getOption(); dbmd(getDefaultOption: returning:+ sss); return sss; } } // end Class ReviewDisplayTypeOption = --- Rob Parker

RE: Design question - option lists populated from db

2001-12-11 Thread Rob Parker
use bean:define in your jsp to get the collection directly from your data supplying classes? Keith. --- Rob Parker [EMAIL PROTECTED] wrote: Thanks - I am doing almost exactly the same thing, but I am running into a problem. If form level validation fails, the action is not called

RE: Problem using bean:define toScope parameter

2001-12-07 Thread Rob Parker
to remember to re-add your bean to the request after validation that fails - so the re-display of the original form has access to it. I hope this makes sense helps. Keith. --- Rob Parker [EMAIL PROTECTED] wrote: I am having trouble with the bean:define tag, specifically the toScope parameter. Here

Problem using bean:define toScope parameter

2001-12-06 Thread Rob Parker
I am having trouble with the bean:define tag, specifically the toScope parameter. Here is the situation: I set up some collections in an action class to use as select options in a form and set them as attributes on the request object. These collections contain information pulled from a