Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 TypeConverter

 
Nigel King
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to implement a TypeConverter in Struts2.
I have class - Conference - which contains a list of Events and each of these events has a startdate.
The Conference is set in the action.
What I want to do is set up a converter just for this startdate.
If I add

it works okay but that's obviously for all dates.
I think I should be able to add this into a MyAction-conversion.properties file.
How do I specify that I'd like this *only* to be used for my Conference->Event->startDate field.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic