Check which version spring MVC libraries are you using. If you re using Spring MVC 3 then prefer install Java 7 with tomcat version 7.0.92.
While working on web applications, developers face common server errors and exceptions in java based web application for example java.lang.IllegalArgumentException.
Use the JSONParser methods to parse a response that's returned from a call to an external service that is in JSON format, such as a JSON-encoded response of a Web service callout. Here is the code to parse the JSON string using JAVA: 1 2 3 4 5 6 7 8 9 10 11 12 … Continue reading Parsing JSON Output using JAVA
Flow Diagram of Spring MVC Img Source: TutorialsPoint Purpose of web.xml Until Spring 3.1 the only way to configure the DispatcherServlet was with the WEB-INF/web.xml file. servlet name is dispatcher an instance of DispatcherServlet Class Will be initialized with a parameter named contextConfigLocation which contains the path to the configuration XML load-on-startup is an integer … Continue reading Understanding Spring MVC project setup
Software Requirements Eclipse Mars 2 Java, jdk 1.6 and above Spring 4 jar files(download) Apache Tomcat 7 Step 1: Create a Dynamic Web Project(File>New>Dynamic Web Project) Step 2: Create project folder and packages as shown below Step 3: Add required Spring MVC libs Step 4: Add following code in web.xml Step 5: Add following code … Continue reading Spring MVC Project: Setup