首页 > 程序开发 > 软件开发 > Java >

SSH框架整合模板配置文件

2015-05-08

Struts2的配置 展示了package的配置和constan的使用 index jsp

Struts2的配置

展示了package的配置和constan的使用





    
    
    
    
    
    
    
    

    
        
            /index.jsp
            /reg12.jsp
        
        
            /index.jsp
            user_toOpenBasic
            /perfect.jsp
            /dealwith.jsp
            /perfect.jsp
            user_toOpenBasic
            /WEB-INF/basic.jsp
            /WEB-INF/tologin.jsp
        
    

    
        
            /error.jsp
/action>
    


Web.xml



    
    
        contextConfigLocation
        classpath:applicationContext.xml
    
    
        serverName
        http://localhost:8080/Profile/user_login.do
    
    
        casServerLogoutUrl
        http://localhost:8080/usercenter/logout
    

    
        Character Encoding Filter
        org.springframework.web.filter.CharacterEncodingFilter
        
            encoding
            UTF-8
        
    
    
        Character Encoding Filter
        /*
    

    
    
        InjectFilter
        com.profile.util.InjectFilter
        
        
            invalidsql
            select insert delete update create destory '
        
        
        
            error
            /exception/errcon.jsp
        
        
        
            debug
            true
        
    
    
        InjectFilter
        /*
    

    
        AdminFilter
        com.profile.util.AdminFilter
        
            excludedPages
            /admin_login.do
        
    
    
        AdminFilter
        /*
    
    
    
        OwnerFilter
        com.profile.util.OwnerFilter
    

    
    
        org.jasig.cas.client.session.SingleSignOutHttpSessionListener
    

    
    
        CAS Single Sign Out Filter
        org.jasig.cas.client.session.SingleSignOutFilter
    
    
        CAS Single Sign Out Filter
        /*
    

    
    
        CASFilter
        org.jasig.cas.client.authentication.AuthenticationFilter
        
            casServerLoginUrl
            http://localhost:8080/usercenter
            
        
        
            serverName
            http://localhost:8080
        
    
    
    
        CAS Validation Filter
        org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter
        
            casServerUrlPrefix
            http://localhost:8080/usercenter
        
        
            serverName
            http://localhost:8080
        
    
    
    
        CAS HttpServletRequest Wrapper Filter
        org.jasig.cas.client.util.HttpServletRequestWrapperFilter
    
    
    
        CAS Assertion Thread Local Filter
        org.jasig.cas.client.util.AssertionThreadLocalFilter
    

    
    
        struts2
        org.apache.struts2.dispatcher.FilterDispatcher
    


    
        OwnerFilter
        /*
    

    
        CASFilter
        /user_login.do
    
    
        CAS Validation Filter
        /*
    
    
        CAS HttpServletRequest Wrapper Filter
        /*
    
    
        CAS Assertion Thread Local Filter
        /*
    
    
        struts2
        /*
    
    
    
        org.springframework.web.context.ContextLoaderListener
    
    
        com.profile.util.SessionListener
    
    
    
        CheckCodeServlet
        com.profile.util.CaptchaImageCreateController
    
    
        CheckCodeServlet
        /code
    
    
    
        /WEB-INF/basic.jsp
    
    
        404
        /exception/error.jsp
    
    
        BASIC
    
    

applicationContext.xml文件的配置



    
    
        
            com.mysql.jdbc.Driver
        
        
            jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8
            
        
        
            root
        
        
            123123
        
    
    
        
            
        
        
            
                org.hibernate.dialect.MySQLDialect
                update
                true
                true
            
        
        
            
                
                com/profile/bean/Province.hbm.xml
                com/profile/bean/City.hbm.xml
            
        
    
    
    
        
            
   
相关文章
最新文章
热点推荐