How to have a form where the field names are truly dynamic?

2003-04-02 Thread Luiz-Otavio Zorzella
Is it possible for struts to handle form beans (using DynaForms or anything else) to pass values to an Action Form from a form where the field names themselves are dynamic? For example, say I want to create a generic site for creating simple surveys, where someone would come and say: ask for

Re: RowSetDynaClass

2003-02-14 Thread Luiz-Otavio Zorzella
Craig R. McClanahan wrote: On Fri, 14 Feb 2003, Sundar Narasimhan wrote: I agree that this approach works well for small result sets. However, if there are say 10k rows.. it would be nice to have such a class work together with a Pager tag set.. any thoughts re. that? Sounds like a good

Re: ResultsetDyna class

2003-02-11 Thread Luiz-Otavio Zorzella
Craig, I, actually, require a third semantic (that I'm willing to implement myself, btw): I want, like in the a ResultSetDynaClass, a structure that does not copy the elements, from which I can get an Iterator. Now, once I getNext() from the Iterator, I want to get a copy of the object, so

How to reject missing taglibs?

2003-02-10 Thread Luiz-Otavio Zorzella
If I use a JSP tag in a jsp without importing the taglib before, no error message will be displayed, and all it will happen is that the tag will have no effect. Since I do pre-compilation of the pages, is there a way to make the JSP compiler reject pages that use tags it does not know about?

How to trim() before Integer-cast field fails?

2003-02-03 Thread Luiz-Otavio Zorzella
Hi, if a property in a Struts Form is declared as an Integer, and the user types, for example 5 (i.e. mistypes a space before or after the number), my bean is just setting the property as 0 (it fails to parse, I guess). How can I simply trim the input before it goes to the Form Bean? Thanks,

Re: How to trim() before Integer-cast field fails?

2003-02-03 Thread Luiz-Otavio Zorzella
: Luiz-Otavio Zorzella [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 03, 2003 8:17 PM Subject: How to trim() before Integer-cast field fails? Hi, if a property in a Struts Form is declared as an Integer, and the user types, for example 5 (i.e. mistypes

Re: How to have a generated string processed by Struts?

2003-01-30 Thread Luiz-Otavio Zorzella
Well, it's rather simple -- I wanted to be able to use the power of struts constructs, even if the content was not known a priori. But I just realized that if I can do that (and I'm pretty sure there's a way to pass internally a string for the Struts taglibs to parse), I'd be incurring in a

How to have a generated string processed by Struts?

2003-01-29 Thread Luiz-Otavio Zorzella
What if I wanted to generate Struts tags dynamically, say something like this: %= myClass.output () % public class MyClass { public String output () { // I want this to be further processed by Struts!!! return bean:message key=\a.message\/ } } How to do it? Thanks, Zorzella

Problem with Struts bean:write and NULL EJBs

2003-01-25 Thread Luiz-Otavio Zorzella
I have the following statement in a JSP: TDbean:write name=person property=groups.name//TD Where a person is an EJB. When the person does not belong to any group, there is an Exception thrown, which I'd like to avoid so as to not have to put conditionals everywhere where the Bean might be