Skip to content

Instantly share code, notes, and snippets.

View techjawab's full-sized avatar

Abhishek Mitra techjawab

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>SiteMeshDynamicMenu</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<?xml version="1.0" encoding="UTF-8"?>
<decorators defaultdir="/WEB-INF/decorators">
<decorator defaultdir="/WEB-INF/decorators" name="main" page="main.jsp">
<pattern>/*</pattern>
</decorator>
</decorators>
<%@ page import="java.util.*" %>
<%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<decorator:usePage id="thePage" />
<% String pageName = thePage.getProperty("meta.currentPage");%>
<head>
<title>
Abhishek Mitra - <decorator:title default="SiteMesh Dynamic Menu Example" />
</title>
<link href="<%=request.getContextPath()%>/css/global.css" rel="stylesheet" type="text/css">
<decorator:head />
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" 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">
<display-name>Spring2MultiActionController</display-name>
<servlet>
<servlet-name>DemoApp</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="mappings">
<props>
package com.techjawab.spring.s2mac.controllers;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Welcome to Spring 2.0 - MultiActionController Example</title>
</head>
<body>
<%
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Spring2MultiActionController - TechJawab.com</title>
</head>
<body>
@techjawab
techjawab / EmpSal.java
Created April 30, 2013 10:35
EmpSal Pojo Source-code
package com.egi.demo.employee;
public class EmpSal {
private Double FixedSal;
private Double VariableSal;
private Double CTC;
EmpSal(){
FixedSal = 0.0;
@techjawab
techjawab / ICalcCTCWebService.java
Created April 30, 2013 10:38
WebService Interface
package com.egi.demo.webservice;
import javax.jws.WebParam;
import javax.jws.WebService;
import com.egi.demo.employee.EmpSal;
@WebService
public interface ICalcCTCWebService {
public EmpSal calcCTC(@WebParam(name = "empsal")EmpSal empsal);