Spring MVC form handling tutorial

Let us discuss spring mvc form handling example in eclipse. Example Explanation: Use http://localhost:8080/SpringMVCExample5/student url to start the application. A request for respective resource will generate. Request will be handled by DispatcherServlet. It delegates the request to the FormHandlingController controller. The LoginController controller resolve the request with help of RequestMapping annotation, executes the specific functionality … Read more

Spring mvc login tutorial

Let us discuss spring mvc login example in eclipse. Example Explanation: Use http://localhost:8080/SpringMVCExample4/ url to start the application. Enter username “jai” and password “123”. Click on login button. Request will be handled by DispatcherServlet. It delegates the request to the LoginController controller. The LoginController controller resolve the request with help of RequestMapping annotation, executes the … Read more

Spring MVC multiple controller tutorial

Let us discuss spring mvc multiple controller example in eclipse. Example Explanation: Use http://localhost:8080/SpringMVCExample3/ url to start the application. When you click on any link, a request for respective resource will generate. Request will be handled by DispatcherServlet. The DispatcherServlet choose the controller with the help of HandlerMapping. It delegates the request to the specified … Read more

Spring MVC hello world tutorial

Let us discuss spring mvc hello world example in eclipse. Example Explanation: Use http://localhost:8080/SpringMVCExample1/ url to start the application. When you click on “Say Hello” link, a request for sayHello.html will generate. Request will be handled by DispatcherServlet. It delegates the request to the HelloController controller. The HelloController controller resolve the request with help of … Read more

Spring MVC configuration file

web.xml file: The web.xml file contains the entry of DispatcherServlet for handling the requests. Keep the web.xml file in WebContent/WEB-INF directory of your application. Spring framework first initialize the DispatcherServlet and then load the application context from file [servlet-name]-servlet.xml in WebContent/WEB-INF directory. Example: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">   <servlet> <servlet-name>HelloWorld</servlet-name> … Read more

Spring MVC framework tutorial

Spring mvc framework provides the facility to build flexible and loosely coupled web applications. MVC stands for Model-View-Controller design pattern which separates the business logic, presentation logic and navigation logic. Where: Model: is responsible for encapsulating the application data (POJO). View: is responsible for rendering the model data. Controller: is responsible for receiving the user … Read more

JSF selectbooleancheckbox html tag

JSF h:selectBooleanCheckbox tag is used to render a single HTML input element of the type “checkbox”. JSF tag: <h:selectBooleanCheckbox value="Select Me" /><h:selectBooleanCheckbox value="Select Me" /> Rendered HTML tag: <input type=” checkbox” name="j_idt6:j_idt8 value="Select Me" /><input type=” checkbox” name="j_idt6:j_idt8 value="Select Me" /> Attributes of h:selectBooleanCheckbox tag. Attribute Description id id for the tag binding Reference to … Read more

Categories JSF

jsf hidden input tag

JSF h:inputHidden tag is used to render a HTML hidden field. JSF tag: <h:inputHidden value="Hello World" id="hiddenField" /><h:inputHidden value="Hello World" id="hiddenField" /> Rendered HTML tag: <input id="jsfForm:hiddenField" name="jsfForm:hiddenField" type="hidden" value="Hello World" /><input id="jsfForm:hiddenField" name="jsfForm:hiddenField" type="hidden" value="Hello World" /> Attributes of h:inputHidden tag. Attribute Description id id for the tag binding Reference to the component used … Read more

Categories JSF

jaxb tutorial pdf

Jaxb tutorial pdf. Jaxb example pdf. Jaxb tutorial in java pdf. Jaxb complete tutorial pdf download. Learn JAXB tutorial java for beginners with examples in eclipse online. We explained every topic with appropriate example. We are providing JAXB tutorials step by step in eclipse for Basics, marshalling, unmarshalling and more.   Download all Java JAXB … Read more

Javascript Switch Statement

A Javascript switch statement is used to execute a block of statements based on the switch expression value. It is like an if else if statement. Syntax: switch(expression){ case value1: //Javascript block of statements break; case value2: //Javascript block of statements break; … default: //Javascript block of statements break; } JavaScript Switch Statement Example: <html> … Read more