??xml version="1.0" encoding="utf-8" standalone="yes"?>成人免费在线电影,蜜桃999成人看片在线观看,亚洲啪啪91http://www.aygfsteel.com/nomigd/category/9658.html何以解忧Q唯有学习!让每一个h都能Open Source zh-cnWed, 28 Feb 2007 15:45:08 GMTWed, 28 Feb 2007 15:45:08 GMT60对网上《HttpSessionListenerl计在线人数 》一文做一下修?/title><link>http://www.aygfsteel.com/nomigd/articles/41928.html</link><dc:creator>何以解忧Q唯有学习!让每一个h都能Open Source </dc:creator><author>何以解忧Q唯有学习!让每一个h都能Open Source </author><pubDate>Wed, 19 Apr 2006 07:55:00 GMT</pubDate><guid>http://www.aygfsteel.com/nomigd/articles/41928.html</guid><wfw:comment>http://www.aygfsteel.com/nomigd/comments/41928.html</wfw:comment><comments>http://www.aygfsteel.com/nomigd/articles/41928.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nomigd/comments/commentRss/41928.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nomigd/services/trackbacks/41928.html</trackback:ping><description><![CDATA[今天在chinaitpower上看到这样一文章,原文内容如下Q?br /><pre>/** * ~写以下SessionCounter.java * q编译ؓSessiionCounter.class * 然后攑ֈ你的|站的classpath? * SessionCount(自己建立此目?下面 */ package SessionCount; import javax.servlet.*; import javax.servlet.http.*; public class SessionCounter implements HttpSessionListener { private static int activeSessions = 0; public void sessionCreated(HttpSessionEvent se) { activeSessions++; } public void sessionDestroyed(HttpSessionEvent se) { if(activeSessions > 0) activeSessions--; } public static int getActiveSessions() { return activeSessions; } } 接着建立online.jsp文g用于昄在线人数 <%@ page import="SessionCount.SessionCounter" %> 在线Q?lt;%= SessionCounter.getActiveSessions() %> 然后需要在你的|站的WEB-INF中徏立web.xml 文g内容如下Q? <!-- Web.xml --> <br /><?xml version="1.0" encoding="ISO-8859-1"?> </pre><pre><!DOCTYPE web-app <br />PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" <br />"<a > </pre><pre><web-app> </pre><pre><!-- Listeners --> <br /><listener> <br /><listener-class> <br />SessionCount.SessionCounter <br /></listener-class> <br /></listener> </pre><pre></web-app> <br /><br /><br /><br /><br /><br /><br /></pre><pre>试了一下,发出当用戯用SessionCountercLsessionCreatedҎ被执行,activeSessions?Q但是,关闭览?br />sessionDestroyedq没有被执行Qؓ什么呢Q原因是因ؓx览器不一定会释放sessionQ所以,DsessionDestroyed<br />不会被执行,那么Q有什么方法呢Q退出页面logout.jsp上,使用session.invalidate()释放会话,那么sessionDestroyed<br />也就被执行,在线人数也就相应的减1Q或是设|session的不zd旉{等?/pre><img src ="http://www.aygfsteel.com/nomigd/aggbug/41928.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nomigd/" target="_blank">何以解忧Q唯有学习!让每一个h都能Open Source </a> 2006-04-19 15:55 <a href="http://www.aygfsteel.com/nomigd/articles/41928.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一些不常用的HTML标签http://www.aygfsteel.com/nomigd/articles/41298.html何以解忧Q唯有学习!让每一个h都能Open Source 何以解忧Q唯有学习!让每一个h都能Open Source Sat, 15 Apr 2006 17:12:00 GMThttp://www.aygfsteel.com/nomigd/articles/41298.htmlhttp://www.aygfsteel.com/nomigd/comments/41298.htmlhttp://www.aygfsteel.com/nomigd/articles/41298.html#Feedback0http://www.aygfsteel.com/nomigd/comments/commentRss/41298.htmlhttp://www.aygfsteel.com/nomigd/services/trackbacks/41298.html    <nobr></nobr>标签对用于防止浏览器标{֯中过长的内容自动换行昄Q它对地址、数学算式、一行数字、程序代码等ؓ有用?br />
2?lt;blockquote></blockquote>
   ?lt;blockquote></blockquote>标签对之间加入的文本会在浏览器中按~进的效果显C,与在普通的文本文g中用Tab键进行羃q的效果一栗?br />
3?lt;per></per>
   <per></per>标签对用来对文本q行预格式化处理Q浏览器昄|页文g中的文本内容Ӟ它会忽略用来分隔和对齐网容的许多I格及换行。预格式化文本标{֯<per></per>告诉览器在屏幕上显C嵌套在其中的所有空格和I。在预格式化标签中,不能使用<img>标签来插入图片,也不能?lt;object>标记来插入ActiveX控g或Java程?Java Applet)?br />

何以解忧Q唯有学习!让每一个h都能Open Source 2006-04-16 01:12 发表评论
]]>
JIRA安装手记http://www.aygfsteel.com/nomigd/articles/39865.html何以解忧Q唯有学习!让每一个h都能Open Source 何以解忧Q唯有学习!让每一个h都能Open Source Fri, 07 Apr 2006 08:30:00 GMThttp://www.aygfsteel.com/nomigd/articles/39865.htmlhttp://www.aygfsteel.com/nomigd/comments/39865.htmlhttp://www.aygfsteel.com/nomigd/articles/39865.html#Feedback3http://www.aygfsteel.com/nomigd/comments/commentRss/39865.htmlhttp://www.aygfsteel.com/nomigd/services/trackbacks/39865.html         JIRA是由www.atlassian.com开发的ZJ2EE的问题跟t管理系l,它正被广泛的被开源Y件组l,以及全球著名的Y件公怋用,它堪U是J2EE的Bugzilla?br />         JIRA下蝲地址http://www.atlassian.com/software/jira
         我下载的是jira-enterprise-3.5.3的?br />         下蝲回来后,解压出来Q首先你要检查一下你是否安装了JDKQ如果连JDK都没装那你就不要看本文算了,Q不装JDKQ那是搞JAVA的)呵呵Q开玩笑
         安装了JDKQ你q要安装数据库,数据库可以选择MySql,或者是OracleQMSSQL支持不支持不太清楚,{我再找扑֮方资料再说吧Q现在没I?img height="19" src="http://www.aygfsteel.com/Emoticons/teeth_smile.gif" width="19" border="0" />?br />         好,现在我们以MySqlZQ装好数据库后还要下载JDBC驱动q可以在MySql官方|站http://www.mysql.com/上可以找刎ͼq里有一点要注意?是|上的资料说

-----------------下以是引用的------------------------------------
Mysql JDBC驱动Qmysql-connector-java-3.0.14-production-bin.jar Q?/p>

注意Q?/strong>Mysql数据库版本和JDBC驱动要选择好版本,不然Ҏ出现中文q?br />
---------------------------------------------------------------------------------------------------------------------------
它没有说清楚用的是什么版本的Q?br />试证明Q用4.1版本的MySQL?.1.8q是会出Cؕ码,主要表面在在JIRA在项目信息或是描qCؓ中文是,查看时会出现qQ这是,我后来改??的,字符集没变,问题解决?br />
接下来就配置conf/server.xml q个文g?q个文g不知道在那?KAOQTOMCAT配置q了吧,不懂的BAIDU一下多得是)

---------------------------以下引用官方的说?------------------

  1. Edit conf/server.xml (or conf/Catalina/localhost/jira.xml if you're not using Standalone), and customize the username, password, driverClassName, and url parameters for the Datasource (here assuming MySQL). Please refer to one of the sections below that applies to your database for more information.

    <Server port="8005" shutdown="SHUTDOWN">
    
      <Service name="Catalina">
    
        <Connector port="8080"
          maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
          enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" />
    
        <Engine name="Catalina" defaultHost="localhost">
          <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
    
            <Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="true">
              <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
                username="[enter db username]"
                password="[enter db password]"
                driverClassName="com.mysql.jdbc.Driver"
                url="jdbc:mysql://localhost/jiradb?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF8"
                [ delete the minEvictableIdleTimeMillis and timeBetweenEvictionRunsMillis params here ]
                />
    
              <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"
                factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
              <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>
            </Context>
    
          </Host>
        </Engine>
      </Service>
    </Server>

    Note: if you can't find this section at all, you've probably got the wrong file - search for mentions of 'jira' in the files under conf/, or ask the person who installed JIRA in Tomcat.

-----------------------------------------------------------------------------------------------------------------------

E文不会看Q好Q那我就说一下吧Q其它的不用你理Q你主要注意改一下加_那部䆾usernameZ数据库的用户名,password为密码如果用MySql的,driverClassName不用改了。jiradb为数据库名,如果你没改也不需要改了?br />
好下面我们来配置W二个文?br />
---------------------------以下引用官方的说?------------------

Edit atlassian-jira/WEB-INF/classes/entityengine.xml, and change the field-type-name attribute to the value for your database (valid values are listed in the file). As noted in the comment, other databases/appservers may require other entityengine.xml changes:

<!-- DATASOURCE - You will need to update this tag for your installation.

    1. Update field-type-name attribute to match your database.
    Possible values include: cloudscape, db2, firebird, frontbase, hsql, mckoidb, mysql, mssql, oracle, postgres, postgres72, sapdb, sybase
    2. If using Orion, JBoss or Jetty you will need to customize the <jndi-jdbc> tag.
      See http://www.atlassian.com/software/jira/docs/latest/servers/
    3. If using Postgres 7.3+ (schema-aware), add:
        schema-name="public"
      to the datasource attribute list below.
     If using DB2, add:
        constraint-name-clip-length="15"
      to the datasource attribute list below, and an appropriate schema-name attribute, eg:
        schema-name="DB2INST1"
 -->
 <datasource name="defaultDS" field-type-name="mysql"
        helper-class="org.ofbiz.core.entity.GenericHelperDAO"
      check-on-start="true"
      ...
    

If you forget to do this and start JIRA, it may create database tables incorrectly. See this page if this happens to you
---------------------------------------------------------------------------------------------------------------------------

看到加粗的地Ҏ有,用mysql的,改mysqlQ这是数据库cd啊?br />接下来是最后一了Q运行Mysql命o行,新徏一个名为jiradb的数据库Q(如果刚才没改的话Q?br />
好了Q现在你可以q行了,q行%JIRA_HOME%\bin\startup.bat  接下来,q行http://localhost:8080
看到效果了吧Q现在才是真正的安装呢,q个q程Q它要你输入用户名,密码Q跟一些信息,q要输入licenseQ这个东西你可以在官方主上生成一?0天试用期的,具休怎么获得Q这里我不讲了,我有3.5.3的破解,可以用一q的Q是好友jackrongl的Q要的朋友可以联pL?br />      好了Q这是我的处女作啊Q介l得不好Q希望大家指点,一起学习,一赯步!



]]>
վ֩ģ壺 ͬ| ֶ| ͼ| | | | | ӳ| ʡ| | | ƽ| ɽ| | | | ˮ| ͭ| | | | | Ϫ| ۰| Դ| ҵ| | | ֹ| ׷| | ޽| | ƺ| | ͨ| ˰| | ʻ| ƽ| Զ|