 |
上一主题
进来,项目在制定编码规范,写道“布尔类型的数据成员命名”时发生争议,示例如下:
[code]
A:public boolean isGuest;
B: public bo..
|
|
下一主题
我单位的CVS服务器名是CVSSERVER,工程路径是d:\ASSG_JAVA,我在公司服务器上的用户名是FF,密码是FF,我用JBUILDER9自带的CVS想嵌入文件时,就是不成功,可我用同样的方..
|
|
|
|
|
|
|
|
请各们兄长帮忙(无报告,但显示空白页)
|
2004年03月11日 16:42
|
|
|
标签列表
|
|
配置如下: web.xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app> <display-name>eLibrary</display-name> <!-- Standard Action Servlet Configuration (with debugging) --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet>
<!-- Standard Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>
<!-- The Usual Welcome File List --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
<!-- Struts Tag Library Descriptors --> <taglib> <taglib-uri>/struts-bean</taglib-uri> <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location> </taglib>
<taglib> <taglib-uri>/struts-html</taglib-uri> <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location> </taglib>
<taglib> <taglib-uri>/struts-logic</taglib-uri> <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location> </taglib>
<taglib> <taglib-uri>/struts-nested</taglib-uri> <taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location> </taglib>
<taglib> <taglib-uri>/struts-tiles</taglib-uri> <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location> </taglib> <taglib> <taglib-uri>/struts-template</taglib-uri> <taglib-location>/WEB-INF/tld/struts-template.tld</taglib-location> </taglib>
</web-app> 模板文件如下: %@ page contentType = "text/html;charset = gb2312" %> <%@ taglib uri = "/struts-template" prefix = "template" %> <html> <head> <title>欢迎常来逛逛</title> </head> <body> <jsp:include page = "header.jsp"/> <table> <tr> <td><jsp:include page = "menu.jsp"/></td> <td><template:get name = "content"/> </tr> </table> <jsp:include page = "footer.jsp"/> </body> </html> 主页面如下: <%@ taglib uri = "/struts-template" prefix = "/template" %> <template:insert template = "template.jsp "> <template:put name = "content" content = "cont.jsp"/> </template:insert> 头文件如下: <table class = "header"> <tr><td class = header>welcome</td></tr> </table> 尾文件: <%@ page import="java.util.Date, java.text.Dateformat" %> <% Dateformat df = Dateformat.getDateInstance(Dateformat.MEDIUM, request.getLocale()); %> <table class="disclaimer"> <tr> <td class="disclaimer"> <b>Disclaimer:</b> All content on this site is mine. Today is <%= df.format(new Date()) %> </td> </tr> </table> 文件目录结构: jsp/template.jsp,index.jsp,header.jsp,foot.jsp WEB-INF/tld/......... jsp和WEB-INF在一级目录上, 请高手指教, 多谢多谢, 急死了,我正在写毕业设计
|
|
|
|
|
|
Re: 请各们兄长帮忙(无报告,但显示空白页)
|
2004年03月11日 16:52
|
|
|
web.xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app> <display-name>eLibrary</display-name> <!-- Standard Action Servlet Configuration (with debugging) --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet>
<!-- Standard Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>
<!-- The Usual Welcome File List --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
<!-- Struts Tag Library Descriptors --> <taglib> <taglib-uri>/struts-bean</taglib-uri> <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location> </taglib>
<taglib> <taglib-uri>/struts-html</taglib-uri> <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location> </taglib>
<taglib> <taglib-uri>/struts-logic</taglib-uri> <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location> </taglib>
<taglib> <taglib-uri>/struts-nested</taglib-uri> <taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location> </taglib>
<taglib> <taglib-uri>/struts-tiles</taglib-uri> <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location> </taglib> <taglib> <taglib-uri>/struts-template</taglib-uri> <taglib-location>/WEB-INF/tld/struts-template.tld</taglib-location> </taglib>
</web-app> 模板文件如下: %@ page contentType = "text/html;charset = gb2312" %> <%@ taglib uri = "/struts-template" prefix = "template" %> <html> <head> <title>欢迎常来逛逛</title> </head> <body> <jsp:include page = "header.jsp"/> <table> <tr> <td><jsp:include page = "menu.jsp"/></td> <td><template:get name = "content"/> </tr> </table> <jsp:include page = "footer.jsp"/> </body> </html> 主页面如下: <%@ taglib uri = "/struts-template" prefix = "/template" %> <template:insert template = "template.jsp "> <template:put name = "content" content = "cont.jsp"/> </template:insert> 头文件如下: <table class = "header"> <tr><td class = header>welcome</td></tr> </table> 尾文件: <%@ page import="java.util.Date, java.text.Dateformat" %> <% Dateformat df = Dateformat.getDateInstance(Dateformat.MEDIUM, request.getLocale()); %> <table class="disclaimer"> <tr> <td class="disclaimer"> <b>Disclaimer:</b> All content on this site is mine. Today is <%= df.format(new Date()) %> </td> </tr> </table> 文件目录结构: jsp/template.jsp,index.jsp,header.jsp,foot.jsp WEB-INF/tld/......... jsp和WEB-INF在一级目录上, 请高手指教, 多谢多谢, 急死了,我正在写毕业设计
|
|
|
|
|
|
Re: 请各们兄长帮忙(无报告,但显示空白页)
|
2004年03月11日 16:56
|
|
|
呵呵,不用贴着么多 在用strut时出现“无报告,但显示空白页”的错误 就是jsp运行或是编译出错了 这个错误的具体信息在tomcat的logs目录下的localhost_log.200X-XX-XX.txt
|
|
|
|
|
|
Re: 请各们兄长帮忙(无报告,但显示空白页)
|
2004年03月11日 17:38
|
|
|
|
兄长,谢谢你了,不过问题还是没有解决,在日志文件中的最后报告中,好像没有说明这个问题,而以前的方方面面的错误,倒是全部记录是下来,还请帮我仔细看看
|
|
|
|
|
|
Re: 请各们兄长帮忙(无报告,但显示空白页)
|
2004年03月11日 18:03
|
|
|
以下是我从日志文件中拷贝下来后部分报告
2004-03-11 18:01:46 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] 2004-03-11 18:02:08 StandardContext[/struts-example]action: []: Verifying ModuleConfig for this application module 2004-03-11 18:02:10 StandardContext[/struts-example]action: []: Verification of ModuleConfig has been completed 2004-03-11 18:02:40 StandardContext[/jsp-examples]ContextListener: contextInitialized() 2004-03-11 18:02:40 StandardContext[/jsp-examples]SessionListener: contextInitialized() 2004-03-11 18:02:42 StandardContext[/servlets-examples]ContextListener: contextInitialized() 2004-03-11 18:02:42 StandardContext[/servlets-examples]SessionListener: contextInitialized()
附上最后一次出错报告,请兄长们帮助
|
|
|
|
|
|
Re: 请各们兄长帮忙(无报告,但显示空白页)
|
2004年03月11日 18:16
|
|
|
使用Tomcat? Tomcat的错误报告机制确实不太好!
下面的方法或许对你有帮助:
在JBuilder中编译jsp看看能不能通过。
在jsp文件的主要部分用try catch括起来,并将错误信息打出来。对照错误行数,到tomcat/work目录下看看jsp编译后的java文件的位置最后追踪到jsp文件中的位置。
|
|
|
|
|
|
Re: 请各们兄长帮忙(无报告,但显示空白页)
|
2004年04月02日 15:27
|
|
|
我也有类似问题,看了log,显示一下信息
[2004/04/02 15:15:15] null java.lang.NullPointerException at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:700) at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:665) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:324) at javax.servlet.GenericServlet.init(GenericServlet.java:82) at com.caucho.server.http.Application.createServlet(Application.java:3103) at com.caucho.server.http.Application.loadServlet(Application.java:3054) at com.caucho.server.http.Application.initServlets(Application.java:1914) at com.caucho.server.http.Application.init(Application.java:1827) at com.caucho.server.http.VirtualHost.init(VirtualHost.java:720) at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:853) at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:698) at com.caucho.server.http.ServletServer.init(ServletServer.java:509) at com.caucho.server.http.ResinServer.init(ResinServer.java:377) at com.caucho.server.http.ResinServer.main(ResinServer.java:1137) at com.caucho.server.http.HttpServer.main(HttpServer.java:103) [2004/04/02 15:15:15] init exception for `action' java.lang.NullPointerException at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:700) at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:665) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:324) at javax.servlet.GenericServlet.init(GenericServlet.java:82) at com.caucho.server.http.Application.createServlet(Application.java:3103) at com.caucho.server.http.Application.loadServlet(Application.java:3054) at com.caucho.server.http.Application.initServlets(Application.java:1914) at com.caucho.server.http.Application.init(Application.java:1827) at com.caucho.server.http.VirtualHost.init(VirtualHost.java:720) at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:853) at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:698) at com.caucho.server.http.ServletServer.init(ServletServer.java:509) at com.caucho.server.http.ResinServer.init(ResinServer.java:377) at com.caucho.server.http.ResinServer.main(ResinServer.java:1137) at com.caucho.server.http.HttpServer.main(HttpServer.java:103)
请各位帮忙看看是什么原因
|
|
|
|
|
|
Re: 请各们兄长帮忙(无报告,但显示空白页)
|
2004年08月23日 14:19
|
|
|
|
struts配置文件有问题..非tomcat的错..
|
|
|
|
热点TAG:
AOP
cache
缓存
DDD
EJB
集群
设计模式
Hibernate
IOC
JiveJdon
OO
RBAC
Seam
Spring
Struts
anti spam
|