RE: BeanUtils, Form Bean and POJO Bean

2006-06-18 Thread Joe Hertz
For starters, you should generally be using String properties in your form bean because this is what the JSP sends to you. If you declare an integer in your form bean, and the user enters character data into the text field, youre going to get an exception thrown before you (or the validator) ever

RE: [OT] HttpRequestWrapper Deprecations?

2006-05-18 Thread Joe Hertz
It's a little off-topic (and I may have already sent this once here). I asked on tomcat-users but that list seems to get 15 questions for every answer. Hoping someone here can help. My Struts (1.2.7) App uses a custom HttpRequest and HttpResponse. That is to say, I extend the

MessageResources from Plugin or RequestProcessor

2006-03-15 Thread Joe Hertz
How do I get to a MessageResource bundle like I would with Action.getResources() from the inside of my RequestProcessor or Plugin implementation? I assume from the moduleConfig, but I keep hitting dead ends in the API javadocs. TIA

RE:MessageResources from Plugin or RequestProcessor

2006-03-15 Thread Joe Hertz
I should say... A roadblock short of reimplementing the code in the protected method Action.getResources() elsewhere. No cleaner way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

locale attribute in bean:message

2005-03-28 Thread Joe Hertz
An utter shot in the dark here.. I'm trying to force the printing of language names into their native languages. That is to say English is English and French would be francais. I realize that if I know what language I want to put display it in, I don't _really_ need a bean:message tag, but it's

locale attribute in bean:message

2005-03-28 Thread Joe Hertz
An utter shot in the dark here.. I'm trying to force the printing of language names into their native languages. That is to say English is English and French would be francais. I realize that if I know what language I want to put display it in, I don't _really_ need a bean:message tag, but it's

RE: locale attribute in bean:message

2005-03-28 Thread Joe Hertz
the language of the locale in the locale you specify. If you don't specify a locale it will use the default locale of the system. Regards, Thad Smith -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday, March 28, 2005 11:57 AM To: 'Struts Users Mailing List

RE: locale attribute in bean:message

2005-03-28 Thread Joe Hertz
the language of the locale in the locale you specify. If you don't specify a locale it will use the default locale of the system. Regards, Thad Smith -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday, March 28, 2005 11:57 AM To: 'Struts Users Mailing List

RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
I'm going to try again, stripping this question down to its fundamentals. If in a RequestProcessor processActionPerform() method, is it safe for me to return a mapping.findForward() directly without calling super.processActionPerform? Or do I need to call super.processActionPerform with with

RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
I'm going to try again, stripping this question down to its fundamentals. If in a RequestProcessor processActionPerform() method, is it safe for me to return a mapping.findForward() directly without calling super.processActionPerform? Or do I need to call super.processActionPerform with with

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
Badly written again: I should say, is it EVER safe for me to do this directly. I want to redirect the user under certain circumstances. I think by merely asking it, I answered it myself, No you idiot Joe. -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
Badly written again: I should say, is it EVER safe for me to do this directly. I want to redirect the user under certain circumstances. I think by merely asking it, I answered it myself, No you idiot Joe. -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
processActionPerform() does is call the Action's execute() method, then pass exceptions to processException() if it gets any. If you want to skip the action execution for a reason you deem valid, go ahead. Hubert On Mon, 21 Mar 2005 10:59:37 -0500, Joe Hertz [EMAIL PROTECTED] wrote: I'm

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
processActionPerform() does is call the Action's execute() method, then pass exceptions to processException() if it gets any. If you want to skip the action execution for a reason you deem valid, go ahead. Hubert On Mon, 21 Mar 2005 10:59:37 -0500, Joe Hertz [EMAIL PROTECTED] wrote: I'm

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
Correction: It's happening on my dev box too. -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 11:37 AM To: 'Struts Users Mailing List' Subject: RE: RequestProcessor question (redux) I did try it. Worked fine on my development box

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
Correction: It's happening on my dev box too. -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 11:37 AM To: 'Struts Users Mailing List' Subject: RE: RequestProcessor question (redux) I did try it. Worked fine on my development box

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
after a redirect. This seems to be beyond Struts. Perhaps ask the Tomcat user list? On Mon, 21 Mar 2005 11:36:42 -0500, Joe Hertz [EMAIL PROTECTED] wrote: I did try it. Worked fine on my development box. But when I deployed it at my hosting company I found that httpSession information

RE: RequestProcessor question (redux)

2005-03-21 Thread Joe Hertz
after a redirect. This seems to be beyond Struts. Perhaps ask the Tomcat user list? On Mon, 21 Mar 2005 11:36:42 -0500, Joe Hertz [EMAIL PROTECTED] wrote: I did try it. Worked fine on my development box. But when I deployed it at my hosting company I found that httpSession information

SecurityFilter/Struts issue...

2005-03-20 Thread Joe Hertz
I've got an application I'm trying to deploy that works perfectly on my Windows development system. I deploy it on a Suze box, and the following behavior occurs. User Logs in fine. My Request Processor has an overridden processActionPerform() which checks and sees if he has signed the Terms of

BeanUtils hates me...

2005-03-13 Thread Joe Hertz
I'm sorry about how lame this question seems. I'm staring quite stunned at what I'm seeing in my debugger right now, and I'm hoping someone can explain the behavior. Using Struts 1.2.4 (BeanUtils 1.7). I have two objects: A UserEntity and a User. The User is a subclass of UserEntity. I call

BeanUtils hates me...

2005-03-13 Thread Joe Hertz
I'm sorry about how lame this question seems. I'm staring quite stunned at what I'm seeing in my debugger right now, and I'm hoping someone can explain the behavior. Using Struts 1.2.4 (BeanUtils 1.7). I have two objects: A UserEntity and a User. The User is a subclass of UserEntity. I call

RE: BeanUtils hates me...

2005-03-13 Thread Joe Hertz
. -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Sunday, March 13, 2005 2:24 PM To: Joe Hertz; 'Struts Users Mailing List' Subject: Re: BeanUtils hates me... At 2:15 PM -0500 3/13/05, Joe Hertz wrote: I'm sorry about how lame this question seems. I'm staring quite stunned

RE: BeanUtils hates me...

2005-03-13 Thread Joe Hertz
. -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Sunday, March 13, 2005 2:24 PM To: Joe Hertz; 'Struts Users Mailing List' Subject: Re: BeanUtils hates me... At 2:15 PM -0500 3/13/05, Joe Hertz wrote: I'm sorry about how lame this question seems. I'm staring quite stunned

RE: BeanUtils hates me...

2005-03-13 Thread Joe Hertz
[mailto:[EMAIL PROTECTED] Sent: Sunday, March 13, 2005 2:24 PM To: Joe Hertz; 'Struts Users Mailing List' Subject: Re: BeanUtils hates me... At 2:15 PM -0500 3/13/05, Joe Hertz wrote: I'm sorry about how lame this question seems. I'm staring quite stunned at what I'm seeing in my debugger right

RE: BeanUtils hates me...

2005-03-13 Thread Joe Hertz
[mailto:[EMAIL PROTECTED] Sent: Sunday, March 13, 2005 2:24 PM To: Joe Hertz; 'Struts Users Mailing List' Subject: Re: BeanUtils hates me... At 2:15 PM -0500 3/13/05, Joe Hertz wrote: I'm sorry about how lame this question seems. I'm staring quite stunned at what I'm seeing in my debugger right

RE: BeanUtils hates me...

2005-03-13 Thread Joe Hertz
, March 13, 2005 3:03 PM To: Joe Hertz; 'Struts Users Mailing List' Subject: RE: BeanUtils hates me... At 2:33 PM -0500 3/13/05, Joe Hertz wrote: That's the behavior I'd expect too. This did work at one point. No, it's not unintuitive. Least not for C programmers :-) But I've got smoking gun

RE: BeanUtils hates me...

2005-03-13 Thread Joe Hertz
, March 13, 2005 3:03 PM To: Joe Hertz; 'Struts Users Mailing List' Subject: RE: BeanUtils hates me... At 2:33 PM -0500 3/13/05, Joe Hertz wrote: That's the behavior I'd expect too. This did work at one point. No, it's not unintuitive. Least not for C programmers :-) But I've got smoking gun

RE: Struts DB Access :: Best Practices

2005-03-10 Thread Joe Hertz
Vic writes: :snip: The point is... I use ArrayList of Maps now for my DTO,VO and ever as a message object for WS/SOA. Wherever I used to use a bean, now I use a collection, and I like DynaMaps. maybe one day you guys catch up;-) I think I'm buying what you say in a big kinda way. I've

RE: Struts DB Access :: Best Practices

2005-03-10 Thread Joe Hertz
Vic writes: :snip: The point is... I use ArrayList of Maps now for my DTO,VO and ever as a message object for WS/SOA. Wherever I used to use a bean, now I use a collection, and I like DynaMaps. maybe one day you guys catch up;-) I think I'm buying what you say in a big kinda way. I've

RE: session.invaludate(); not working in LogoffAction

2005-03-07 Thread Joe Hertz
This approach is also useful for other logged in redirection type things on login, such as checking to see a logged in user has agreed to the latest Terms of Service. -Original Message- From: Günther Wieser [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 7:04 PM To: 'Struts

RE: session.invaludate(); not working in LogoffAction

2005-03-07 Thread Joe Hertz
This approach is also useful for other logged in redirection type things on login, such as checking to see a logged in user has agreed to the latest Terms of Service. -Original Message- From: Günther Wieser [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 7:04 PM To: 'Struts

RE: Validator date problem

2005-03-03 Thread Joe Hertz
If you want the validator to pick it up based on the Form name (as opposed to the Action Path name) you should use a ValidatorForm instead of a ValidatorActionForm. You might need to use datePatternStrict too. There's some (or used to be anyway) some weirdness with the javascript not catching it

RE: Validator date problem

2005-03-03 Thread Joe Hertz
If you want the validator to pick it up based on the Form name (as opposed to the Action Path name) you should use a ValidatorForm instead of a ValidatorActionForm. You might need to use datePatternStrict too. There's some (or used to be anyway) some weirdness with the javascript not catching it

Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Joe Hertz
Curious as to which concept Struts/Hibernate implementers like more for implementation: #1- Ted Husted's example of Struts and Hibernate. Stick the Hibernate Session object into the httpServletRequest. Every action has a fresh Hibernate Session raring to go if it needs it. Then again it has it

Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Joe Hertz
Curious as to which concept Struts/Hibernate implementers like more for implementation: #1- Ted Husted's example of Struts and Hibernate. Stick the Hibernate Session object into the httpServletRequest. Every action has a fresh Hibernate Session raring to go if it needs it. Then again it has it

RE: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Joe Hertz
, but it got me wondering about where the bathwater began and where the baby ended. -Original Message- From: Brandon Mercer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 4:48 PM To: Struts Users Mailing List Subject: Re: Hibernate and Struts Usage Pattern question/survey Joe Hertz

RE: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Joe Hertz
, but it got me wondering about where the bathwater began and where the baby ended. -Original Message- From: Brandon Mercer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 4:48 PM To: Struts Users Mailing List Subject: Re: Hibernate and Struts Usage Pattern question/survey Joe Hertz

RE: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Joe Hertz
This particular application (tiny, not used much, never will be, and was written in a hurry and not by me) implementing it after the fact ain't going to happen. Not worth the cost to the customer. In general though, youre quite correct (and I'm cutting through the layers of abstraction.

RE: Hibernate and Struts Usage Pattern question/survey

2005-03-01 Thread Joe Hertz
This particular application (tiny, not used much, never will be, and was written in a hurry and not by me) implementing it after the fact ain't going to happen. Not worth the cost to the customer. In general though, youre quite correct (and I'm cutting through the layers of abstraction.

RE: Iterate over validation errors?

2005-02-27 Thread Joe Hertz
There's one improvement on that method: errors.prefix=li errors.suffix=/li So you don't need to put the markup into each error definition in your properties file. If you don't want markup in it at all, you can do something like logic:messagesPresent UL html:messages id=error LIbean:write

RE: Iterate over validation errors?

2005-02-27 Thread Joe Hertz
There's one improvement on that method: errors.prefix=li errors.suffix=/li So you don't need to put the markup into each error definition in your properties file. If you don't want markup in it at all, you can do something like logic:messagesPresent UL html:messages id=error LIbean:write

User Authentication and Beyond...

2005-02-26 Thread Joe Hertz
My app has been quite happy using SecurityFilter. I've got a new requirement to do something radical... Like to redirect a logged in user to the TOS Acceptance page based upon a user record flag. Yeah, like this is the first app to EVER have that requirement :-) Implementing this is painfully

User Authentication and Beyond...

2005-02-26 Thread Joe Hertz
My app has been quite happy using SecurityFilter. I've got a new requirement to do something radical... Like to redirect a logged in user to the TOS Acceptance page based upon a user record flag. Yeah, like this is the first app to EVER have that requirement :-) Implementing this is painfully

RE: java.util.Date vs java.sql.Timestamp

2005-02-22 Thread Joe Hertz
Why do you care about how it comes into the form bean? Usually the big deal is how it winds up in the business object and there are tools for that. FormDef does a really nice job, especially if you have to deal with international date formats. -Original Message- From: Mark Bennett

RE: java.util.Date vs java.sql.Timestamp

2005-02-22 Thread Joe Hertz
Why do you care about how it comes into the form bean? Usually the big deal is how it winds up in the business object and there are tools for that. FormDef does a really nice job, especially if you have to deal with international date formats. -Original Message- From: Mark Bennett

RE: DynaActionForms Question

2005-02-22 Thread Joe Hertz
DynaActionForm df = (DynaActionForm) form; System.out.println(df.get(name)); -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 3:38 PM To: user@struts.apache.org Subject: DynaActionForms Question Hello, I have a question about using

RE: DynaActionForms Question

2005-02-22 Thread Joe Hertz
DynaActionForm df = (DynaActionForm) form; System.out.println(df.get(name)); -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 3:38 PM To: user@struts.apache.org Subject: DynaActionForms Question Hello, I have a question about using

RE: java.util.Date vs java.sql.Timestamp

2005-02-22 Thread Joe Hertz
. It is best practice to use java.util.Date instead. 3) want to know if it can be done Mark -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 3:39 PM To: 'Struts Users Mailing List' Subject: RE: java.util.Date vs java.sql.Timestamp Why do you care

RE: java.util.Date vs java.sql.Timestamp

2005-02-22 Thread Joe Hertz
. It is best practice to use java.util.Date instead. 3) want to know if it can be done Mark -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 3:39 PM To: 'Struts Users Mailing List' Subject: RE: java.util.Date vs java.sql.Timestamp Why do you care

RE: LazyDynaBean question

2005-02-09 Thread Joe Hertz
- From: Joe Hertz [EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 4:59 AM How about a simpler case then My real goal is to have DynaForms that are backed my experimental semi-lazy-dynabean. BeanValidatorForm (while an impressive piece of work IMHO) isn't actually subclass

RE: LazyDynaBean question

2005-02-09 Thread Joe Hertz
- From: Joe Hertz [EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 4:59 AM How about a simpler case then My real goal is to have DynaForms that are backed my experimental semi-lazy-dynabean. BeanValidatorForm (while an impressive piece of work IMHO) isn't actually subclass

RE: LazyDynaBean question

2005-02-08 Thread Joe Hertz
=myPackage.PathBeanValidatorForm / Niall - Original Message - From: Joe Hertz [EMAIL PROTECTED] Sent: Monday, February 07, 2005 5:37 PM I'm using Struts 1.2.4. If in my struts-config I have something like this: form-bean name=LazyBean type=org.apache.commons.beanutils.LazyDynaBean

RE: LazyDynaBean question

2005-02-08 Thread Joe Hertz
=myPackage.PathBeanValidatorForm / Niall - Original Message - From: Joe Hertz [EMAIL PROTECTED] Sent: Monday, February 07, 2005 5:37 PM I'm using Struts 1.2.4. If in my struts-config I have something like this: form-bean name=LazyBean type=org.apache.commons.beanutils.LazyDynaBean

LazyDynaBean question

2005-02-07 Thread Joe Hertz
I'm using Struts 1.2.4. If in my struts-config I have something like this: form-bean name=LazyBean type=org.apache.commons.beanutils.LazyDynaBean/ How can I get to the resulting form object to setPathValidation(true)? Is there a way I can tell Struts what particular BeanValidatorFom subclass

LazyDynaBean question

2005-02-07 Thread Joe Hertz
I'm using Struts 1.2.4. If in my struts-config I have something like this: form-bean name=LazyBean type=org.apache.commons.beanutils.LazyDynaBean/ How can I get to the resulting form object to setPathValidation(true)? Is there a way I can tell Struts what particular BeanValidatorFom subclass

RE: LazyDynaBean question

2005-02-07 Thread Joe Hertz
BeanValidatorForm { public LazyValidatorForm() { super(new LazyDynaBean()); setPathValidation(true); } } ... and then cofigure it in the usual way. form-bean name=LazyBean type=myPackage.PathBeanValidatorForm / Niall - Original Message - From: Joe

RE: Application Security

2005-02-07 Thread Joe Hertz
A shot in the dark here: Are the request params in SecurityFilter still around if you forward to a Struts action. Say like this? (I do this, but I don't try to access the params). login-config auth-methodFORM/auth-method form-login-config

RE: Application Security

2005-02-07 Thread Joe Hertz
A shot in the dark here: Are the request params in SecurityFilter still around if you forward to a Struts action. Say like this? (I do this, but I don't try to access the params). login-config auth-methodFORM/auth-method form-login-config

RE: Need an alternative to bean:define

2004-11-03 Thread Joe Hertz
Janice, Does this snippet work if you move all of the bean:defines insidea of your logic:iterate? I haven't tested this myself, but I strongly suspect that the problem is the fact that bean:define declares the variable in the resulting servlet code that gets generated. It's trying to declare a

RE: Need an alternative to bean:define

2004-11-03 Thread Joe Hertz
Janice, Does this snippet work if you move all of the bean:defines insidea of your logic:iterate? I haven't tested this myself, but I strongly suspect that the problem is the fact that bean:define declares the variable in the resulting servlet code that gets generated. It's trying to declare a

RE: Handling errors in business objects

2004-11-01 Thread Joe Hertz
Create your own ActionMessages object in your Action (ActionErrors would be all but deprecated by nowexcept for the validate method). Add ActionMessage objects to it. Call this.saveErrors(ActionMessages object) in your Action Method. Return an ActionForward to the page you want to go to.

RE: Handling errors in business objects

2004-11-01 Thread Joe Hertz
Create your own ActionMessages object in your Action (ActionErrors would be all but deprecated by nowexcept for the validate method). Add ActionMessage objects to it. Call this.saveErrors(ActionMessages object) in your Action Method. Return an ActionForward to the page you want to go to.

RE: Trouble on HP-UX, 1.2.4 1.2.5 FileNotFoundException in commons-validator.jar

2004-11-01 Thread Joe Hertz
H. Don't suppose you've tried building the Validator on the HP-UX machine? I'd be curious if it worked packaged up if you did that. You've obviously found something that is both subtle and significant in terms of a problem (jar extraction is pretty darn basic!). I assume the Win and HP-UX

RE: Trouble on HP-UX, 1.2.4 1.2.5 FileNotFoundException in commons-validator.jar

2004-11-01 Thread Joe Hertz
H. Don't suppose you've tried building the Validator on the HP-UX machine? I'd be curious if it worked packaged up if you did that. You've obviously found something that is both subtle and significant in terms of a problem (jar extraction is pretty darn basic!). I assume the Win and HP-UX

Validator Formsets default vs Locale Specific

2004-11-01 Thread Joe Hertz
The Struts Validator guide is pretty sparse on the subject. What are the rules governing Default Formsets vs Locale Specific Formsets (using Struts 1.2.4)? To wit: I have a Default Formset with validation rules for N forms. I want also want language specific validations for one or more of the

Validator Formsets default vs Locale Specific

2004-11-01 Thread Joe Hertz
The Struts Validator guide is pretty sparse on the subject. What are the rules governing Default Formsets vs Locale Specific Formsets (using Struts 1.2.4)? To wit: I have a Default Formset with validation rules for N forms. I want also want language specific validations for one or more of the

RE: Validator Formsets default vs Locale Specific-SOLVED

2004-11-01 Thread Joe Hertz
As it happens- You apparently CANNOT have a language specific validator rule for a property that is not present in the default formset. You don't have to have any rules for it, but it *must* be declared. -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday

RE: Validator Formsets default vs Locale Specific-SOLVED

2004-11-01 Thread Joe Hertz
As it happens- You apparently CANNOT have a language specific validator rule for a property that is not present in the default formset. You don't have to have any rules for it, but it *must* be declared. -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Monday

Re: [ANNOUNCE] Struts Console v4.8 - GUI tool

2004-10-28 Thread Joe Hertz
. James -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 4:12 PM To: 'Struts Users Mailing List' Subject: RE: [ANNOUNCE] Struts Console v4.8 - GUI tool James, thank you! I've been looking forward to this. Out of curiousity, it doesn't

RE: [ANNOUNCE] Struts Console v4.8 - GUI tool

2004-10-27 Thread Joe Hertz
James, thank you! I've been looking forward to this. Out of curiousity, it doesn't look like it handles the new and improved way of defining args in validator.xml files as mentioned at the end of http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29004 Do the arg0, arg1, arg2 attributes really

RE: [ANNOUNCE] Struts Console v4.8 - GUI tool

2004-10-27 Thread Joe Hertz
James, thank you! I've been looking forward to this. Out of curiousity, it doesn't look like it handles the new and improved way of defining args in validator.xml files as mentioned at the end of http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29004 Do the arg0, arg1, arg2 attributes really

RE: [OT] Hosting Companies-Question

2004-10-26 Thread Joe Hertz
connection pool for me and I took it from there. Thanx, PLA Joe Hertz wrote: JavaServletHosting is the one with the problem. And I *really* like them in all other respects. :-( -Joe http://javaservlethosting.com/ works for me. Thanx, PLA

RE: [OT] Hosting Companies-Question

2004-10-26 Thread Joe Hertz
connection pool for me and I took it from there. Thanx, PLA Joe Hertz wrote: JavaServletHosting is the one with the problem. And I *really* like them in all other respects. :-( -Joe http://javaservlethosting.com/ works for me. Thanx, PLA

RE: [OT] Hosting Companies

2004-10-26 Thread Joe Hertz
- From: Rick Reumann[EMAIL PROTECTED] Sent: 10/26/04 11:21:04 PM To: Struts Users Mailing List[EMAIL PROTECTED] Subject: Re: [OT] Hosting Companies Joe Hertz wrote the following on 10/23/2004 2:23 AM: I dont see Struts supporting hosting companies on the wiki

RE: [OT] Hosting Companies

2004-10-26 Thread Joe Hertz
- From: Rick Reumann[EMAIL PROTECTED] Sent: 10/26/04 11:21:04 PM To: Struts Users Mailing List[EMAIL PROTECTED] Subject: Re: [OT] Hosting Companies Joe Hertz wrote the following on 10/23/2004 2:23 AM: I dont see Struts supporting hosting companies on the wiki

RE: Implementing dependence between form properties

2004-10-25 Thread Joe Hertz
Something like this if youre using 1.2.x: field property=propName depends=validwhen var var-nametest/var-name var-value((item1 != null) or (item2 != null) or (*this* != null))/var-value /var /field -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Laurent Duperval

RE: [OT] Hosting Companies

2004-10-24 Thread Joe Hertz
there. Thanx, PLA Joe Hertz wrote: JavaServletHosting is the one with the problem. And I *really* like them in all other respects. :-( -Joe http://javaservlethosting.com/ works for me. Thanx, PLA

[OT] Hosting Companies

2004-10-23 Thread Joe Hertz
I dont see Struts supporting hosting companies on the wiki. It used to be on the site before the resources link pointed you to the wiki IARC. RANT I just found out that the hosting company I use decided that they won't let you deploy anything using Hibernate (or Swing, or Tapestry...or Jive or

RE: [OT] Hosting Companies

2004-10-23 Thread Joe Hertz
Er Spring, not Swing. No Frameworks for you. Next! :-) -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Saturday, October 23, 2004 2:24 AM To: 'Struts Users Mailing List' Subject: [OT] Hosting Companies I dont see Struts supporting hosting companies

RE: [OT] Hosting Companies

2004-10-23 Thread Joe Hertz
JavaServletHosting is the one with the problem. And I *really* like them in all other respects. :-( -Joe http://javaservlethosting.com/ works for me. Thanx, PLA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[slight OT] SSLExt default behavior

2004-10-20 Thread Joe Hertz
Anyone aware of if there is a way to specify the default behavior for the secure set-property for Actions when using SSLExt? I'm taking an existing struts app and adding https pages to it with SSLExt. Simple enough. But it seems as if an action, should secure be unspecified, will default to the

RE: i18n of bean properties/data

2004-10-20 Thread Joe Hertz
1) bean:message is already smart enough to do what you want, so I don't see the necessity of making bean:write locale sensitive. You get the right text from some place, and if it's the property file, you already have what you need. 2) I think there is an existing feature request in BugZilla to

RE: [slight OT] SSLExt default behavior

2004-10-20 Thread Joe Hertz
,any,false setting as you desire. Unless, of course, I'm pointing you to the wrong default variable's name. :) I hope these two simple ideas for a solution help. Please let me know. Regards, David -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Wednesday

RE: validation question

2004-10-18 Thread Joe Hertz
Joe, do u mean checking the field with validwhen using validation.xml or implement the actionForm.validate() ? I really want to use the basic struts validation framework instead of implementing validate() function to minimize the maintainence cost. You can do it both ways. Use

RE: Help ! Question regarding Action and Form Bean(trouble remains )!

2004-10-17 Thread Joe Hertz
--- Joe Hertz [EMAIL PROTECTED] wrote: What you want is for A1 to forward to J2. Not A2. J2 will display and then submit F2 to A2. Forwarding from one action to another is almost always bad (Okay, I admit that I've done it in some cases where I *know* the Action won't ever care about

RE: Help ! Question regarding Action and Form Bean!

2004-10-16 Thread Joe Hertz
It would help if you described this in more detail. I hope this explains it for you. If you have a JSP that submits a form using html:form, you have to have that action associated to that form, otherwise you will get an exception when that JSP is loaded. If you have a JSP that wants to display

RE: Help ! Question regarding Action and Form Bean(in detail )!

2004-10-16 Thread Joe Hertz
associate f1, and forward to another action a2, a2 associate with f2. But the server always says no getter mathod for the checkbox. But there is a getter method in form bean f2. Any help will be appreciated! tong --- Joe Hertz [EMAIL PROTECTED] wrote: It would help if you described

RE: The Type of a Form Property is of org.apache.struts.upload.FormFile

2004-10-15 Thread Joe Hertz
From: Caroline Jen A property in my form, 'theFile',is of the org.apache.struts.upload.FormFile type. In my struts-config.xml file, do I still give a java.lang.String type: Nope. You said it yourself. Since it's a FormFile in your form, you declare it as a FormFile in the form. :-) and

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Joe Hertz
I'll add my 2 p/cents/yen to this one- I'm in the outside of the WebApp's file system crowd (a directory on the same level with WebApp's since Tomcat doesn't know anything else. I could make a link if I had to to some other place more convenient. So unless the server allows for a /../ in a

i18n and nbsp;

2004-10-13 Thread Joe Hertz
I have a number of property values that will be internationalized and need non-breaking spaces between each word in them. I could put nbsp; into each space, but that 1) is going to confuse my native language translators who know nothing of HTML. 2 words in english could be 3 in language-x). 2)

RE: i18n and nbsp;

2004-10-13 Thread Joe Hertz
interesting that I'm sure I've to be missing something. Could you please be a little bit more illustrative? Thanx, Freddy. -Mensaje original- De: Joe Hertz [mailto:[EMAIL PROTECTED] Enviado el: jueves, 14 de octubre de 2004 0:12 Para: 'Struts Users Mailing List' Asunto: i18n and nbsp; I

RE: i18n and nbsp;

2004-10-13 Thread Joe Hertz
I heard that support for this was dicey. Is that not the case? Could you use the CSS rule .myStyleClass{ white-space: nowrap } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

html:link and multiple params on paging

2004-10-12 Thread Joe Hertz
The Pager taglib looks real nice for search results that are generated by request query params e.g. http://hostname/MySearchAction.do?param1=2param2=ABCetcetc So I figure, use the html:link tag's paramId, paramName, paramProperty attributes, but you can only use these for one parameter right?

RE: Presentation of the Validation Warning Messages

2004-09-24 Thread Joe Hertz
Youre probably validating the action each time in. Guessing that the validations flunk because fields werent filled in (how could they be? it's a new screen!). I have an action that goes to the screen specifically that doesn't do validation. The Submit action for it does the validation. You can

RE: How to treat optional dates?

2004-09-16 Thread Joe Hertz
Currently I'm storing un-entered optional dates as 1/1/1970. When I come to display an optional date field on a form, I need to decide whether to display a formatted date or a blank (by comparing the date to 1/1/1970). Surely there's a better way? What's wrong with storing null for an

RE: Making a file available?

2004-09-16 Thread Joe Hertz
Absolutely. You have access to all of the response object methods you would in a servlet to do this with. Set the correct content type and content length headers and spit it to the outputstream. Return a null findForward. I've done this with pdf files, (and this week I asked on this list about

RE: Making a file available?

2004-09-16 Thread Joe Hertz
More or less. Note that you can set the response headers with methods of the response object. Far safer. The example Niall posted does this. So, you mean something like this? public class FileXferAction extends Action { public ActionForward execute( ActionMapping actionMapping,

Protecting files question

2004-09-12 Thread Joe Hertz
This has probably been asked before. Apologies if so, I didn't see anything close enough. This exact scenario is a bit different and more complicated than this, but if this problem can be solved, I can work out the rest. Say I want people to upload images using html:file, and have implemented

RE: Protecting files question

2004-09-12 Thread Joe Hertz
Okay, the action attribute was actually the obvious choice (matching the same attribute on the link tag). So how does one do this? -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Sunday, September 12, 2004 6:56 PM To: 'Struts Users Mailing List' Subject

RE: Protecting files question

2004-09-12 Thread Joe Hertz
RequestProcessor. Hope this help you, João On Sun, 12 Sep 2004 18:56:13 -0400, Joe Hertz [EMAIL PROTECTED] wrote: This has probably been asked before. Apologies if so, I didn't see anything close enough. This exact scenario is a bit different and more complicated than

  1   2   >