aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Help Needed! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Help Needed!" Watch "Help Needed!" New topic
Author

Help Needed!

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

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, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

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: 9427
    
    2

Hey, but it is not happening that way but?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help Needed!