⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _viewthread__jsp.java

📁 JSP聊天系统
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
		}
		request.setAttribute("message",errorMessage);
		response.sendRedirect("error.jsp");
		return;
	}

      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      	//////////////////////
	// get forum properties (assumed no errors at this point)
	String forumName = forum.getName();
	String threadName = thread.getName();

      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      	//////////////////////////////
	// get root message properties
	
	User author = rootMessage.getUser();
	int rootMsgAuthorID = author.getID();
	String userName = null;
	String authorName = null;
	String authorEmail = null;
	authorName = author.getName();
	userName = author.getUsername();
	authorEmail = author.getEmail();
	Date creationDate = rootMessage.getCreationDate();
	boolean rootMsgIsAnonymous = rootMessage.isAnonymous();
	//if( authorName == null ) {
	//	rootMsgIsAnonymous = true;
	//}
	String rootMsgSubject = rootMessage.getSubject();
	String rootMsgBody = rootMessage.getBody();

      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      	////////////////////
	// page title variable for header
	String title = "交通论坛: " + forumName + ": " + threadName;

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      	/////////////////////
	// page header

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      
/**
 *	$RCSfile: header.jsp,v $
 *	$Revision: 1.3 $
 *	$Date: 2000/12/18 02:04:56 $
 */

      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      	/////////////////////
	// header variables
	
	// change these values to customize the look of your header
	
	// Colors
	String headerBgcolor = "#000000";
	String headerFgcolor = "#ffffff";
	
	// header image vars
	String headerImgURL = "";
	String headerImgSRC = "images/jnjtzxlt.gif";
	String headerImgWidth = "140";
	String headerImgHeight = "60";
	String headerImgAltText = "Jive: 实例层";
	
	// Header text
	String headerText = "";

      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      out.print(( headerFgcolor ));
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      out.print(( headerImgURL ));
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      out.print(( headerImgSRC ));
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      out.print(( headerImgWidth ));
      pageContext.write(_jsp_string9, 0, _jsp_string9.length);
      out.print(( headerImgHeight ));
      pageContext.write(_jsp_string10, 0, _jsp_string10.length);
      out.print(( headerImgAltText ));
      pageContext.write(_jsp_string11, 0, _jsp_string11.length);
      out.print(( headerText ));
      pageContext.write(_jsp_string12, 0, _jsp_string12.length);
      	////////////////////
	// breadcrumb variable
	String[][] breadcrumbs = {
		{ "论坛首页", "index.jsp" },
		{ forumName, ("viewForum.jsp?forum="+forumID) },
		{ threadName, "" }
	};

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      
/**
 *	$RCSfile: breadcrumb.jsp,v $
 *	$Revision: 1.4 $
 *	$Date: 2000/12/18 02:04:56 $
 */

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      out.print(( crumbBgcolor ));
      pageContext.write(_jsp_string13, 0, _jsp_string13.length);
      out.print(( crumbFgcolor ));
      pageContext.write(_jsp_string14, 0, _jsp_string14.length);
      	// don't show any breadcrumbs if the breadcrumbs array is null or
	// zero length
	if( breadcrumbs != null && breadcrumbs.length > 0 ) {
		// loop through the breadcrumbs array, only display the first
		// n-1 items (the last one will be displayed as a non-link 
		// because that should represent the page we're on.
		int i=0;
		while( breadcrumbs.length > 1 && i < (breadcrumbs.length-1) ) { 

      pageContext.write(_jsp_string15, 0, _jsp_string15.length);
      out.print(( breadcrumbs[i][1] ));
      pageContext.write(_jsp_string16, 0, _jsp_string16.length);
      out.print(( breadcrumbs[i][0] ));
      pageContext.write(_jsp_string17, 0, _jsp_string17.length);
      			i++;
		}
		if( breadcrumbs.length >= 1 ) {

      pageContext.write(_jsp_string18, 0, _jsp_string18.length);
      out.print(( breadcrumbs[i][0] ));
      pageContext.write(_jsp_string19, 0, _jsp_string19.length);
      	// end of while loop
	}

      pageContext.write(_jsp_string20, 0, _jsp_string20.length);
      	// grab the username to display who we are logged in as. If the
	// authentication token is null, that means a guest is viewing the page,
	// so display "guest" instead of a username:
	
	boolean loggedIn = authToken != null && !user.isAnonymous();
	String username = "<i>游客</i>";
	if( loggedIn ) {
		username = user.getUsername();
	}

      pageContext.write(_jsp_string21, 0, _jsp_string21.length);
      	if( loggedIn ) { 
      pageContext.write(_jsp_string22, 0, _jsp_string22.length);
      out.print(( username ));
      pageContext.write(_jsp_string23, 0, _jsp_string23.length);
      	} else { 
      pageContext.write(_jsp_string24, 0, _jsp_string24.length);
      	} 
      pageContext.write(_jsp_string25, 0, _jsp_string25.length);
      	} 
      pageContext.write(_jsp_string26, 0, _jsp_string26.length);
      	///////////////////
	// toolbar variables
	boolean showToolbar = true;
	String viewLink = "viewForum.jsp?forum="+forumID;
	String postLink = "post.jsp?mode=new&forum="+forumID;
	String replyLink = "post.jsp?reply=true&forum="+forumID+"&thread="+threadID+"&message="+rootMessageID;
	String searchLink = "search.jsp?forum="+forumID;
	String accountLink = "userAccount.jsp";

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      
/**
 *	$RCSfile: toolbar.jsp,v $
 *	$Revision: 1.4.2.1 $
 *	$Date: 2001/01/21 21:30:25 $
 */

      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      	//////////////////
	// variables for displaying items on the toolbar
	boolean showLink = (viewLink!=null && !viewLink.equals(""));
	boolean showPost = (postLink!=null && !postLink.equals(""));
	boolean showReply = (replyLink!=null && !replyLink.equals(""));
	boolean showSearch = (searchLink!=null && !searchLink.equals(""));
	boolean showAccount = (accountLink!=null && !accountLink.equals(""));

      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      	/////////////////////
	// toolbar variables
	
	// change these values to customize the text and links of the
	// toolbar buttons
	
	// view button
	String viewButtonText = "浏览帖子";
	String viewButtonURL = viewLink;
	String viewButtonImgSRC = "images/doc_white.gif";
	String viewButtonImgWidth = "19";
	String viewButtonImgHeight = "19";
	String viewButtonImgAltText = "点击查看此版块所有贴子";
	
	// post button
	String postButtonText = "发表新帖子";
	String postButtonURL = postLink;
	String postButtonImgSRC = "images/doc_yellow.gif";
	String postButtonImgWidth = "19";
	String postButtonImgHeight = "19";
	String postButtonImgAltText = "点击在此版块发表新贴";
	
	// reply button
	String replyButtonText = "回复";
	String replyButtonURL = replyLink;
	String replyButtonImgSRC = "images/doc_green.gif";
	String replyButtonImgWidth = "19";
	String replyButtonImgHeight = "19";
	String replyButtonImgAltText = "点击回复此主题";
	
	// search button
	String searchButtonText = "搜索";
	String searchButtonURL = searchLink;
	String searchButtonImgSRC = "images/search.gif";
	String searchButtonImgWidth = "19";
	String searchButtonImgHeight = "19";
	String searchButtonImgAltText = "点击在此版块内搜索";
	
	// account button
	String accountButtonText = "帐号";
	String accountButtonURL = accountLink;
	String accountButtonImgSRC = "images/user.gif";
	String accountButtonImgWidth = "19";
	String accountButtonImgHeight = "19";
	String accountButtonImgAltText = "点击查看您的个人账号";
	
	// Login button
	String loginButtonText = "登录";
	String loginButtonURL = "login.jsp";
	String loginButtonImgSRC = "images/login.gif";
	String loginButtonImgWidth = "19";
	String loginButtonImgHeight = "19";
	String loginButtonImgAltText = "登录或创建新的用户";
	
	// logout button
	String logoutButtonText = "退出";
	String logoutButtonURL = "index.jsp?logout=true";
	String logoutButtonImgSRC = "images/x.gif";
	String logoutButtonImgWidth = "19";
	String logoutButtonImgHeight = "19";
	String logoutButtonImgAltText = "退出此论坛";
	
	
	// display the post button only if the user has 
	// permission to post in this forum
	/*
	boolean canPost = forum.hasPermission(ForumPermissions.CREATE_THREAD)
		|| forum.hasPermission(ForumPermissions.CREATE_MESSAGE);
	if( !canPost ) {
		showPost = false;
	}
	*/

      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      	////////////////////
	//
	if( showToolbar ) {

      pageContext.write(_jsp_string27, 0, _jsp_string27.length);
      out.print(( toolbarBgcolor ));
      pageContext.write(_jsp_string28, 0, _jsp_string28.length);
      out.print(( toolbarFgcolor ));
      pageContext.write(_jsp_string29, 0, _jsp_string29.length);
      	int count = 0; 
      pageContext.write(_jsp_string30, 0, _jsp_string30.length);
      	if( showLink ) {  count += 3; 
      pageContext.write(_jsp_string31, 0, _jsp_string31.length);
      out.print(( viewButtonURL ));
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      out.print(( viewButtonImgSRC ));
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      out.print(( viewButtonImgWidth ));
      pageContext.write(_jsp_string9, 0, _jsp_string9.length);
      out.print(( viewButtonImgHeight ));
      pageContext.write(_jsp_string32, 0, _jsp_string32.length);
      out.print(( viewButtonImgAltText ));
      pageContext.write(_jsp_string33, 0, _jsp_string33.length);
      out.print(( viewButtonURL ));
      pageContext.write(_jsp_string34, 0, _jsp_string34.length);
      out.print(( viewButtonImgAltText ));
      pageContext.write(_jsp_string16, 0, _jsp_string16.length);
      out.print(( viewButtonText ));
      pageContext.write(_jsp_string35, 0, _jsp_string35.length);
      	} 
      pageContext.write(_jsp_string30, 0, _jsp_string30.length);
      	if( showPost ) {  count += 3; 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -