| Author |
Help Needed!
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
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?
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
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
Joined: Feb 06, 2007
Posts: 39
|
|
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
Joined: Sep 26, 2006
Posts: 8795
|
|
|
Hey, but it is not happening that way but?
|
 |
 |
|
|
subject: Help Needed!
|
|
|