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
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 (
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
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
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
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]>
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
> 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]
>
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
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
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
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
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
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
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
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
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
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
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
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
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
21 matches
Mail list logo