Spring MVC project to get weather of a city that is chosen from dropdown.
Uses hibernate validators to validate the dropdown input selection
Uses JSP and form tag lib for rendering html.
View resolved using viewResolver configured as InternalViewResolver in the servlet config.
WeatherController.java has the business logic, it responds to GET request with a HTMLform and a dropdown for selection of city.
WeatherController.java responds to form SUBMIT, POST request by accessing a open source weather REST API using RESTTemplate and the resulting JSON data is parsed to retrieve relevant attributes and stored in Model object.
City.java - java bean is the form backing object.
-
Notifications
You must be signed in to change notification settings - Fork 0
kanchanna/Assignment
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published