web开发学习笔记
1、mysql分页.MySQL中一般的分页作法大多利用Limit限制回传的资料笔数来达成分页效果
例如下面的代码
Select * From news limit 0, 100第一页
Select * From news limit 100,100第二页
Select * From news limit 200,100第三页
2、jsp分页显示。
???
... initialized Struts-Spring integration successfully Exception starting filter struts2java.lang.NullPointerExceptionat com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60)at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325)at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168)at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220)at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61)at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774)at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:191)at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3666)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1173)at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:549)at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:105)at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)at java.lang.Thread.run(Thread.java:619)