Re: Lost in beans

2003-02-05 Thread Matthew Meyer
I was actually looking for an easy way to do just this (nest Dynas) for 4 hours today.. The easiest hack(at least in my mind a hack) is to write a beanutils Converter to convert from a string to DynaActionFrom. Then when DynaActionFormClass.newInstance() sets the inital property values have

Re: Lost in beans

2003-02-05 Thread Matthew Meyer
but didn't get anywhere, got some concrete example I could admire? -Original Message- From: Matthew Meyer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 4:29 PM To: Struts Users Mailing List Subject: Re: Lost in beans I was actually looking for an easy way to do just

Re: socket write error when using tiles

2003-02-04 Thread Matthew Meyer
On Tue, 4 Feb 2003 08:32:30 -0500 [EMAIL PROTECTED] wrote: I have socket write error when using tiles. I suppose it is because users click on other action before the last tile is displayed. I have so many of these that I suspect this can cause performance issues. Anyone can explain or knows

Re: hashmaps and hash tables in JSPs

2003-02-03 Thread Matthew Meyer
You might looks at useing roles to acomplish this external to the JSP, AKA leave to logic out of the view, but otherwise a Hashmap can be checked as a map backed property like so.. logic:present name='permissionsHashMap' property='Manage Countires' although I don't know how it will handle

Re: hashmaps and hash tables in JSPs

2003-02-03 Thread Matthew Meyer
you can access hashmap values by name without the map(val) notation.. this helps alot if you don't want to wrap the mapback property in a bean. for example.. logic:present name='wraperBean' property='map(val)' can be done with the same map but without the wrapper bean like.. logic:present

Re: one desing question, Revisited

2003-01-31 Thread Matthew Meyer
What you will want to is make your commonFunctions an interface. Next write a class to implement all of your common functions. Then Write your action extending Action and implementing your commonFunctions interface. Make your common funtions an instance variable of your action and then simply

Re: one desing question, Revisited

2003-01-31 Thread Matthew Meyer
needed to modify the behavior of your CommonFunctionsImpl for a given action class, you could extend CommonFunctionsImpl, and then map the action class to that new subclass. -Original Message- From: Matthew Meyer [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 10:00 AM

Re: log4j problem

2003-01-30 Thread Matthew Meyer
I am having a simmilar problem. I'm useing Struts 1.1b2 within WTE 3.5. The digester and requestProcessor refuse to quit logging not matter what I set the log levels at. I'm guessing I'm just not finding the correct configuration file, but it's really getting annoying. Matt, On Thu, 30 Jan

Re: How to instantiate a DynaValidatorForm

2003-01-30 Thread Matthew Meyer
Your Action gets passed a copy of the actionForm object that it is useing. So specify the name of your DynaValidatorForm in the name property of your action's definition. Then populate the actionForm oject in your action and forward to the JSP that expects a populated DynaValidatorForm..

Re: How to instantiate a DynaValidatorForm

2003-01-30 Thread Matthew Meyer
'/ /nested:iterate On Thu, 30 Jan 2003 18:18:01 +0100 Boris Folgmann [EMAIL PROTECTED] wrote: Matthew Meyer wrote: Your Action gets passed a copy of the actionForm object that it is useing. So specify the name of your DynaValidatorForm in the name property of your action's definition. Then populate

Re: logic:empty AND logic:notEmpty Both executing?

2003-01-30 Thread Matthew Meyer
I saw this once and couldn't figure it out. Then I reaized that the taglibs weren't defined in the JSP and that they were being evaluated.. Do a view source from your browser, to verify this.. Hope This solves your problem, because it's nice when they are easy to fix. Matt, On Thu, 30 Jan

Nesting DynaValidatorForms

2003-01-30 Thread Matthew Meyer
I was wondering if there was a way to either nest DynaValidatorForms, or any other way to use more than one DynaValidatorForm in the same view/action? The big gotcha if that I still need validation to function. Can I use nested property notation in the validation.xml? Any help or experience on

Re: [VALIDATOR] requiredif ??

2003-01-30 Thread Matthew Meyer
Is there any reason that none of the books, or docs discuss writeing javascript pluggable validators. I wrote my own xorDependency pluggable javascript validator, one field or the other field required but not both. It takes one var named secondField that tells it the other field in the