Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help Needed!

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have the following scenario. A user enters the date in 12 hour format in a jsp page or an html page and on hitting submit, I get those values in a controller servlet and do some validation which will be implemented in the business class. I want to use MVC as explained. Any ideas on how it can be done??? I have the logic for validation, but bemused on how to make my controller talk to business class?? Do I instantiate the business class in my controller and pass the request params from the html as arguments to the business class object??? or how to go about doing this?? Please help guys?
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I tried entering the time as 12:30:31, I'm getting the values in the request parameters like this...it.e, it gets converted like this format &hourofday=12%3A30%3A34??? the : gets 3A30....because of this my app gets screwed up...
 
S Vilish
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Jyoti,

As far as i know whatever you put in html text box is received in the same way through getParameter method. e.g. 12:45:56 will be received as 12:45:56

Vilish
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, but it is not happening that way but?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic