Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java Mail send email

package com.eastpro.batch.biz;
//import javax.activation.*;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.mail.internet.*;
import javax.mail.*;
import java.io.UnsupportedEncodingException;
import java.util.*;
/**
 * Insert the type's description here. Creation date: (4/13/2001 4:09:33 PM)
 *
 * @author: Administrator
 */
public class JavaMail {
 public java.lang.String host = null;
 protected java.lang.String from;
 protected java.lang.String to;
 protected java.lang.String subject;
 protected String htmlText;
 protected String[] imgsPath = null;
 public javax.mail.Address invalidAddress[] = null;
 public javax.mail.Address validSentAddress[] = null;
 public javax.mail.Address validUnsentAddress[] = null;
 protected java.lang.String replyTo;
 protected java.lang.String cc = null;
 protected java.lang.String bcc;
 protected String contentType = null;
 protected String[] attachFile = null;
 protected String password;
 protected String username;
 public JavaMail() {
 }
 java.lang.String getBcc() {
  return bcc;
 }
 java.lang.String getCc() {
  return cc;
 }
 java.lang.String getReplyTo() {
  return replyTo;
 }
 public String getContentType() {
  return contentType;
 }
 public void setContentType(String contentType) {
  this.contentType = contentType;
 }
 public void setBcc(java.lang.String newBcc) {
  bcc = newBcc;
 }
 public void setCc(java.lang.String newCc) {
  cc = newCc;
 }
 public void setfrom(java.lang.String newfrom) {
  from = newfrom;
 }
 public void setHost(java.lang.String newHost) {
  host = newHost;
 }
 public void setHtmlText(String newHtmlText) {
  ht


Ïà¹ØÎĵµ£º

JavaÎÞÐè½âѹֱ½Ó¶ÁÈ¡ZipÎļþÀïµÄÎļþÄÚÈÝ

package com.wicresoft.jpo;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipInputStream;
publi ......

¶à·¹é²¢ÅÅÐò¡¾JAVAʵÏÖ¡¿

¶ÔÔ¶Ô¶´óÓÚÄÚ´æµÄÊý¾Ý½øÐÐÍâÅÅÐò£¬Ôڶ෱ȽϵÄʱºòÓðÜÕßÊ÷ЧÂÊ»á¸ü¸ß¡£
package my.sort;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.F ......

JavaÓ¦Óü¼ÇÉ£º¶ÔÓÚ Cookie µÄ²Ù×÷Ïê½â


1.ÉèÖÃCookie
Cookie cookie = new Cookie("key", "value");
cookie.setMaxAge(60);
ÉèÖÃ60ÃëÉú´æÆÚ£¬Èç¹ûÉèÖÃΪ¸ºÖµµÄ»°£¬ÔòΪä¯ÀÀÆ÷½ø³ÌCookie(ÄÚ´æÖб£´æ)£¬¹Ø±Õä¯ÀÀÆ÷¾ÍʧЧ¡£
cookie.setPath("/test/test2");
ÉèÖÃCookie·¾¶£¬²»ÉèÖõĻ°Îªµ±Ç°Â·¾¶(¶ÔÓÚServletÀ´ËµÎªrequest. ......

javaµ÷Óô洢¹ý³Ì

 
A:²»´øÊä³ö²ÎÊýµÄ
  ---------------²»´øÊä³ö²ÎÊýµÄ----------------------------------
create procedure getsum
@n int =0<--´Ë´¦Îª²ÎÊý-->
as
declare @sum int<--¶¨Òå±äÁ¿-->
declare @i int
set @sum=0
set @i=0
while @i<=@n begin
set @sum=@sum+@i
set @i=@i+1
end
print ......

java ³õʼ»¯µÄ˳ÐòºÍ²½Öè

´ó¼ÒÔÚÈ¥²Î¼ÓÃæÊÔµÄʱºò£¬¾­³£»áÓöµ½ÕâÑùµÄ¿¼Ì⣺¸øÄãÁ½¸öÀàµÄ´úÂ룬ËüÃÇÖ®¼äÊǼ̳еĹØϵ£¬Ã¿¸öÀàÀïÖ»Óй¹ÔìÆ÷·½·¨ºÍһЩ±äÁ¿£¬¹¹ÔìÆ÷Àï¿ÉÄÜ»¹ÓÐÒ»¶Î´úÂë¶Ô±äÁ¿Öµ½øÐÐÁËijÖÖÔËË㣬ÁíÍ⻹ÓÐһЩ½«±äÁ¿ÖµÊä³öµ½¿ØÖÆ̨µÄ´úÂ룬ȻºóÈÃÎÒÃÇÅжÏÊä³öµÄ½á¹û¡£Õâʵ¼ÊÉÏÊÇÔÚ¿¼²éÎÒÃǶÔÓڼ̳ÐÇé¿öÏÂÀàµÄ³õʼ»¯Ë³ÐòµÄÁ˽⡣
ÎÒÃÇ´ó¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ