资源描述:
《cms项目文档,java,需求分析》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、1用户登录1.1需求1.2sql准备createtablet_user(idintprimarykeyauto_increment,usernamevarchar(20),passwordvarchar(20),statusint,namevarchar(50));1.3初始化参数配置1.servlet初始化参数配置仅在该servelt中有效otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJingdezhen,Jiang
2、xiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSecretaryandrec
3、orderoftheCountypartyCommitteeSecretary,MinistersandUserServletorg.leadfar.cms.backend.servlet.UserServletisSupportCheckCode0
4、Java程序读取isSupportCheckCode="1".equals(config.getInitParameter("isSupportCheckCode"))?true:false;2.全局应用初始化参数配置在所有的servet和jsp中均可读取isSupportCheckCode0Java程序读取isSupportCheckCode="1".equals(config.getSer
5、vletContext().getInitParameter("isSupportCheckCode"))?true:false;1.4Fiter(过滤器)1.Filter是一个特殊的Servlet2.Filter是AOP(OritendAspectedProgramming)思想的一种实现,是对原WEB请求路线实施的干预,支持热插拔3.可以配置多个Filter,执行顺序将根据web.xml中配置顺序4.定义Filter只需要定义一个普通的java类,实现Filter接口publicclassEncodeFilterimplementsFilter{pri
6、vateStringencode;publicvoiddestroy(){//TODOAuto-generatedmethodstub}publicvoiddoFilter(ServletRequestrequest,ServletResponseresponse,FilterChainchain)throwsIOException,ServletException{otherstaffoftheCentre.Duringthewar,ZhuwastransferredbacktoJiangxi,andDirectorofthenewOfficeinJin
7、gdezhen,JiangxiCommitteeSecretary.Startingin1939servedasrecorderoftheWestNorthOrganization,SecretaryoftheSpecialCommitteeAfterthevictoryofthelongMarch,hehasbeentheNorthwestOfficeoftheFederationofStateenterprisesMinister,ShenmufuguSARmissions,DirectorofNingxiaCountypartyCommitteeSe
8、cretaryandrecorderoftheCountypart