]]>re: Agile web development with Rails 源代?http://www.aygfsteel.com/faithwind/archive/2008/05/07/118094.html#198859巫云巫云Wed, 07 May 2008 01:33:00 GMThttp://www.aygfsteel.com/faithwind/archive/2008/05/07/118094.html#198859
]]>re: javascript控制关键字高亮显C?/title>http://www.aygfsteel.com/faithwind/archive/2007/10/16/126387.html#153300不是好东?/dc:creator>不是好东?/author>Tue, 16 Oct 2007 08:18:00 GMThttp://www.aygfsteel.com/faithwind/archive/2007/10/16/126387.html#153300 if (!document.createElement) { return; } var q = "{{$q}}";//要高亮显C的关键?br> var l = document.getElementsByTagName(mytag); if("" == q) return; words = unescape(q.replace(/+/g,' ')).split(/s+/); for (w=0;w<words.length;w++) { for(i=0;i<l.length;i++) { var pa = new RegExp("("+words[w]+")","ig"); if(l.parentNode.parentNode.parentNode.id != "header")//标题中的内容不替?br> l.innerHTML = l.innerHTML.replace(pa,"<span class="searchword">$1</span>"); } } }
]]>re: Agile web development with Rails 源代?http://www.aygfsteel.com/faithwind/archive/2007/08/19/118094.html#137955阿c阿cSun, 19 Aug 2007 09:15:00 GMThttp://www.aygfsteel.com/faithwind/archive/2007/08/19/118094.html#137955回去,不知道这个源代码怎么?没有对应数据库的sql? ^_^
]]>re: Agile web development with Rails 源代?http://www.aygfsteel.com/faithwind/archive/2007/08/01/118094.html#133688易佳易佳Tue, 31 Jul 2007 16:52:00 GMThttp://www.aygfsteel.com/faithwind/archive/2007/08/01/118094.html#133688
]]>re: 从零开始创建基于struts1.2 + Hibernate3.0 Web工程http://www.aygfsteel.com/faithwind/archive/2007/05/16/30007.html#117744huapromhuapromTue, 15 May 2007 22:27:00 GMThttp://www.aygfsteel.com/faithwind/archive/2007/05/16/30007.html#1177441Q环境ؓmyeclipse5.1+tomcat6+hibernate3+struts1.2+sqlserver2000
2: hello.Message ,前得hello改ؓ Messagecȝ包名? 3Q提C?org.hibernate.Session s = HibernateUtil.currentSession();可能有错误?
请XDJM们帮忙指正错误!
谢谢Q?
2007-5-16 6:15
org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 29 in the jsp file: /testHibernate.jsp
org.hibernate.Session cannot be resolved to a type
26:
27: <body>
28: <%
29: org.hibernate.Session s = HibernateUtil.currentSession();
30: String hql = " from Message where text='b'";
31: try {
32: org.hibernate.Query query = s.createQuery(hql);
An error occurred at line: 29 in the jsp file: /testHibernate.jsp
The type org.hibernate.Session cannot be resolved. It is indirectly referenced from required .class files
26:
27: <body>
28: <%
29: org.hibernate.Session s = HibernateUtil.currentSession();
30: String hql = " from Message where text='b'";
31: try {
32: org.hibernate.Query query = s.createQuery(hql);
Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595)