struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freddy Villalba A." <fvilla...@pericless.com>
Subject RE: Using html:text with java.util.Date property
Date Fri, 20 May 2005 16:19:04 GMT
Hello Nestor,

Personally, I consider it a good practice - and simpler - to handle dates as
String objects (in the presentation layer, that is). This will save you lots
of server-side-headaches and ease your way, especially when you have to face
internationalization issues (for instance, different date formats).
Formatting your data on the server's side will save you some time,
especially when you present the same data in several places. The only
important implication I'd see with this approach is the impact that it could
have on client-side components that depend on this data (such as calendars),
but then, if those also handle i18n issues, then there shouldn't be such
impact (or it should be minimum).

My humble opinion,
Freddy.


-----Mensaje original-----
De: Néstor Boscán [mailto:nestor.boscan@tcs.com.ve]
Enviado el: viernes, 20 de mayo de 2005 16:52
Para: 'Struts Users Mailing List'
Asunto: Using html:text with java.util.Date property


Hi

I'm trying to use the html:text tag with date properties and I'm getting
java.lang.IllegalArgumentException: type mismatch. Any ideas?

Regards,

Néstor Boscán




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message