• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there any placeholder in POJO?  RSS feed

 
Vierda Mila
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

is there any way of using template for String in POJO?? I mean this template will act as placeholder and we can change it dinamically.
notice that I'm not talking about JSP here.

Thank you for any information.

reagards,
-Vierda Mila-
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by place holder? A plain old Java object is just that, so you can really write it however you like.
 
Jason Irwin
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SCJP 5

Do you mean formatted Strings? I am sure that is on the SCJP5 syllabus. Or you could a static class that reads in come kind of config file/database. Then in the POJO's constructor, ask the static for the default String value.

Really depends on what you are trying to do I guess.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!