发帖    主题    评论    推荐    标签    作者    订阅    查搜    注册   登陆   关注
 
面向对象 设计模式 领域驱动设计 企业架构 框架 开发教程 微服务 大数据 扩展性 并发编程 事件驱动 分布式 SOA

setup全部正常,进入论坛主页出错,请教!

2003-06-09 16:19
赞助商链接

win2000 + sqlserver2000 + tomcat4.1.12 + JBuilder8自带jdk1.4

admin/setup的测试、数据库连接等步骤都顺利通过。

进入论坛主页面,显示“JR论坛”,接着显示报错信息:

java.lang.NullPointerException
at org.apache.jsp.index_jsp._jspService(index_jsp.java:470)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:484)


2003-06-10 12:57

能告诉一下您这个环境的详细配置步骤么?

2003-06-10 15:05

就是按照安装说明步骤来的。
奇怪,我修改了一下jive_config.xml的某个链接后,
再重启tomcat,就能正常进入论坛了!
可能是安装包里的旧缓冲文件作祟。

现在面临的是发帖子的中文问题,以前在cocoon的xsp中也遇到过类似问题。用String newstr = new String(oldstr.getBytes("ISO8859_1"), "GB2312")方法后,可解决。
但在jsp中老提示编译出错。
请教各位!谢谢。

2003-07-02 21:18

我也遇到index.jsp产生的这个问题:
at org.apache.jsp.index_jsp._jspService(index_jsp.java:470)

我的配置是window2K Pfo + mysql4.0.13 + jdk1.4.1_03 + jwsdp-1.2(自带的tomcat)

我看了生产的临时代码index_jsp.java,可是不懂得看出哪里产生java.lang.NullPointerException ?

-- index_jsp.java:

package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import com.jivesoftware.forum.*;
import com.jivesoftware.forum.util.*;
import java.util.*;
import com.jivesoftware.util.*;
import com.jivesoftware.forum.*;
import com.jivesoftware.forum.util.*;
import com.jivesoftware.forum.*;

public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {

private static java.util.Vector _jspx_dependants;

static {
_jspx_dependants = new java.util.Vector(4);
_jspx_dependants.add("/global.jsp");
_jspx_dependants.add("/header.jsp");
_jspx_dependants.add("/loginbox.jsp");
_jspx_dependants.add("/footer.jsp");
}

public java.util.List getDependants() {
return _jspx_dependants;
}

public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {

JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;


try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=ISO8859_1");
pageContext = _jspxFactory.getPageContext(this, request, response,
"error.jsp", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;

out.write("\r\n\r\n");

/**
* $RCSfile: index.jsp,v $
* $Revision: 1.3 $
* $Date: 2002/09/30 14:56:16 $
*/

out.write("\r\n\r\n");
out.write("\r\n\r\n");
// global.jsp is a collection of utility methods and global variables.
// Page authorization and the creation of the authToken and forumFactory
// variables is handled there.

out.write("\r\n");

/**
* $RCSfile: global.jsp,v $
* $Revision: 1.4 $
* $Date: 2002/10/14 13:30:14 $
*/

out.write("\r\n");
com.jdon.web.UserEnvFront myEnv = null;
synchronized (application) {
myEnv = (com.jdon.web.UserEnvFront) pageContext.getAttribute("myEnv", PageContext.APPLICATION_SCOPE);
if (myEnv == null){
try {
myEnv = (com.jdon.web.UserEnvFront) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.jdon.web.UserEnvFront");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "com.jdon.web.UserEnvFront", exc);
}
pageContext.setAttribute("myEnv", myEnv, PageContext.APPLICATION_SCOPE);
}
}
out.write("\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.introspect(pageContext.findAttribute("myEnv"), request);
out.write("\r\n\r\n");
out.write("\r\n\r\n\r\n");
// Check to see if a Jive authorization token exists
boolean isGuest = false;
Authorization authToken = SkinUtils.getUserAuthorization(request, response);
if (authToken == null) {
authToken = AuthorizationFactory.getAnonymousAuthorization();
isGuest=true;
}
//init forumfactory and pageUser
myEnv.registeUserInit(authToken);

User pageUser = myEnv.getPageUser();

// The last time the user visited this page
Date lastVisited = new Date(SkinUtils.getLastVisited(request,response));

// The number of messages a user wants to show per page
int userMessageRange = myEnv.du.getMessageRange(request,response,pageUser);




out.write("\r\n\r\n");
out.write("\r\n\r\n");
// The title of this page. The header page assumes the "title" variable.
String title = JiveGlobals.getJiveProperty("websiteconf.name");

out.write("\r\n");
out.write("\r\n");

/**
* $RCSfile: header.jsp,v $
* $Revision: 1.3 $
* $Date: 2002/09/30 14:56:16 $dd
*/

out.write("\r\n\r\n");
out.write("\r\n\r\n");
// This page is the header page included on all the pages. It defines
// CSS, the body tags, and the HTML header at the top of every page.
// Modify the HTML below to change the look of your forums.

// Set the global Jive locale in the response (don't remove this).
//response.setLocale(JiveGlobals.getLocale());

out.write("\r\n\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
// Note: "title" should be defined as a String in the page that includes
// his page

out.write("\r\n ");
out.write("<title>");
out.write(String.valueOf( title ));
out.write("</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<link rel=\"stylesheet\" href=\"jivejdon.css\" type=\"text/css\">\r\n\r\n");
out.write("</head>\r\n\r\n");
out.write("<body bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.bgColor") ));
out.write("\"\r\n link=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.linkColor") ));
out.write("\"\r\n vlink=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.vLinkColor") ));
out.write("\"\r\n alink=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.aLinkColor") ));
out.write("\"\r\n marginheight=\"0\" marginwidth=\"0\" topmargin=\"3\" >\r\n\r\n\r\n");
out.write("<table bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.headerBorderColor") ));
out.write("\"\r\n cellpadding=\"1\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n");
out.write("<tr>");
out.write("<td>\r\n");
out.write("<!--\r\n");
out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#888888\">");
out.write("<tr >\r\n");
out.write("<td > ");
out.write("</td>\r\n\r\n ");
out.write("<td width=\"70\" >\r\n ");
out.write("<div align=\"center\">");
out.write("<a href=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("websiteconf.url") ));
out.write("\" class=\"a03\">鲁");
out.write("</a>");
out.write("</div>\r\n ");
out.write("</td>\r\n ");
out.write("<td width=\"70\" class=\"unnamed2\">\r\n\r\n ");
out.write("<div align=\"center\">");
out.write("<a href=\"http://www.jdon.com/idea.html\" class=\"a03\"> 碌");
out.write("</a>");
out.write("</div>\r\n ");
out.write("</td>\r\n ");
out.write("<td width=\"70\" class=\"unnamed2\">\r\n\r\n ");
out.write("<div align=\"center\">");
out.write("<a href=\"http://www.jdon.com/designpatterns/index.htm\" class=\"a03\">猫录拢陆");
out.write("</a>");
out.write("</div>\r\n ");
out.write("</td>\r\n ");
out.write("<td width=\"70\" class=\"unnamed2\">\r\n\r\n ");
out.write("<div align=\"center\">");
out.write("<a href=\"http://www.jdon.com/res.html\" class=\"a03\">鹿陇鲁路陆路篓");
out.write("</a>");
out.write("</div>\r\n ");
out.write("</td>\r\n ");
out.write("<td width=\"70\" >\r\n\r\n ");
out.write("<div align=\"center\" class=\"unnamed2\"> ");
out.write("<a href=\"http://www.jdon.com/dl/dl.html\" class=\"a03\">\r\n ");
out.write("</a>");
out.write("</div>\r\n ");
out.write("</td>\r\n\t\t ");
out.write("</tr>");
out.write("</table>\r\n -->\r\n");
out.write("</td>");
out.write("</tr>");
out.write("<tr>");
out.write("<td>\r\n");
out.write("<table bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.headerBgColor") ));
out.write("\"\r\n cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td rowspan=\"2\"> ");
out.write("<table cellpadding=\"6\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td> ");
out.write("<a href=\"http://www.jdon.com\">");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.headerLogo") ));
out.write("</a> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>");
out.write("</td>\r\n ");
out.write("<td align=\"right\" valign=\"top\">  ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td align=\"right\" valign=\"bottom\"> ");
out.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >\r\n ");
out.write("<tr>\r\n ");
out.write("<td > ");
out.write("<font class=p4 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.buttonFontFace") ));
out.write("\" color=\"#666666\">\r\n ");
out.write("<img src=\"images/01.gif\" width=\"25\" height=\"20\">");
out.write("<a href=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("websiteconf.url") ));
out.write("\">");
out.write(String.valueOf( JiveGlobals.getJiveProperty("websiteconf.name") ));
out.write("鲁");
out.write("</a>\r\n | ");
out.write("<img src=\"images/02.gif\" width=\"25\" height=\"20\">");
out.write("<a href=\"account.jsp\">垄虏谩");
out.write("</a>\r\n | ");
out.write("<img src=\"images/03.gif\" width=\"23\" height=\"20\">");
out.write("<a href=\"login.jsp\">碌陆");
out.write("</a>\r\n |\r\n ");
out.write("\r\n ");
out.write("<img src=\"images/04.gif\" width=\"23\" height=\"20\">");
out.write("<a href=\"search.jsp\">梅");
out.write("</a>\r\n | ");
out.write("<img src=\"images/logout.gif\" width=\"17\" height=\"17\" alt=\"鲁枚\" border=\"0\">\r\n ");
out.write("<a href=\"login.jsp?logout=true\" title=\"鲁枚\">鲁枚");
out.write("</a> ");
out.write("</font> ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n");
out.write("</td>");
out.write("</tr>\r\n");
out.write("</table>\r\n\r\n");
out.write("\r\n");
out.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n");
out.write("<tr>");
out.write("<td>");
out.write("<img src=\"images/blank.gif\" width=\"1\" height=\"10\" border=\"0\">");
out.write("</td>");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("\r\n\r\n");
out.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n");
out.write("<tr>\r\n ");
out.write("<td valign=\"top\" width=\"98%\">\r\n\r\n ");
out.write("\r\n\r\n ");
out.write("<font face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.fontFace") ));
out.write("\"\r\n color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.linkColor") ));
out.write("\">\r\n ");
out.write("<b>\r\n ");
out.write("<a href=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("websiteconf.url") ));
out.write("\"\r\n >鲁");
out.write("</a>\r\n »\r\n ");
out.write("<a href=\"index.jsp\" title=\"路碌禄鲁卤铆\"\r\n >鲁");
out.write("</a>\r\n ");
out.write("</b>\r\n ");
out.write("</font>\r\n ");
out.write("<p>\r\n\r\n ");
out.write("\r\n\r\n ");
out.write("<font size=\"-1\" face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.fontFace") ));
out.write("\"\r\n color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.textColor") ));
out.write("\">\r\n ");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.communityDescription") ));
out.write("\r\n ");
out.write("</font>\r\n\r\n ");
out.write("</td>\r\n ");
out.write("<td width=\"1%\">");
out.write("<img src=\"images/blank.gif\" width=\"10\" height=\"1\" border=\"0\">");
out.write("</td>\r\n ");
out.write("<td valign=\"top\" width=\"1%\" align=\"center\">\r\n ");

/**
* $RCSfile: loginbox.jsp,v $
* $Revision: 1.3 $
* $Date: 2002/09/30 14:56:16 $
*/

out.write("\r\n\r\n");
// Display different options based on if the user is logged in. The "isGuest"
// variable is defined in global.jsp.

// If the user is not logged in, show a link to login and show guest settings
if (isGuest) {

out.write("\r\n ");
out.write("<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" width=\"200\">\r\n ");
out.write("<tr>");
out.write("<td colspan=\"2\">\r\n ");
out.write("<font class=p4 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.fontFace") ));
out.write("\"\r\n color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.textColor") ));
out.write("\">\r\n 禄露颅煤, ");
out.write("<b>驴");
out.write("</b>.\r\n ");
out.write("</font>\r\n ");
out.write("</td>");
out.write("</tr>\r\n ");
out.write("<tr>");
out.write("<td width=\"1%\" nowrap>");
out.write("<a href=\"login.jsp\">");
out.write("<img src=\"images/login.gif\" width=\"17\" height=\"17\" alt=\"碌录禄貌麓麓陆篓禄赂枚禄搂\" border=\"0\">");
out.write("</a>");
out.write("</td>\r\n ");
out.write("<td width=\"99%\">\r\n ");
out.write("<font class=p2 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.buttonFontFace") ));
out.write("\">");
out.write("<a href=\"login.jsp\" title=\"碌录禄貌麓麓陆篓禄赂枚禄搂\">碌陆 / 垄虏谩");
out.write("</a>");
out.write("</font>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>");
out.write("<td width=\"1%\" nowrap>");
out.write("<a href=\"settings.jsp\">");
out.write("<img src=\"images/prefs.gif\" width=\"17\" height=\"17\" alt=\"赂煤碌盲炉隆\" border=\"0\">");
out.write("</a>");
out.write("</td>\r\n ");
out.write("<td width=\"99%\">\r\n ");
out.write("<font class=p2 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.buttonFontFace") ));
out.write("\">");
out.write("<a href=\"settings.jsp\" title=\"赂煤碌盲炉隆\">路驴猫");
out.write("</a>");
out.write("</font>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n\r\n");
}
// If the user is logged in, show their username, a logout button
// and a link to the settings page.
else {

out.write("\r\n ");
out.write("<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" width=\"200\">\r\n ");
out.write("<tr>");
out.write("<td colspan=\"2\">\r\n ");
out.write("<font class=p2 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.fontFace") ));
out.write("\">\r\n 禄露颅煤, ");
out.write("<a href=\"profile.jsp?user=");
out.write(String.valueOf( pageUser.getID() ));
out.write("\">");
out.write("<b>");
out.write(String.valueOf( pageUser.getUsername() ));
out.write("</b>");
out.write("</a>.\r\n ");
out.write("</font>\r\n ");
out.write("</td>");
out.write("</tr>\r\n ");
out.write("<tr>");
out.write("<td width=\"1%\" nowrap>");
out.write("<a href=\"settings.jsp?user=");
out.write(String.valueOf( pageUser.getID() ));
out.write("\">");
out.write("<img src=\"images/prefs.gif\" width=\"17\" height=\"17\" alt=\"赂煤碌盲炉隆好赂枚\" border=\"0\">");
out.write("</a>");
out.write("</td>\r\n ");
out.write("<td width=\"99%\">\r\n ");
out.write("<font class=p2 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.buttonFontFace") ));
out.write("\">");
out.write("<a href=\"settings.jsp?user=");
out.write(String.valueOf( pageUser.getID() ));
out.write("\" title=\"赂煤碌盲炉隆好赂枚\">煤碌猫/盲录镁");
out.write("</a>");
out.write("</font>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>");
out.write("<td width=\"1%\" nowrap>");
out.write("<a href=\"watches.jsp\">");
out.write("<img src=\"images/watch.gif\" width=\"17\" height=\"17\" alt=\"虏茅驴麓煤录驴碌梅芒\" border=\"0\">");
out.write("</a>");
out.write("</td>\r\n ");
out.write("<td width=\"99%\">\r\n ");
out.write("<font class=p2 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.buttonFontFace") ));
out.write("\">");
out.write("<a href=\"watches.jsp\" title=\"虏茅驴麓煤录驴碌梅芒\">鲁录驴");
out.write("</a>");
out.write("</font>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n\r\n");
}
out.write("\r\n");
out.write("\r\n ");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n\r\n");
out.write("<p>\r\n\r\n");
out.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n");
out.write("<tr>");
out.write("<td width=\"98%\" valign=\"top\">\r\n\r\n ");
out.write("\r\n\r\n ");
out.write("<table bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.tableBorderColor") ));
out.write("\"\r\n cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n ");
out.write("<tr>");
out.write("<td>\r\n ");
out.write("<table bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.tableBorderColor") ));
out.write("\"\r\n cellpadding=\"4\" cellspacing=\"1\" border=\"0\" width=\"100%\">\r\n ");
out.write("<tr bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.tableHeaderBgColor") ));
out.write("\">\r\n ");
out.write("<td width=\"1%\">");
out.write("<img src=\"images/blank.gif\" width=\"1\" height=\"1\" border=\"0\">");
out.write("</td>\r\n ");
out.write("<td width=\"97%\">");
out.write("<font class=\"p4\" color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.tableHeaderTextColor") ));
out.write("\" face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.headerFontFace") ));
out.write("\">");
out.write("<b>鲁没鲁");
out.write("</b>");
out.write("</font>");
out.write("</td>\r\n ");
out.write("<td width=\"1%\" nowrap>");
out.write("<font class=\"p4\" color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.tableHeaderTextColor") ));
out.write("\" face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.headerFontFace") ));
out.write("\">");
out.write("<b>梅芒 / 幻");
out.write("</b>");
out.write("</font>");
out.write("</td>\r\n ");
out.write("<td width=\"1%\" nowrap align=\"center\">");
out.write("<font class=\"p4\" color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.tableHeaderTextColor") ));
out.write("\" face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.headerFontFace") ));
out.write("\">");
out.write("<b>卯潞贸赂眉");
out.write("</b>");
out.write("</font>");
out.write("</td>\r\n ");
out.write("</tr>\r\n\r\n");
Iterator forums = myEnv.getForumFactory().forums();
while (forums.hasNext()) {
Forum forum = (Forum)forums.next();
String description = forum.getDescription();
boolean isNew = (forum.getModifiedDate().getTime() > lastVisited.getTime());
ForumMessage lastPost = myEnv.du.getLastPost(forum);

out.write("\r\n ");
out.write("<tr bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.tableRowColor1") ));
out.write("\">\r\n ");
out.write("<td width=\"1%\" align=\"center\" valign=\"top\">\r\n ");
out.write("<font size=\"-2\" color=\"#ff0000\">\r\n ");
if (isNew) {
out.write("\r\n ");
out.write("<img src=\"images/forum_new.gif\" width=\"12\" height=\"12\" vspace=\"2\" border=\"0\">\r\n ");
} else {
out.write("\r\n ");
out.write("<img src=\"images/forum_old.gif\" width=\"12\" height=\"12\" vspace=\"2\" border=\"0\">\r\n ");
}
out.write("\r\n ");
out.write("</font>\r\n ");
out.write("</td>\r\n ");
out.write("<td width=\"97%\">\r\n ");
out.write("<font size=\"-1\" face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.fontFace") ));
out.write("\"\r\n color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.textColor") ));
out.write("\">\r\n ");
out.write("<a href=\"forum.jsp?forum=");
out.write(String.valueOf( forum.getID() ));
out.write("\">");
out.write(String.valueOf( forum.getName() ));
out.write("</a>\r\n ");
out.write("<br>\r\n ");
out.write("<i>");
out.write(String.valueOf( (description!=null)?description:"" ));
out.write("</i>\r\n ");
out.write("</font>\r\n ");
out.write("</td>\r\n ");
out.write("<td width=\"1%\" nowrap align=\"center\" valign=\"top\">\r\n ");
out.write("<font size=\"-1\" face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.fontFace") ));
out.write("\"\r\n color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.textColor") ));
out.write("\">\r\n ");
out.write(String.valueOf( forum.getThreadCount() ));
out.write(" / ");
out.write(String.valueOf( forum.getMessageCount() ));
out.write("\r\n ");
out.write("</font>\r\n ");
out.write("</td>\r\n ");
out.write("<td width=\"1%\" nowrap valign=\"top\">\r\n ");
out.write("<font size=\"-1\" face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.fontFace") ));
out.write("\"\r\n color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.textColor") ));
out.write("\">\r\n ");
out.write(String.valueOf( SkinUtils.formatDate(request,response,pageUser,forum.getModifiedDate()) ));
out.write("\r\n ");
out.write("</font>\r\n ");
if (lastPost != null) {
User lastPostAuthor = lastPost.getUser();

out.write("\r\n ");
out.write("<br>\r\n ");
out.write("<font size=\"-2\" face=\"verdana\">\r\n ");
if (lastPostAuthor == null) {
out.write("\r\n by: ");
out.write("<i>Guest");
out.write("</i>\r\n ");
} else {
out.write("\r\n by: ");
out.write("<a href=\"thread.jsp?forum=");
out.write(String.valueOf( lastPost.getForumThread().getForum().getID() ));
out.write("&thread=");
out.write(String.valueOf( lastPost.getForumThread().getID() ));
out.write("&message=");
out.write(String.valueOf( lastPost.getID() ));
out.write("#");
out.write(String.valueOf( lastPost.getID() ));
out.write("\"\r\n title=\"Jump to Message\"\r\n >");
out.write(String.valueOf( lastPostAuthor.getUsername() ));
out.write(" »");
out.write("</a>\r\n ");
}
out.write("\r\n ");
out.write("</font>\r\n ");
}
out.write("\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
}
out.write("\r\n\r\n ");
out.write("</table>\r\n ");
out.write("</td>");
out.write("</tr>\r\n ");
out.write("</table>\r\n\r\n ");
out.write("<p>\r\n\r\n ");
out.write("<table cellpadding=\"3\" cellspacing=\"0\" border=\"0\">\r\n ");
out.write("<tr>");
out.write("<td>\r\n ");
out.write("<img src=\"images/forum_new.gif\" width=\"12\" height=\"12\" border=\"0\">\r\n ");
out.write("</td>");
out.write("<td>\r\n ");
out.write("<font class=p2 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.fontFace") ));
out.write("\"\r\n color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.textColor") ));
out.write("\">\r\n ");
out.write("<i>卤铆戮茫卯潞贸禄麓访幻⒙仿⒙猜!");
out.write("</i>\r\n ");
out.write("</font>\r\n ");
out.write("</td>");
out.write("</tr>\r\n ");
out.write("</table>\r\n\r\n ");
out.write("\r\n\r\n ");
out.write("</td>\r\n ");
out.write("<td width=\"1%\">");
out.write("<img src=\"images/blank.gif\" width=\"10\" height=\"1\" border=\"0\">");
out.write("</td>\r\n ");
out.write("<td width=\"1%\" nowrap valign=\"top\">\r\n\r\n\r\n\r\n\r\n ");
// Get an iterator of popular discussions
Iterator popularDiscussions = myEnv.getForumFactory().popularThreads();

// only show the popular discussions box if there *are* popular discussions:
if (popularDiscussions.hasNext()) {

out.write("\r\n ");
out.write("<table bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.tableBorderColor") ));
out.write("\"\r\n cellpadding=\"1\" cellspacing=\"0\" border=\"0\" width=\"200\">\r\n ");
out.write("<tr>");
out.write("<td>\r\n ");
out.write("<table bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.sidebarHeaderBgColor") ));
out.write("\"\r\n cellpadding=\"4\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td align=\"center\">");
out.write("<font class=p2 color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.sidebarHeaderTextColor") ));
out.write("\" face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.headerFontFace") ));
out.write("\"\r\n >");
out.write("<b>碌茫");
out.write("</b>");
out.write("</font>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("</td>");
out.write("</tr>\r\n ");
out.write("<tr>");
out.write("<td>\r\n ");
out.write("<table bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.sidebarBgColor") ));
out.write("\"\r\n cellpadding=\"3\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n ");
while (popularDiscussions.hasNext()) {
ForumThread thread = (ForumThread)popularDiscussions.next();
String subject = thread.getName();
// Clip the length of the subject if it's over a certain length.
// This prevents long subjects from screwing up the layout of
// the page.
if (subject.length() > 25) {
subject = StringUtils.chopAtWord(subject, 50) + "..";
}
// Get the forum associated with this thread
Forum forum = thread.getForum();
// Number of replies to the thread
int numReplies = thread.getMessageCount()-1;

out.write("\r\n ");
out.write("<tr>\r\n ");
out.write("<td valign=\"top\" width=\"1%\">\r\n ");
out.write("<font size=\"-1\" face=\"arial\">");
out.write("<b>•");
out.write("</b>");
out.write("</font>\r\n ");
out.write("</td>\r\n ");
out.write("<td width=\"99%\">\r\n ");
out.write("<font class=p1 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.fontFace") ));
out.write("\">\r\n ");
out.write("<a href=\"thread.jsp?forum=");
out.write(String.valueOf( forum.getID() ));
out.write("&thread=");
out.write(String.valueOf( thread.getID() ));
out.write("\">");
out.write(String.valueOf( subject ));
out.write("</a>");
out.write("<br>\r\n ");
out.write(String.valueOf( numReplies ));
out.write(" ");
out.write(String.valueOf( (numReplies==1)?"禄赂麓":"禄赂麓" ));
out.write("\r\n (");
out.write(String.valueOf( forum.getName() ));
out.write(")\r\n ");
out.write("</font>\r\n ");
out.write("</td>");
out.write("</tr>\r\n ");
} // end while
out.write("\r\n ");
out.write("</table>\r\n\t\t");
out.write("<p>\r\n\t\t ");
out.write("\r\n\r\n ");
out.write("<table bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.tableBorderColor") ));
out.write("\"\r\n cellpadding=\"1\" cellspacing=\"0\" border=\"0\" width=\"200\">\r\n ");
out.write("<tr>");
out.write("<td>\r\n ");
out.write("<table bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.sidebarHeaderBgColor") ));
out.write("\"\r\n cellpadding=\"4\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td align=\"center\">");
out.write("<font class=p4 color=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.sidebarHeaderTextColor") ));
out.write("\" face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.headerFontFace") ));
out.write("\"\r\n >");
out.write("<b> 梅");
out.write("</b>");
out.write("</font>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("</td>");
out.write("</tr>\r\n ");
out.write("<tr>");
out.write("<td>\r\n ");
out.write("<table bgcolor=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.sidebarBgColor") ));
out.write("\"\r\n cellpadding=\"3\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n ");
out.write("<form action=\"search.jsp\" method=\"post\" >\r\n ");
out.write("<input type=\"hidden\" name=\"search\" value=\"true\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td width=\"99%\">");
out.write("<input type=\"text\" name=\"q\" style=\"width:100%;\">");
out.write("</td>\r\n ");
out.write("<td width=\"1%\">");
out.write("<input type=\"image\" src=\"images/go.gif\" width=\"17\" height=\"17\" border=\"0\" alt=\"碌楼禄梅陆酶梅\">");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td colspan=\"2\">\r\n ");
out.write("<font class=p2 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.fontFace") ));
out.write("\">\r\n ");
out.write("<select size=\"3\" style=\"width:100%;\" multiple name=\"forums\">\r\n ");
out.write("<option value=\"-1\" selected> 霉鲁 (卢)\r\n ");
// get the iterator of forums again
for (Iterator iter=myEnv.getForumFactory().forums(); iter.hasNext();) {
Forum forum = (Forum)iter.next();
// Trim the forum name
String forumName = forum.getName();
if (forumName.length() > 18) {
forumName = forumName.substring(0,18) + "..";
}

out.write("\r\n ");
out.write("<option value=\"");
out.write(String.valueOf( forum.getID() ));
out.write("\">\r\n  •  ");
out.write(String.valueOf( forumName ));
out.write("\r\n ");
}
out.write("\r\n ");
out.write("</select>\r\n ");
out.write("</font>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</form>\r\n ");
out.write("</table>\r\n ");
out.write("</td>");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("</td>");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("<p>\r\n ");
} // end if popularDiscussions.hasNext()
out.write("\r\n\r\n ");
out.write("\r\n\r\n ");
out.write("</td>\r\n");
out.write("</tr>");
out.write("</table>\r\n\r\n");
out.write("<p>\r\n\r\n");
out.write("<table cellpadding=\"6\" cellspacing=\"0\" border=\"0\" width=\"100%\">\r\n");
out.write("<tr>\r\n ");
out.write("<td align=\"center\">\r\n ");
out.write("<hr size=\"1\" width=\"75%\" color=\"#666666\">\r\n ");
out.write("<font class=p4 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.buttonFontFace") ));
out.write("\" color=\"#666666\">\r\n ");
out.write("<a href=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.homeURL") ));
out.write("\">鲁鲁");
out.write("</a>\r\n |\r\n ");
out.write("<a href=\"account.jsp\">垄虏谩");
out.write("</a>\r\n |\r\n ");
out.write("<a href=\"login.jsp\">碌陆");
out.write("</a>\r\n |\r\n ");
out.write("\r\n ");
out.write("<a href=\"search.jsp\">梅");
out.write("</a>\r\n ");
out.write("</font>\r\n\t");
out.write("<br>");
out.write("<br>\r\n \r\n ");
out.write("\r\n ");
out.write("\r\n ");
out.write("\r\n ");
out.write("\r\n ");
out.write("<font class=p2 face=\"");
out.write(String.valueOf( JiveGlobals.getJiveProperty("skin.default.buttonFontFace") ));
out.write("\" color=\"#666666\">\r\n\t\r\n\t");
out.write("</font> \r\n ");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>\r\n\r\n");
out.write("</body>\r\n");
out.write("</html>");
} catch (Throwable t) {
if (!(t instanceof javax.servlet.jsp.SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}

赞助商链接

赞助商链接

返回顶部

移动版 关于本站 使用帮助 联系管理员 最佳分辨率1366x768
OpenSource JIVEJDON Powered by JdonFramework Code © 2002-20 jdon.com