This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Is it possible to specify something like this <bean:write name="entity" property="kokiStart" format='MM/dd/yyyy' /> where "kokiStart" is string from "entity" bean. I want to get output like 12/31/2005 If this is not possible then is there any way by which I can convert any string to the format I want say date or currency. I am using struts 1.1
For the format of Date, I have same pbm as you, I can't find any way to solve it using struts's function. So I write my own DateUtil class to convert string to date, date to String these functions, so can used by the whole project.
And for the currency format, you can check with java API, I use this in JSP, note that the currency will change with your computer currency setting: