This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

date validations

 
Devapatla Ramagopal Reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In my application the user selects the ToDate and FromDate fromcombobox.I can able to capture those values as inters in my java program,now i would like to do some validations:
1.ToDate should be less than or equal to CurrentDate.
2.ToDate should be greater than or equal to FromDate.
3.Date Range is limited to 45 days only(parameterized).
I need to develop business rule for the aboue validation.can u give some idea...Thanks.
Ram.
 
Amit Agrawal
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
can you please let me know what is your user interface ? is it html (may be genrated by jsp) or AWT/Swing ?
In case its HTML this would be better to do in javascript or if it is AWT there are methods like before() and after() in Date class..you may use them.
 
Devapatla Ramagopal Reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amit,
thax a lot fo rur reply..
My user interface is HTML(generated by jsp), but the client wants to develop it as business object, anyway i just completed the application.
once again thanx a lot..
Ram.
 
Roger Wang
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for html(jsp) or java UI I know the solution...
but sorry I don't know what is business object,
and how to finished your task as 'business object'?
anyone drop me a line?
thax
BR
 
Devapatla Ramagopal Reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi wang,
thanx for ur reply..
Business object in the sense, we developed these as a EJB component.
Rgds,
ram.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic