setup2.jsp
来自「Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛」· JSP 代码 · 共 103 行
JSP
103 行
<%/** * $RCSfile: setup2.jsp,v $ * $Revision: 1.2 $ * $Date: 2002/07/03 00:48:57 $ * * Copyright (C) 1999-2002 CoolServlets, Inc. All rights reserved. * * This software is the proprietary information of CoolServlets, Inc. * Use is subject to license terms. */%><%@ page import="java.io.*, java.util.*, java.lang.reflect.*, com.jivesoftware.forum.*, com.jivesoftware.forum.util.*"%><% // Get the global Jive locale Locale locale = JiveGlobals.getLocale(); // Set the JSP page to use the Jive locale response.setLocale(locale); // Set the locale String language = ParamUtils.getParameter(request,"language"); if (language != null) { if ("English".equals(language)) { JiveGlobals.setLocale(Locale.US); } else if ("French".equals(language)) { JiveGlobals.setLocale(Locale.FRENCH); } // mark this section as finished session.setAttribute("sidebar.1.light", GREEN); response.sendRedirect("setup3.jsp"); return; }%><%@ include file="global.jsp" %><%@ include file="header.jsp" %><table cellpadding="6" cellspacing="0" border="0" width="100%"><tr><td width="1%" valign="top"><% // set sidebar properties session.setAttribute("sidebar.1.active", new Boolean(true)); if (!GREEN.equals(getSessionString(session,"sidebar.1.light"))) { session.setAttribute("sidebar.1.light", YELLOW); }%><%@ include file="sidebar.jsp" %></td><td width="99%" valign="top"> <b>Language Selection</b> <hr size="0"> <font size="-1"> Please choose the language that you would like Jive to use. You may also change the language anytime in the Jive admin tool. <ul> <form action="setup2.jsp"> <% if (locale.equals(Locale.US)) { %> <input type="radio" id="rb01" name="language" value="English" checked> <% } else { %> <input type="radio" id="rb01" name="language" value="English"> <% } %> <label for="rb01">English</label> <p> <font size="-2"> (More languages to come) </font> <%-- <br> <input type="radio" id="rb02" name="language" value="French"<%= locale.equals(Locale.FRENCH)?" checked":"" %>> <label for="rb02">Français</label> <br> <input type="radio" id="rb03" name="language" value="Chinese"<%= locale.equals(Locale.CHINESE)?" checked":"" %>> <label for="rb03"><img src="images/chinese.gif" width="32" height="15" alt="Chinese" border="0"> (Chinese)</label> <br> --%> </ul> </font> <hr size="0"> <div align="center"> <input type="submit" value="Continue"> </form> </div> <%@ include file="footer.jsp" %></td></tr></table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?