Skip to content

Commit 8e79d2d

Browse files
Ranga Rao KaranamRanga Rao Karanam
Ranga Rao Karanam
authored and
Ranga Rao Karanam
committed
updating git headings
1 parent d2a6ae5 commit 8e79d2d

29 files changed

+53
-53
lines changed

Exercises-2.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#Spring MVC Exercises
22

3-
##Read Documentation
3+
## Read Documentation
44
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html
55

6-
##Try a Few Spring Exercies From the Guide
6+
## Try a Few Spring Exercies From the Guide
77
https://spring.io/guides
88

9-
##Setup Showcase Application
9+
## Setup Showcase Application
1010
https://github.com/spring-projects/spring-mvc-showcase
1111

12-
##Try using the Spring Initializr
12+
## Try using the Spring Initializr
1313
https://start.spring.io

Exercises.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#Spring MVC Exercises
22

3-
##Read Documentation
3+
## Read Documentation
44
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html
55

6-
##Try a Few Spring Exercies From the Guide
6+
## Try a Few Spring Exercies From the Guide
77
https://spring.io/guides
88

9-
##Setup Showcase Application
9+
## Setup Showcase Application
1010
https://github.com/spring-projects/spring-mvc-showcase
1111

12-
##Try using the Spring Initializr
12+
## Try using the Spring Initializr
1313
https://start.spring.io

SomeTheory.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
#Complete Reference :
22
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html
33

4-
##Architecture Diagram
4+
## Architecture Diagram
55
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/images/mvc.png
66

7-
##Dispatcher Servlet
7+
## Dispatcher Servlet
88
- Dispatches requests to handlers, with configurable handler mappings
99
- View Resolution
1010
- Locale, time zone and theme resolution
1111
- Support for uploading files.
1212

13-
##Flexible Data Binding
13+
## Flexible Data Binding
1414
- Any POJO can be used as a command or form backing object
1515
- Highly Flexible Data Binding. Databinding Errors do not throw exceptions. They only cause validation errors.
1616

17-
##Flexible View Resolution
17+
## Flexible View Resolution
1818
Controller can either
1919
- Return a View
2020
- Return a View or Model
2121
- Write to response stream directly
2222

23-
##Flexible Controller Methods
23+
## Flexible Controller Methods
2424

25-
###Accepting Variety of Parameters
25+
### Accepting Variety of Parameters
2626
- Request or response objects : ServletRequest or HttpServletRequest.
2727
- Session object (Servlet API): of type HttpSession.
2828
- Other Options: http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html#mvc-ann-methods
2929

30-
###Support Multiple Return Types
30+
### Support Multiple Return Types
3131
- A ModelAndView object
3232
- A Model object
3333

3434
##@ModelAttribute
35-
###Methods
35+
### Methods
3636
- Indicates the purpose of that method is to add one or more model attributes.
3737
- Invoked before @RequestMapping methods.
3838
- Used to fill the model with commonly needed attributes
3939
- Drop down values for form
4040
- Command or Form Backing Objects
4141

42-
###Method Argument
42+
### Method Argument
4343
- To automatically add/retrieve value from Model
4444
- It can be stored in session as well using @SessionAttributes.
4545

4646

47-
##Validation
48-
###Automatic
47+
## Validation
48+
### Automatic
4949
@Valid annotation
50-
###Customized
50+
### Customized
5151
You can also invoke validation using your own custom validator
5252
```
5353
@RequestMapping(path = "/something", method = RequestMethod.POST)
@@ -65,6 +65,6 @@ public String processSubmit(@ModelAttribute("todo") Pet Todo, BindingResult resu
6565
- Can contain @ExceptionHandler, @InitBinder, and @ModelAttribute annotated methods
6666
- These methods will apply to @RequestMapping methods across all controller hierarchies
6767

68-
##Hibernate Validator : JSR 349 Reference Implementation
68+
## Hibernate Validator : JSR 349 Reference Implementation
6969
For more information refer http://docs.jboss.org/hibernate/validator/5.0/reference/en-US/html_single/#validator-defineconstraints-spec
7070

Step11.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
##Objective : Configure Spring MVC
1+
## Objective : Configure Spring MVC
22

33
Before we start with the Flows, we need to configure application to use Spring MVC
44
- Lets do a little bit of Refactoring. Mini Step 1: Rename package webapp to com.in28minutes.jee
55
- We need Spring MVC Framework and its dependencies. Mini Step 2 : Add required jars to the project
66
- Spring MVC uses Front Controller Pattern -> Dispatcher Servlet. Mini Step 3 : Add Dispatcher Servlet to web.xml
77
- DispatcherServlet needs an Spring Application Context to launch. We will create an xml (/WEB-INF/todo-servlet.xml). Mini Step 4: Add Spring Context
88

9-
##Useful Snippets
9+
## Useful Snippets
1010
pom.xml
1111
```
1212
<dependency>
@@ -53,7 +53,7 @@ todo-servlet.xml
5353
```
5454

5555

56-
##Flows:
56+
## Flows:
5757
- Flow 1. Login Servlet -> GET -> login.jsp
5858
- Flow 2. Login Servlet -> POST (Success) -> welcome.jsp
5959
- Flow 3. Login Servlet -> POST (Failure) -> login.jsp (with error message)

Step13.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##Redirect to Login JSP
1+
## Redirect to Login JSP
22
- View Resolver in todo-servlet.xml
33
- Update LoginController
44
- Remove @ResponseBody

Step14.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
##What we want to do:
1+
## What we want to do:
22
- Understand importance of DispatcherServlet.
33
- Add Logging Framework Log4j to understand the flow much more.
44

5-
##Spring MVC Request Flow
5+
## Spring MVC Request Flow
66
- DispatcherServlet receives HTTP Request.
77
- DispatcherServlet identifies the right Controller based on the URL.
88
- Controller executes Business Logic.

Step15.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Show userid and password on the welcome page.
33
- We will not use Spring Security for now.
44
- ModelMap model

Step16.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Use LoginService to validate userid and password.
33
- Remove all the old controller code and lets use only Spring MVC here on.
44
- For now : We are not using Spring Autowiring for LoginService.

Step17.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Learn about Spring Auto-wiring and Dependency Management.
33
- Use Auto-wiring to wire LoginService.
44
- @Autowired, @Service

Step18.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
##What we will do:
1+
## What we will do:
22
- Create TodoController and list-todos.jsp
33
- Make TodoService a @Service and inject it
44

5-
###Pending for Next Step
5+
### Pending for Next Step
66
- ${name} is not available in list-todos.jsp
77
- in28Minutes is hardcoded in TodoController
88

Step19.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
##What we will do:
2-
- Lets discuss about Architecture of web applications
1+
## What we will do:
2+
- Lets discuss about Architecture of web applications

Step20.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
##What we will do:
2-
- Lets discuss about Spring
1+
## What we will do:
2+
- Lets discuss about Spring

Step21.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Session vs Model vs Request.
33
- Be cautious about what you use Session for.
44
- @SessionAttributes("name") and how it works?

Step22.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Add Facility to add New Todo
33
- todo.jsp
44
- Importance of redirect:/list-todos

Step23.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Display Todos in a table using JSTL Tags
33
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
44
- Add Dependency for jstl

Step24.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Add bootstrap to give basic formatting to the page : We use bootstrap classes container,table and table-striped.
33
- We will use webjars
44

Step25.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Add functionality to delete a todo
33

44
## Useful Snippets

Step26.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
In this short step:
33
- Format Add Todo Page
44
- Add Html5 Form Validations

Step27.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Lets use a command bean for Todo
33
- Add Validations
44
- The JSR 303 and JSR 349 defines specification for the Bean Validation API (version 1.0 and 1.1, respectively), and Hibernate Validator is the reference implementation.

Step28.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Add Update Functionality
33
- Lets Use the Same JSP as earlier.
44

Step29.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Make real use of the Target Date Field
33
- initBinder method
44

Step30.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Add a navigation bar
33
- Use JSP Fragments
44
- Exercise : Align the login & welcome pages.

Step31.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Prepare for Using Spring Security
33
- Remove All the Login Related Functionality
44
- Make Welcome the default page - with some hardcoding to start with.

Step32.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Get Setup for Spring Security
33

44

Step33.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Remove Hardcoding of User Name
33
- Remove LoginService
44
- Rename LoginController to WelcomeController

Step34.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Basic Exception Handling
33
- Exception Handling is a cross cutting concern
44
- Do not handle exceptions in Controllers or Services, if you cannot add value to them.

Step35.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Let's i18n.
33
- Exercise : Internationalize Rest of the Stuff
44
- http://localhost:8080/list-todos?language=en

Step36.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- Basic Spring Rest Services.
33

44
## Useful Snippets

Step37.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##What we will do:
1+
## What we will do:
22
- One More Spring Rest Services.
33
- @PathVariable("id") int id
44
## Useful Snippets

0 commit comments

Comments
 (0)