This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes display format date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "display format date" Watch "display format date" New topic

display format date

Gabriela Cristian

Joined: Dec 02, 2008
Posts: 18

i use display tag and want to format the date:

This works does not work in some pages...which is wierd. But when i wanna format the date in this case:


i don't get any response... what am i doing wrong?
Thank you
Aditya Keyal
Ranch Hand

Joined: Dec 01, 2008
Posts: 71
The reason you do not get any response when you use <html:text is because ><html:text does NOT contain any attribute called format. To display a date in html:text you have to set the correct date string in the request/form and then display it correspondingly.

The display:column issue needs to be checked. Can you check the server logs when the formatting does not work.>

- Aditya Webservices Blog
subject: display format date