Re: Validation Problems

2003-11-05 Thread Charlie Toohey
I had the same problem. The solution was that my webapp was not using: jakarta-oro.jar which is a regular expression package used by some, but not all, of the validations. - Charlie > Dear Struts users, > > I have done a simple web-app using validator framework. > the JavaScript validations are

Some struts-config.xml data cached ?

2003-10-21 Thread Charlie Toohey
I am experiencing some bizarreness with struts-config.xml changes not taking. I have a form-bean which is of type DynaActionForm. The problem is that when I add new form-property tags to the form-bean, they are not recognized, so I get run-time exceptions when displaying the jsp with that form (

Re: Modifying action input at runtime

2003-03-11 Thread Charlie Toohey
Another solution is what I did, was to specify a servlet as the value of the "input" attribute in struts-config.xml, and then in the servlet I have code which dynamically determines the correct URL for "input" and does a forward to that URL. On Monday 17 February 2003 06:12 am, you wrote: > Yo

html:messages not working for error message with line breaks

2003-02-11 Thread Charlie Toohey
Hi, I'm switching from using: to using: I have error messages that span multiple lines. With html:errors, I used for the newlines, and all was working well --- the error message was displayed on multiple lines. Now, using with instead, the error message is disp

Re: html:text tag "indexed" attribute

2003-02-02 Thread Charlie Toohey
ebruary 2003 11:24 pm, you wrote: > >>>>> "Charlie" == Charlie Toohey <[EMAIL PROTECTED]> writes: > > Charlie> Thanks David. That worked for the value attribute: > Charlie> id="aString" > Charlie> value='<%= aS

Re: html:text tag "indexed" attribute

2003-02-01 Thread Charlie Toohey
tes, because this is a collection of Strings, not beans, and the String objects do NOT have a property. Please help ! I've been trying to get this to work for 2 days now. Thanks, Charlie On Friday 31 January 2003 07:43 pm, you wrote: > > Charlie Toohey <[EMAIL PROTECTED]>

Re: html:text tag "indexed" attribute

2003-01-31 Thread Charlie Toohey
You do have to make sure you have an indexed > setter on your form bean that agrees with your resulting indexed request > parameter name. This can get confusing, I know. > > -Original Message- > From: Charlie Toohey [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 31, 2003

Re: html:text tag "indexed" attribute

2003-01-31 Thread Charlie Toohey
> expression, using Struts-EL), and define an appropriate formbean setter > method (based on the indexed name/property settings). > > -Original Message- > From: Charlie Toohey [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 31, 2003 12:07 PM > To: [EMAIL PROTECTED] >

html:text tag "indexed" attribute

2003-01-31 Thread Charlie Toohey
Two things regarding using the "indexed" attribute of the Struts html:text tag. First, there is a disagreement between the Struts FAQ on indexed properties and the Struts HTML tag docs. The Struts FAQ http://jakarta.apache.org/struts/faqs/indexedprops.html states that setting indexed="true" res

html:file question

2003-01-28 Thread Charlie Toohey
I have a form with a text field for the user to enter a filename. I would like to make this easier for the user by giving them a Browse button, so I thought I would try using html:file instead of html:text. Note, I do not want to upload the contents of a file, but just want the filename, includ

accessing DataSource, webapp design question

2003-01-22 Thread Charlie Toohey
This is more of a design question. I am using Struts and Tomcat, and have set up a JNDI ref-resource to acquire a DataSource for my database, which works fine. All of my value objects use the same database. The question is how to give each value object access to this DataSource. One option wou

commons logging configuration question

2003-01-21 Thread Charlie Toohey
I am trying to use commons logging in my Struts webapp with SimpleLog, and can get it to work, but what I've found does not correspond with the commons logging javadoc documentation when it comes to the commons-logging.properties file. Per the documentation, the default LogFactory implementati

does Struts 1.1b come with log4.properties ?

2003-01-21 Thread Charlie Toohey
I'm planning on using Struts 1.1b and using commons-logging in my webapp. I understand that Struts 1.1 uses commons-logging as well. But I was confused when I found the posting below. It implies that Struts itself comes with a configuration for Log4j. This confuses me because I am under the impres

Instantiating ActionForm to pre-populate

2003-01-17 Thread Charlie Toohey
I was searching around and found a very long thread in the struts-dev mailing list (of which I am not a member) about how to instantiate both ActionForm and DynaActionForm objects in order to pre-populate a form (see below for a snippet of that thread). My questions is, why go to all the troubl

Re: ValidatorActionForm & JavaScript validateXXX() function name

2003-01-14 Thread Charlie Toohey
I'm having the same problem --- did you ever get this resolved ? None of the documentation even indicates that the javascript tag can reference an action path rather than an action name for the formName. It may be that client-side validation only works in conjunction with server-side valiation

Struts data-source vs. Tomcat JNDI registered DataSource

2003-01-03 Thread Charlie Toohey
For those using Struts with Tomcat, Any advantage or difference in using a Struts data source based on the Jakarta Commons DataBase Connection Pool BasicDataSource class, vs. using the Tomcat data source using the Jakarta Commons DBCP and Pool (configuring factory as org.apache.commons.dbcp.BasicD

Handing bean errors in Action class (per Struts Users Guide)

2002-09-11 Thread Charlie Toohey
The Struts User's Guide advocates the following (section 4.2), with respect to how exceptions/errors in beans called by Action classes should be handled by the Action class : "The beans that represent the Model of your system may throw exceptions due to problems accessing databases or other re

Handing bean errors in Action class (per Struts Users Guide)

2002-06-24 Thread Charlie Toohey
The Struts User's Guide advocates the following (section 4.2), with respect to how exceptions/errors in beans called by Action classes should be handled by the Action class : "The beans that represent the Model of your system may throw exceptions due to problems accessing databases or other re

preventing ActionForm reset() from being called

2002-02-26 Thread Charlie Toohey
I have an ActionForm bean that is used for more than one form, as the two forms have many common fields. In the Struts mapping configuration file, I have given it "session" scope, so that it will retain the values entered into one form or the other, and those values will always display when the

Re: Logging in beans

2002-02-26 Thread Charlie Toohey
gt; > and download the 1.2b3 version. This will insure > > > > that you are prepared for > > > > the future changes in log4j and will keep you > > > > from > > > > > > programming with > > > > deprecated code. > > > > > > > &g

Logging in beans

2002-02-25 Thread Charlie Toohey
I would like to log some information in the Tomcat log file from my beans. But I don't want to use the ActionServlet log method, as passing an ActionServlet object as a parameter to a bean would violate the bean philosophy that beans should be completely independent of a web application framew