- [1;8]U[10;14]
- GSON : library of google to jsonize an object : downlaod GSON
- servlet-api : library how provide the HTTP's object : download servlet-api
<web-app >
<servlet>
<servlet-name>FrontServlet</servlet-name>
<servlet-class>etu1899.framework.servlet.FrontServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FrontServlet</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app>
- Annotaions :
- Url(link = "link.do") : SCOPE => METHOD
- Auth(profile = "profile who can access to the method") : SCOPE => METHOD
- Scope(value = "singleton/global") //the scope of the class// : SCOPE : CLASS
- ParameterName(value = "name of the parameter") //the name of the parameter// : SCOPE : PARAMETER
- Contraints :
- all method annoted by Url ,if have a paremeter,must be annoted : @ParameterName("the parameter name")
- if you want to have access to httpSession in model , you can already put a Field public HashMap<String,Ovject> session