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.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "display format date" Watch "display format date" New topic
Author

display format date

Gabriela Cristian
Greenhorn

Joined: Dec 02, 2008
Posts: 18

Hello
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:

and

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: display format date
 
Similar Threads
How to set TimeStamp in DynaAction Form in Struts
How to set timestamp value in DynaAction form?
<fmt:formatDate question.
formating date in jsp
DatetimePicker problem in struts2