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:
You
Hi,
I'm switching from using:
html:errors/
to using:
logic:messagesPresent
ul
html:messages id=error
libean:write name=error//li
/html:messages
/ul
/logic:messagesPresent
I have error messages that span multiple lines. With html:errors, I used br
for the newlines, and all
. Need more time !
Thanks for all your help.
- Charlie
On Saturday 01 February 2003 11:24 pm, you wrote:
Charlie == Charlie Toohey [EMAIL PROTECTED] writes:
Charlie Thanks David. That worked for the value attribute:
Charlie logic:iterate name=aForm property=stringArray
id=aString
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] writes:
Thanks David.
I tried your suggestion although I still have no idea what to
use for the value
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
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]
Subject: html:text tag indexed attribute
Two things regarding using the indexed attribute
resulting indexed request
parameter name. This can get confusing, I know.
-Original Message-
From: Charlie Toohey [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 2:12 PM
To: Struts Users Mailing List
Subject: Re: html:text tag indexed attribute
Thanks. I hope somebody knows
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,
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
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
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
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
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
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
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
PROTECTED]
http://www.phase.ws
-Original Message-
From: Charlie Toohey
[mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 7:28 PM
To: [EMAIL PROTECTED]
Subject: Logging in beans
I would like to log some information in the
Tomcat
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
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
21 matches
Mail list logo