Hi,
Just for fun I set up a little test app. It demonstrates that the bug
is definitely in Common Beanutils. Normal Java relfection can call a
method derived from a protected nested class without problems. The
problem seems to be in o/a/c/b/MethodUtils.java : line 442ish where
Beanutils
David Graham wrote:
I'm glad someone is doing some work on the validator. And speaking of
that,
I will most likely be using the validator extensively pretty soon in
a new
application, which may result in some contributions. Are there
specific bugs
or feature requests where help is needed?
java.util.Date exists simply to *store* dates, the calendar class and
the dateFormat class exist to *manipulate* dates. java.sql.Date exists
because SQL has different conventions for storing a date than the JVM.
The Java API docs for java.util.Date explain the deprecated methods.
Prior to JDK
Mick,
Have you tried using the BeanUtils converters.
From the docs:
*org.apache.commons.beanutils.locale.converters.DateLocaleConverter
*
Standard |LocaleConverter| cid:[EMAIL PROTECTED]
implementation that converts an incoming locale-sensitive String into a
|java.util.Date| object,
()?) to reformat the string.
Gareth
Mick Knutson wrote:
I looked at the javadocs, but I just can't seem to understand how to
use that. I looked at the struts source, but that is never used there.
Does anyone have a working example of this?
---
Thanks...
Mick Knutson
---
From: Gareth Andrew [EMAIL
Message-
From: Gareth Andrew [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 1:59 PM
To: Struts Users Mailing List
Subject: Re: DateUtilities for ActionForms?
If you want to use Locale aware conversions perhaps you should be using
LocaleBeanUtils rather than BeanUtils. You should
Hi,
Yup, you can have as many message-reosurces entries in
struts-conffig.xml as you want (each with a different 'key' attribute),
then in bean:message you can specify which properties file you want
with the attribute bundle.
Torsten Schlabach wrote:
Dear List,
I am working with Struts for some weeks now, but there are just some
concepts that don't become clear to me neither from the docs nor from all that
tutorials. They all stop where my questions start. So first of all, I would like
to ask the list for
When faced with similar problems. I forward to a quick and dirty jsp
page to print out everything in the request. This sometimes can provide
the piece of magic inspiration thats solves the problem.
Don't know if it will help but here it is:
Begin request.jsp
IMO, catch the database exception in user, then throw a new (wrapped)
exception, catch it in UserAction and throw a new exception, and use
struts decalritive exception handling features to handle it. This
avoids undue coupling between UserAction, User and Database.
Gareth.
Navjot Singh
://www.thomson.net/
Original Message-
From: Gareth Andrew [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 00:49
To: [EMAIL PROTECTED]
Subject: RE: HELP: Dispaly Date in a JSP that used Tiles
I think your problem has nothing to do with tiles or jsp. You just need
to write the output to a control
?
As of February 12th, 2003 Thomson unifies its email addresses on a worldwide
basis.
Please note my new email address: [EMAIL PROTECTED]
http://www.thomson.net/
Original Message-
From: Gareth Andrew [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003
I've just had a similar problem, recently. The docs seem to be a bit
misleading (or perhaps the docs are right and theres a bug somewhere?).
html:messages doesn't seem to do any actual writing, its just a form
of iterator that loops through the specified messages and puts them in a
page-scope
It's about now I have to admit that my Javascript/DHTML knowledge is
about 4 years out of date. I have no idea how many browsers that this
will work on, but it does seem to work on IE6.0 and Mozilla 1.3:
In your script replace:
document.myForm.dateControl.value=time;
with
Could it be that your action class is in package:
package src.ginsu.strutsApp;
and in your struts-config.xml you are trying to load
type=ginsu.strutsApp.AddFileAction
ie. package ginsu.strutsApp
Dan Tarkenton wrote:
Hello all. I apologize for the size of this message,
but I thought it
I'm not sure what you mean. Perhaps if you e-mail me your code I could
take a quick look at it.
Gareth.
Heligon Sandra wrote:
Your Javascript/DHTML knowledge knowledge is very good, your code
allows to display the date like a text and not like a field that
can be edited.
But I have yet a
Max, I'm curious as to whats wrong with using mixed case (camelCase)
package names. Obviously its better to remove any redundant words from
package (or class, or object) names, but surely the advising someone to
avoid mixed case package names is a little over prescriptive.
Gareth.
Your
I think your problem has nothing to do with tiles or jsp. You just need
to write the output to a control instead of trying to write to the page.
If the browser were to allow your code to work as you have written it
you would actually get a list of times.
The following code should work - it
18 matches
Mail list logo