Re: Problems with an inherited getter in a derived bean

2003-06-19 Thread Gareth Andrew
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

Re: [validator] arg0-arg3 elements need name attribute to displaymessage?

2003-06-08 Thread Gareth Andrew
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?

Re: DateUtilities for ActionForms?

2003-06-03 Thread Gareth Andrew
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

Re: DateUtilities for ActionForms?

2003-06-01 Thread Gareth Andrew
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,

Re: DateUtilities for ActionForms?

2003-06-01 Thread Gareth Andrew
()?) 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

Re: DateUtilities for ActionForms?

2003-06-01 Thread Gareth Andrew
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

Re: Can I have more than one properties file and retrieve from thembased on the context

2003-05-29 Thread Gareth Andrew
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.

Re: The Action, the bean and the JSP

2003-05-27 Thread Gareth Andrew
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

Re: Loosing Objects in the Request.

2003-04-04 Thread Gareth Andrew
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

Re: Where to catch/throw Exceptions in Struts Tiered Architecture

2003-04-03 Thread Gareth Andrew
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

Re: HELP: Dispaly Date in a JSP that used Tiles

2003-04-02 Thread Gareth Andrew
://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

Re: HELP: Dispaly Date in a JSP that used Tiles

2003-04-02 Thread Gareth Andrew
? 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

Re: messages into struts 1.1

2003-04-02 Thread Gareth Andrew
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

Re: HELP: Dispaly Date in a JSP that used Tiles

2003-04-02 Thread Gareth Andrew
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

Re: No action instance for path your path name could be created

2003-04-02 Thread Gareth Andrew
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

Re: HELP: Dispaly Date in a JSP that used Tiles

2003-04-02 Thread Gareth Andrew
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

Re: No action instance for path your path name could be created

2003-04-02 Thread Gareth Andrew
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

RE: HELP: Dispaly Date in a JSP that used Tiles

2003-04-01 Thread Gareth Andrew
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