liferay6.1的SSI整合3(SDK开发)

阅读更多
主要的一些配置文件:
User_sqlMap.xml(放在src/com/ibitis目录下面,目录自己建)



	
	
	

		
	
	
	
		
	
	
	
	
	
		
	
	
	
	




struts.properties(src目录下)
struts.devMode=true
struts.enable.DynamicMethodInvocation=false
struts.objectTypeDeterminer=notiger
struts.objectFactory=spring
struts.locale=zh_CN
struts.i18n.encoding=UTF-8


struts.xml (src目录下)




	
		
			/jsp/finduser.jsp
		
		
			/jsp/view.jsp
		
		
			/jsp/addUserSuccess.jsp
		
	




actionContext.xml(docroot/WEB-INF/目录下)



	
	
		
	



applicationContext.xml(docroot/WEB-INF/目录下)


      
      
      
      



daoContext.xml(docroot/WEB-INF/目录下)



	
	
		
		
	




dataAccessContext.xml(docroot/WEB-INF/目录下)



	
	
		
			
				WEB-INF/jdbc.properties
			
		
	

	
	
		
		
		
		
		
	

    
	
		
			
		
		
			WEB-INF/sqlMapConfig.xml
		
	




serviceContext.xml(docroot/WEB-INF/目录下)



	
	
		
	



sqlMapConfig.xml(docroot/WEB-INF/目录下)




        



jdbc.properties(docroot/WEB-INF/目录下)
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/lportal
jdbc.username=root
jdbc.password=123

这个按你自己的实际情况填写

liferay-display.xml(docroot/WEB-INF/目录下)




	
		
	



liferay-portlet.xml(docroot/WEB-INF/目录下)




		
		ssi
		  true  
	
	
		administrator
		Administrator
	
	
		guest
		Guest
	
	
		power-user
		Power User
	
	
		user
		User
	



portlet.xml(docroot/WEB-INF/目录下)



		 
		ssi
		SSI
	org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher
	      
	         viewNamespace  
	         /ssi  
          
        
	          
                defaultViewAction  
	            index
	          

		0
		
			text/html
			VIEW
		
		
			SSI
			ssi
			
		
		
			administrator
		
		
			guest
		
		
			power-user
		
		
			user
		
	 




web.xml(docroot/WEB-INF/目录下)


	portlet-test-portlet
	
		index.html
		index.htm
		index.jsp
		default.html
		default.htm
		default.jsp
	
	
		
			http://java.sun.com/portlet_2_0
			
				/WEB-INF/tld/liferay-portlet.tld
			
		
		
			http://liferay.com/tld/aui
			/WEB-INF/tld/aui.tld
		
	
	


        
               contextConfigLocation
              /WEB-INF/applicationContext.xml
    
		   
        org.springframework.web.context.ContextLoaderListener
      
         
        struts2  
          
      	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
          
      
      
        struts2  
        /*  
      




还有两个JSP页面:(docroot/WEB-INF/jsp目录下)
view.jsp
<%@ page language="java" contentType="text/html; utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>




Insert title here





	
	
	



	





<%-- 
 
 
 
 
	

查找
 --%>


addUserSuccess.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>




Insert title here

addUserSuccess




你可能感兴趣的:(liferay6.1的SSI整合3(SDK开发))