uri.xml 3.71 KB
<uri-config>
	<!-- Server URI -->
	<uri name="webSite">
		<serverURI>http://localhost:8080</serverURI>
	</uri>
	
	<uri name="rootContext">
		<contextPath></contextPath>
	</uri>
	
   	<!-- ================================================================ -->
    <!-- 静态资源flash、images、styles                                     -->
    <!-- ================================================================ -->
	<!-- flash -->
	<uri name="flash" extends="rootContext">
		<namespace>/flash</namespace>
	</uri>
	<!-- images -->
	<uri name="images" extends="rootContext">
		<namespace>/images</namespace>
	</uri>
	<!-- styles -->
	<uri name="styles" extends="rootContext">
		<namespace>/styles</namespace>
	</uri>
	
   	<!-- ================================================================ -->
    <!-- 业务模块namespace                                                -->
    <!-- ================================================================ -->
	<!-- home -->
	<uri name="homeModule" extends="rootContext">
		<namespace>/home</namespace>
	</uri>
	<!-- user -->
	<uri name="userModule" extends="rootContext">
		<namespace>/user</namespace>
	</uri>
	<!-- admin -->
	<uri name="adminModule" extends="rootContext">
		<namespace>/admin</namespace>
	</uri>
	<!-- store -->
	<uri name="storeModule" extends="rootContext">
		<namespace>/store</namespace>
	</uri>
	
   	<!-- ================================================================ -->
    <!-- 业务模块componentPath                                            -->
    <!-- ================================================================ -->
	<uri name="petstoreHomeLink" extends="homeModule">
		<componentPath>/home/homepage.htm</componentPath>
	</uri>
	<uri name="petstoreLoginLink" extends="userModule">
		<componentPath>/user/login.htm</componentPath>
	</uri> 
	<uri name="petstoreLoginEditLink" extends="userModule">
		<componentPath>/user/loginEdit.htm</componentPath>
	</uri>      
	<uri name="petstoreLogoutLink" extends="userModule">
		<componentPath>/user/logout.htm</componentPath>
	</uri> 
	<uri name="petstoreRegisterEditLink" extends="userModule">
		<componentPath>/user/registerEdit.htm</componentPath>
	</uri>
	<uri name="petstoreRegisterLink" extends="userModule">
		<componentPath>/user/register.htm</componentPath>
	</uri>
	
	
	<uri name="petstoreAccountEditLink" extends="userModule">
		<componentPath>/account/edit.htm</componentPath>
	</uri>
	<uri name="petstoreAccountDetailLink" extends="userModule">
		<componentPath>/account/detail.htm</componentPath>
	</uri>
	<uri name="petstoreAccountRegisterLink" extends="userModule">
		<componentPath>/account/register.htm</componentPath>
	</uri>
	
	
	<uri name="petstoreViewCartLink" extends="storeModule">
		<componentPath>/store/viewCart.htm</componentPath>
	</uri>
	<uri name="petstoreItemListLink" extends="storeModule">
		<componentPath>/store/itemList.htm</componentPath>
	</uri>
	<uri name="petstoreAddItemLink" extends="storeModule">
		<componentPath>/store/addItem.htm</componentPath>
	</uri>
	<uri name="petstoreRemoveItemLink" extends="storeModule">
		<componentPath>/store/removeItem.htm</componentPath>
	</uri>
	<uri name="petstoreCategoryListLink" extends="storeModule">
		<componentPath>/store/categoryList.htm</componentPath>
	</uri>
	
	
	<uri name="petstoreAdminCategoryListLink" extends="adminModule">
		<componentPath>/admin/categoryList.htm</componentPath>
	</uri>
	<uri name="petstoreAdminItemListLink" extends="adminModule">
		<componentPath>/admin/itemList.htm</componentPath>
	</uri>
	<uri name="petstoreAddProductLink" extends="adminModule">
		<componentPath>/admin/addProduct.htm</componentPath>
	</uri>
	<uri name="petstoreDoAddProductLink" extends="adminModule">
		<componentPath>/admin/doAddProduct.htm</componentPath>
	</uri>
</uri-config>