Project

General

Profile

Programming Guide - Web Services (RESTful) » restful-servlet.xml

chin-yeh, 12/02/2011 04:32 PM

 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>POC - Prototype - restful-servlet.xml - Collaboration Platform for eCosway</title>
<meta name="description" content="Redmine" />
<meta name="keywords" content="issue,bug,tracker" />
<link href="/redmine/stylesheets/application.css?1277867670" media="all" rel="stylesheet" type="text/css" />
<script src="/redmine/javascripts/prototype.js?1235214290" type="text/javascript"></script>
<script src="/redmine/javascripts/effects.js?1235214290" type="text/javascript"></script>
<script src="/redmine/javascripts/dragdrop.js?1235214290" type="text/javascript"></script>
<script src="/redmine/javascripts/controls.js?1235214290" type="text/javascript"></script>
<script src="/redmine/javascripts/application.js?1276977103" type="text/javascript"></script>
<link href="/redmine/stylesheets/jstoolbar.css?1221671885" media="screen" rel="stylesheet" type="text/css" />
<!--[if IE]>
<style type="text/css">
* html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
body {behavior: url(/redmine/stylesheets/csshover.htc?1198879113);}
</style>
<![endif]-->

<!-- page specific tags -->
<link href="/redmine/stylesheets/scm.css?1269775848" media="screen" rel="stylesheet" type="text/css" /></head>
<body>
<div id="wrapper">
<div id="wrapper2">
<div id="top-menu">
<div id="account">
<ul><li><a href="/redmine/my/account" class="my-account">My account</a></li>
<li><a href="/redmine/logout" class="logout">Sign out</a></li></ul> </div>
<div id="loggedas">Logged in as <a href="/redmine/users/3">chinyeh</a></div>
<ul><li><a href="/redmine/" class="home">Home</a></li>
<li><a href="/redmine/my/page" class="my-page">My page</a></li>
<li><a href="/redmine/projects" class="projects">Projects</a></li>
<li><a href="http://www.redmine.org/guide" class="help">Help</a></li></ul></div>
<div id="header">
<div id="quick-search">
<form action="/redmine/search/index/poc" method="get">
<a href="/redmine/search/index/poc" accesskey="4">Search</a>:
<input accesskey="f" class="small" id="q" name="q" size="20" type="text" />
</form>
<select onchange="if (this.value != '') { window.location = this.value; }"><option value=''>Jump to a project...</option><option value="" disabled="disabled">---</option><option value="/redmine/projects/avalara?jump=attachments">Avalara</option><option value="/redmine/projects/avatax?jump=attachments">&nbsp;&nbsp;&#187; AvaTax - Sales Tax</option><option value="/redmine/projects/bugzilla?jump=attachments">BugZilla</option><option value="/redmine/projects/general-info?jump=attachments">General Info</option><option value="/redmine/projects/offline-batch?jump=attachments">Offline Batch</option><option value="/redmine/projects/batch-poc?jump=attachments">&nbsp;&nbsp;&#187; POC</option><option value="/redmine/projects/ord-migration?jump=attachments">Order ID migration</option><option value="/redmine/projects/payment-gateway?jump=attachments">Payment Gateway</option><option value="/redmine/projects/authorize-net?jump=attachments">&nbsp;&nbsp;&#187; Authorize.net</option><option value="/redmine/projects/authorize-pos?jump=attachments">&nbsp;&nbsp;&nbsp;&nbsp;&#187; POS</option><option value="/redmine/projects/pg-easypay?jump=attachments">&nbsp;&nbsp;&#187; Easypay</option><option value="/redmine/projects/gc-platform?jump=attachments">&nbsp;&nbsp;&#187; GlobalCollect</option><option value="/redmine/projects/maxconnect-pg?jump=attachments">&nbsp;&nbsp;&#187; MAXCONNECT Integration</option><option value="/redmine/projects/migs?jump=attachments">&nbsp;&nbsp;&#187; MiGS - Payment Processor</option><option value="/redmine/projects/mpay-pg?jump=attachments">&nbsp;&nbsp;&#187; mPay</option><option value="/redmine/projects/pg-nmi?jump=attachments">&nbsp;&nbsp;&#187; NMI - Three Step Redirect</option><option value="/redmine/projects/messaging-system?jump=attachments">QConnector</option><option selected="selected" value="/redmine/projects/poc?jump=attachments">&nbsp;&nbsp;&#187; POC - Prototype</option><option value="/redmine/projects/serv-mon-sys?jump=attachments">Service Monitoring System</option><option value="/redmine/projects/taiwan-server?jump=attachments">Taiwan Services</option><option value="/redmine/projects/dp-client?jump=attachments">&nbsp;&nbsp;&#187; DP Client</option><option value="/redmine/projects/taiwan-sp?jump=attachments">&nbsp;&nbsp;&#187; SP Client</option><option value="/redmine/projects/vp-client?jump=attachments">&nbsp;&nbsp;&#187; VP Client</option></select>
</div>
<h1><a href="/redmine/projects/messaging-system?jump=attachments" class="root">QConnector</a> &#187; POC - Prototype</h1>
<div id="main-menu">
<ul><li><a href="/redmine/projects/poc" class="overview">Overview</a></li>
<li><a href="/redmine/projects/poc/activity" class="activity">Activity</a></li>
<li><a href="/redmine/projects/poc/roadmap" class="roadmap">Roadmap</a></li>
<li><a href="/redmine/projects/poc/issues" class="issues">Issues</a></li>
<li><a href="/redmine/projects/poc/issues/new" accesskey="7" class="new-issue">New issue</a></li>
<li><a href="/redmine/projects/poc/news" class="news">News</a></li>
<li><a href="/redmine/projects/poc/documents" class="documents">Documents</a></li>
<li><a href="/redmine/projects/poc/wiki" class="wiki">Wiki</a></li>
<li><a href="/redmine/projects/poc/boards" class="boards">Forums</a></li>
<li><a href="/redmine/projects/poc/files" class="files">Files</a></li>
<li><a href="/redmine/projects/poc/settings" class="settings">Settings</a></li></ul>
</div>
</div>

<div class="nosidebar" id="main">
<div id="sidebar">
</div>
<div id="content">
<h2>restful-servlet.xml</h2>

<div class="attachments">
<p>
<span class="author">chin-yeh, 12/01/2011 02:39 pm</span></p>
<p><a href="/redmine/attachments/download/266/restful-servlet.xml">Download</a> <span class="size">(786 Bytes)</span></p>

</div>
&nbsp;
<div class="autoscroll">
<table class="filecontent syntaxhl">
<tbody>


<tr><th class="line-num" id="L1"><a href="#L1">1</a></th><td class="line-code"><pre><span class="pp">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</span>
</pre></td></tr>


<tr><th class="line-num" id="L2"><a href="#L2">2</a></th><td class="line-code"><pre><span class="ta">&lt;beans</span> <span class="an">xmlns</span>=<span class="s"><span class="dl">&quot;</span><span class="k">http://www.springframework.org/schema/beans</span><span class="dl">&quot;</span></span>
</pre></td></tr>


<tr><th class="line-num" id="L3"><a href="#L3">3</a></th><td class="line-code"><pre> <span class="an">xmlns:xsi</span>=<span class="s"><span class="dl">&quot;</span><span class="k">http://www.w3.org/2001/XMLSchema-instance</span><span class="dl">&quot;</span></span> <span class="an">xmlns:context</span>=<span class="s"><span class="dl">&quot;</span><span class="k">http://www.springframework.org/schema/context</span><span class="dl">&quot;</span></span>
</pre></td></tr>


<tr><th class="line-num" id="L4"><a href="#L4">4</a></th><td class="line-code"><pre> <span class="an">xmlns:p</span>=<span class="s"><span class="dl">&quot;</span><span class="k">http://www.springframework.org/schema/p</span><span class="dl">&quot;</span></span> <span class="an">xmlns:mvc</span>=<span class="s"><span class="dl">&quot;</span><span class="k">http://www.springframework.org/schema/mvc</span><span class="dl">&quot;</span></span>
</pre></td></tr>


<tr><th class="line-num" id="L5"><a href="#L5">5</a></th><td class="line-code"><pre> <span class="an">xsi:schemaLocation</span>=<span class="s"><span class="dl">&quot;</span><span class="k">http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd </span><span class="dl">&quot;</span></span><span class="ta">&gt;</span>
</pre></td></tr>


<tr><th class="line-num" id="L6"><a href="#L6">6</a></th><td class="line-code"><pre>
</pre></td></tr>


<tr><th class="line-num" id="L7"><a href="#L7">7</a></th><td class="line-code"><pre> <span class="ta">&lt;context:component-scan</span> <span class="an">base-package</span>=<span class="s"><span class="dl">&quot;</span><span class="k">my.package.controller</span><span class="dl">&quot;</span></span><span class="ta">/&gt;</span>
</pre></td></tr>


<tr><th class="line-num" id="L8"><a href="#L8">8</a></th><td class="line-code"><pre>
</pre></td></tr>


<tr><th class="line-num" id="L9"><a href="#L9">9</a></th><td class="line-code"><pre> <span class="ta">&lt;mvc:annotation-driven</span><span class="ta">/&gt;</span>
</pre></td></tr>


<tr><th class="line-num" id="L10"><a href="#L10">10</a></th><td class="line-code"><pre>
</pre></td></tr>


<tr><th class="line-num" id="L11"><a href="#L11">11</a></th><td class="line-code"><pre><span class="ta">&lt;/beans&gt;</span>
</pre></td></tr>


</tbody>
</table>
</div>





<div style="clear:both;"></div>
</div>
</div>

<div id="ajax-indicator" style="display:none;"><span>Loading...</span></div>
<div id="footer">
<div class="bgl"><div class="bgr">
Powered by BitNami <a href="http://bitnami.org/stack/redmine">Redmine</a> &copy; 2006-2010 Jean-Philippe Lang
</div></div>
</div>
</div>
</div>

</body>
</html>
(3-3/6)