锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久电影中文字幕,色网址在线观看,国产精品扒开腿爽爽爽视频http://www.aygfsteel.com/lmsun/category/3000.htmlzh-cnWed, 28 Feb 2007 20:24:35 GMTWed, 28 Feb 2007 20:24:35 GMT60閰嶇疆ssl in tomcathttp://www.aygfsteel.com/lmsun/archive/2005/11/02/17820.htmlmy javamy javaWed, 02 Nov 2005 07:21:00 GMThttp://www.aygfsteel.com/lmsun/archive/2005/11/02/17820.htmlhttp://www.aygfsteel.com/lmsun/comments/17820.htmlhttp://www.aygfsteel.com/lmsun/archive/2005/11/02/17820.html#Feedback0http://www.aygfsteel.com/lmsun/comments/commentRss/17820.htmlhttp://www.aygfsteel.com/lmsun/services/trackbacks/17820.html
keytool -genkey -alias tomcat -keyalg RSA

緙虹渷璇佷功鏂囦歡鍚嶄負錛?keystore

2銆佷慨鏀規枃浠秙erver.xml
  <Connector port="8443"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" debug="0" scheme="https" secure="true"
               clientAuth="false"
      keystoreFile="C:\keystore\.keystore"
      keystorePass="netscape"
      sslProtocol="TLS" />

3銆亀eb.xml
<security-constraint>
    <web-resource-collection>
      <web-resource-name>Purchase</web-resource-name>
      <url-pattern>/ssl/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
      <role-name>registered-user</role-name>
    </auth-constraint>
    <user-data-constraint>
      <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
  </security-constraint>
 
  <!-- Only users in the administrator role can access
       the delete-account.jsp page within the admin
       directory. -->
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Account Deletion</web-resource-name>
      <url-pattern>/admin/delete-account.jsp</url-pattern>
    </web-resource-collection>
    <auth-constraint>
      <role-name>administrator</role-name>
    </auth-constraint>
  </security-constraint>
 
  <!-- Tell the server to use form-based authentication. -->
  <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
      <form-login-page>/admin/login.jsp</form-login-page>
      <form-error-page>/admin/login-error.jsp</form-error-page>
    </form-login-config>
  </login-config>
   
 
4銆侀噸鍚痶omcat




my java 2005-11-02 15:21 鍙戣〃璇勮
]]>
Pro JSP 鑻辨枃絎笁鐗堝涔犵瑪璁?絎竴绔?http://www.aygfsteel.com/lmsun/archive/2005/08/24/10936.htmlmy javamy javaWed, 24 Aug 2005 09:20:00 GMThttp://www.aygfsteel.com/lmsun/archive/2005/08/24/10936.htmlhttp://www.aygfsteel.com/lmsun/comments/10936.htmlhttp://www.aygfsteel.com/lmsun/archive/2005/08/24/10936.html#Feedback0http://www.aygfsteel.com/lmsun/comments/commentRss/10936.htmlhttp://www.aygfsteel.com/lmsun/services/trackbacks/10936.htmlThe include Directive


The following is the syntax for the include directive:

<%@ include file="relativeURL" %>

As you can see the directive accepts a single file attribute that is used to indicate the resource whose content is to be included in the declaring JSP. The file attribute is interpreted as a relative URL; if it starts with a slash it's interpreted as relative to the context of the web application (namely a context-relative path), otherwise it's interpreted as relative to the path of the JSP that contains the include directive (namely a page relative path). The included file may contain either static content, such as HTML or XML, or another JSP page.

For example:
<%@ include file="/copyright.html"%>


Let's consider a real-world example of such a templating mechanism that utilizes the include directive to provide a consistent page layout for a web application.

Consider the following two JSP pages:

Header.jsp
    <html>
      <head><title>A Very Simple Example</title></head>
      <body style="font-family:verdana,arial;font-size:10pt;">
        <table width="100%" height="100%">
          <tr bgcolor="#99CCCC">
            <td align="right" height="15%">Welcome to this example...</td>
          </tr>
          <tr>
            <td height="75%">

Footer.jsp
           </td>
         </tr>
         <tr bgcolor=" #99CC99">
           <td align="center" height="10%">Copyright ACompany.com 2003</td>
         </tr>
       </table>
     </body>
   </html>

As you can see, Header.jsp declares the starting elements of an HTML table that is to be 100 percent of the size of the page and has two rows, whereas Footer.jsp simply declares the closing elements for the table. Used separately, either JSP will result in partial HTML code that will look very strange to a user but when they're combined using the include directive it's easy to create consistent pages as part of a web application.

Let's see just how simple this basic template mechanism is to use:

Content.jsp
    <%@ include file='./Header.jsp'%>
    <p align="center">The Content Goes Here...!!!</p>
    <%@ include file='./Footer.jsp'%>

2銆?BR>date.jsp
<html>
  <body>
    <h2>Greetings!</h2>
 <P>The current time is <%=new java.util.Date()%> precisely
  </body>
</html>

3銆?BR>dateBean.jsp
<html>
    <head><title>Professional JSP, 3rd Edition</title></head>
    <body style="font-family:verdana;font-size:10pt;">
        <jsp:useBean id="date" class="com.apress.projsp20.ch01.DateFormatBean"/>
        <h2>Today's date is <%= date.getDate() %></h2>
    </body>
</html>

鎴栵細
dateBean_getProperty.jsp
<html>
    <head><title>Professional JSP, 3rd Edition</title></head>
    <body style="font-family:verdana;font-size:10pt;">
        <jsp:useBean id="date" class="com.apress.projsp20.ch01.DateFormatBean"/>
        <h2>Today's date is <jsp:getProperty name="date" property="date"/></h2>
    </body>
</html>

dateBean_setProperty.jsp
<html>
    <head><title>Professional JSP, 3rd Edition</title></head>
    <body style="font-family:verdana;font-size:10pt;">
        <jsp:useBean id="date" class="com.apress.projsp20.ch01.DateFormatBean"/>
        <jsp:setProperty name="date" property="format"
                         value="EEE, d MMM yyyy HH:mm:ss z"/>
        <h2>Today's date is <jsp:getProperty name="date" property="date"/></h2>
    </body>
</html>

鍏朵腑DateFormatBean.java:
   package com.apress.projsp20.ch01;

    import java.util.Date;
    import java.text.*;

    public class DateFormatBean {
      private DateFormat dateFormat;
      private Date date;

      public DateFormatBean() {
        dateFormat = DateFormat.getInstance();
        date = new Date();
      }

      public String getDate() {
        return dateFormat.format(date);
      }

      public void setDate(Date date) {
        this.date = date;
      }

      public void setFormat(String format) {
        this.dateFormat = new SimpleDateFormat(format);
      }
    }
渚嬶細SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");



my java 2005-08-24 17:20 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 马公市| 南投市| 长子县| 永善县| 临夏市| 平和县| 唐河县| 常宁市| 琼结县| 岐山县| 固安县| 边坝县| 新津县| 江阴市| 克什克腾旗| 彭山县| 东丰县| 亚东县| 庄河市| 荥经县| 宽城| 福鼎市| 江永县| 高密市| 葵青区| 辉县市| 普格县| 雷波县| 台中市| 怀安县| 卓资县| 泗洪县| 大城县| 石景山区| 咸宁市| 合肥市| 沽源县| 东乌| 宁南县| 沁阳市| 固安县|