This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm using bean:write in my jsp to output a date and it is not working. No matter what I do the Date gets output in the default Date.toString() format. If I remove the format key from the Application Resources file the behavior does not change. I verified that Struts (1.2) is using this Application Resources file by removing a bean:message an watching the application throw an exception.
Originally posted by Matt Connors: I verified that Struts (1.2) is using this Application Resources file by removing a bean:message an watching the application throw an exception.
Do you mean that you removed the key from ApplicationResources that a particular bean:message was referencing?
A good workman is known by his tools.
Joined: Sep 08, 2004
The problem is that I cannot get bean:write to format a Date object for me. No matter what I do the Date continues to get displayed in the default Date.toString() format.
My first idea was to prove the Application Resources file is being accessed. I did that by removing a format key for a bean:message and when I ran the application and an exception was thrown. So I proved that the Application Resources file is being used.
Unfortunately I still can't get bean:write to use a format key for my Date object.
Is there a specification somewhere that indicates what the valid format for a Date object format key is?
Any suggestions on how to further diagnose the problem?