Tuesday, August 3, 2010

Tag Library JSP Servlet call



Taglib Tag library

Tags are defined and distributed in a structure known as the tag library, a tag library is composed of meta-information and a collection of classes:

1. Tags processors: implementation of the Java class custom labels.

2. Label Additional Information (TEI): JSP container to provide edge series to confirm the tag attributes and create a variable class.

3. Tag library descriptor (TLD): description of a single tag and the tag library attributes of XML documents.

Tag handler and tag additional information needs to be positioned in the JSP container class loader can find it. Tag library descriptor can be specified in the URL location of the symbol means. JSP1.1 specifications to accept a package JSP container will cause the structure of the tag library JAR file. TLD must be / META-INF directory of the file named taglib.tld, JAR files are copied to the / WEB-INF / lib directory.

1, the label achieved

1. Development steps

a. the definition of tag names, attributes, declarations of variables and labels body content.

b. write tag library descriptor TLD.

c. write tag handler.

d. the use of labels in the JSP page.

2.JSP page in the JSP container conversion steps:

JSP page there are three forms: JSP file, java file and class files.

a. command element, and the JSP container to provide conversion information.

b.HTML line _JSPService () method in accordance with the order to switch to out.print () language name.

c. statement of the script element is copied intact to the _JSPService () method outside of the source code.

d. script element expression in _JSPService () method in accordance with the order to switch to out.print () language name.

e. script elements Scriptlet be copied intact to the _JSPService () method.

f. conduct element is converted into run-time performance of its functions the logic code.

g. custom tag is expanded to its corresponding tag handler calls the method in the Java statement.

3. Tags in the JSP container conversion steps:

a.JSP container positioning using taglib directive element tag library descriptors, used to customize the page to match labels and TLD.

b. Read the label tag library descriptor list and the name of each class of associated label.

c. encounters a tag in the page, the look and name tags with the specified prefix related to a tag library.

d. Containers used in the TLD to find the tag structure information to generate a complete Java statement labeling function.

2, tag library descriptor (TLD)

Tag library descriptor is a description of the tag library tag information and library in each tag and its attributes XML document processor.

The DTD tag library descriptor element by a simple composition, this element contains the following number of child elements.

The tag library tag information

鈼?tlibversion tag library version number. Is a point decimal number, up to 4 groups of numbers separated by decimal points.

鈼?JSPversion JSP tag library specification required minimum version. For example JSP1.1

鈼?shortname acronym name tag library. JSP can use the tag name as the default library prefix.

鈼?uri URI tag library the only element. Can be downloaded from the URL location of typical taglib location.

鈼?info Tag library descriptions.

Each tag and attribute tag in the TLD processor to add tags, description tags for each component library. name and the name of the prefix tag library for use with the label's name, is the only label JSP container identification. tagclass label tag processor class to achieve the full name. teiclass tag additional information (TEI) class full name. TEI class is given on the label processor to create variables and on the label of the Executive Secretary of any validation information. bodycontent describes how to use the label tag handler body content. There are three values:

鈼?empty: said tag body must be empty;

鈼?JSP: that script elements and templates, and other labels as being assessed.

鈼?tagdependent: body content is intact written BodyContent, other script elements in source code form, without being interpreted JSP container.

info label human-readable descriptive information. attribute is encoded using the label attribute information. Used to define the label attribute. Property name: property name.

鈼?true | false: the location of property used in the label is to be encoded.

鈼?true | false: the specified property value can use the expression.

Third, the label processor

JSP tag handler is a container through the realization of a series of pre-defined method called custom tag implementation of a Java class act.

Tag handler implements the behavior of tags, labels processor is Java class.

1. Label processor work

a. Import javax.Servlet.JSP and javax.Servlet.JSP.tagext package.

b. achieve javax.Servlet.JSP.tagext package Tag interface or BodyTag interfaces. BodyTag is sub-interfaces Tag.

c. inherited class or BodyTagSuppoert TagSupport class. They are the interface default implementation.

d. Heavy public int doStartTag () throws JSPException method.

2. Label processor interface and implementation

鈼?javax.Servlet.JSP.tagext.Tag is to achieve the most basic interface label.

鈼?javax.Servlet.JSP.tagext.TagSupport Tag interface to achieve the specific class.

Usually not directly implement class inheritance tagSupport Tag interfaces are often useful. In addition to all the necessary methods provide the default implementation, but also save the pageContext object and the nested tags support.

Tag interface contains four constants that doStartTag () and doEndTag () method may return code.

EVAL_BODY_INCLUDE When the doStartTag () returns, the specified Servlet tag body should be assessed.

SKIP_BODY When the doStartTag () returns, the specified Servlet tag body should be ignored.

EVAL_PAGE When the doEndTag () returns, the rest of the specified page should be assessed.

SKIP_PAGE When the doEndTag () returns, the rest of the specified page was skipped.

Tag interface methods

public void setPageContext (PageContext ctx) generated Servlet the request processor to perform other tasks before the first call to this method, the implementation class context object should be preserved so that it can use the life of the label. From the page in the context of JSP tag handler can access all the hidden objects.

public void setParent (Tag p) using a standard A stack can be found operating the label on it. Immediately after the setPageContext call.

public Tag getParent () returns the parent tag.

public int doStartTag () throws JSP page set the context, the parent tag and start tag after the coding of the property call. Return code shows whether the JSP Servlet implementation body to assess the label.

public int doEndTag () throws JSPException whether the mark when the encounter node call. JSP code that is returned to New York on the following pages of the rest.

public void release () to ensure that the page is called before exiting. Release of resources and reset the label processor state.

TagSupport class methods

public static Tag finAncestorWithClass (Tag thisTag, Class cls) is the parent tag handler to find the required run-time label stack. Processor can provide a label within the sub-label called method.

public void setId (String id) save and retrieve the id attribute in the specified name.

public void setValue (String name, Object o) in the local hash table setting specifies the name of the value.

public Object getValue (String name) from the local hash table value for the specified name.

public void removeValue (String name) Remove from the local hash table, the value of the specified name.

public Enumeration getValues () returns a hash table in the enumeration of keywords.

3. Label processor lifetime

a. generate Servlet need to create an instance of tag handler class. Implementations call the JSP container is usually a factory class method, factory class instance pool contains a tag processor so that it can reuse the object is no longer active.

b. Initialize label processor, Servlet informed of its presence. Servlet label processor by calling two methods to achieve this process: setPageContext (PageContext ctx) and setParent (Tag parent).

c. If the tag has attributes, attribute values passed through the processor to provide setter methods to the object. Property setter method is a label the only way to support the required attributes.

d. the page context and parent label has been transferred home and already have property. At this point called label processor doStartTag () method, which can be read and implemented to achieve these variables needed to calculate standard A function and operation. doStartTag () method must return an integer. Back EVAL_BODY_INCLUDE the normal processing tag body, to return SKIP_BODY from the initial JSP page until the end of the mark and the contents of the tag are ignored.

e. tag after the body was assessed or ignored call tag processor doEndTag () method to return the rest of the page EVAL_PAGE then be evaluated, return SKIP_PAGE the Servlet code immediately from _JSPService () returned.

4. Body tag processor interface and implementation

Tag javax.Servlet.JSP.tagext.BodyTag is sub-interfaces.

javax.Servlet.JSP.tagext.BodyTagSupport achieve BodyTag class.

BodyContent is javax.Servlet.JSP.JSPWriter subclass, but distinct from its parent class.

BodyContent the content of the object is not automatically written into the Servlet output stream, but the accumulation of a string in the cache. When the label after the completion of the target body still in the doEndTag () method can be applied by the getString () or getReader () method of operation. And, where necessary, modify and write recovery JSPWriter output stream.

BodyContent class methods

public void flush () throws IOException replication JSPWrite.flush () method so that it always produces overflow. Refresh write longer valid, because it is not connected to the actual output will be written to the stream.

public void clearBody () reset BodyContent cache is empty.

public Reader getReader () return Reader reads the body content.

public void writeOut (Write w) to write the body contents of the specified output.

public JSPWrite getEnclosing Write () returns the stack is written by the next higher object (may be another BodyContent object).

BodyTag interface defines a new integer constant

EVAL_BODY_TAG When the doStartTag () returns, making new BodyContent object is created and associated with this tag handler. When doAfterBody () returns, so JSP Servlet modifying the label control in any variable assessed again after the body.

BodyTag interface method

public void setBodyContern (BodyContent out) in the current JSPWriter has been written, a new BodyContent after being created by the JSP Servlet call, it occurs in doStartTag () after.

public void doInitBody () throws JSPException setBodyContent (), the body is called life cycle assessment method before. If multiple assessment body, this method is called only once.

public init doAfterBody () throws JSPException body was assessed, BodyContent writer is still active when the call of the life cycle approach. This method must return EVAL_BODY_TAG or SKIP_BODY, if returned EVAL_BODY_TAG assessed again when the body.

BodyTagSupport class methods

public int doStartTag () throws JSPException replication TagSupport in the doStartTag () method.

public int doEndTag () throws JSPException call TagSupport in the doEndTag () method returns the result.

public void setBodyContent (BodyContent out) in a protected member variable bodyContent a new body to save the contents of the object, sub-class can directly access this object.

public void doInitBody () throws JSPException default do nothing. Is need to implement sub-classes initialize the replication.

public int doAfterBody () throws JSPException assessment for each body was called by the JSP Servlet, physical object with the contents still is active. Back SKEP_BODY or EVAL_BODY_TAG the body be evaluated again

public void release () set the bodyContent object to null, then call super.release ().

public BodyContent getBodyContent () return bodyContent variable. Subclass has access to protected variables, but this method allows independent label deal with this body content type to send the output.

public JSPWriter getPreviousOut () call in the bodyContent variable getEnclosingWriter () and easy way to return the results.

5. Body tag processor lifetime

a. generate Servlet need to create an instance of tag handler class. Implementations call the JSP container is usually a factory class method, factory class instance pool contains a tag processor so that it can reuse the object is no longer active.

b. Initialize label processor, Servlet informed of its presence. Servlet label processor by calling two methods to achieve this process: setPageContext (PageContext ctx) and setParent (Tag parent).

c. If the tag has attributes, attribute values passed through the processor to provide setter methods to the object. Property setter method is a label the only way to support the required attributes.

d. the page context and parent label has been transferred home and already have property. Call label processor doStartTag () method, which can read these variables and perform the necessary functions to achieve the calculation of standard A and operation.

doStartTag () method must return an integer.

鈼?Back EVAL_BODY_TAG the normal processing tag body (skip to e);

鈼?Back SKIP_BODY from the initial JSP page until the end of mark and the contents of the tag are ignored. (Skip to f)

e. If the return EVAL_BODY_TAG, then the normal processing tag body.

e1. in the stack to save the current JSPWriter object, create a new BodyContent object, and its set out for the JSP page context object stored in the context of the property named name. With its setBodyContent () method.

e2. call doInitBody () method to initialize.

e3. processing tag body. Write output BodyContent object, this process depends on the TLD label element, there are three possible values.

e4. call doAfterBody () method, in vivo body content is written JSPWriter, can be achieved as follows:

鈼?JSPWriter out = bodyContent.getEnclosingWriter ();

鈼?out.println (bodyContent.getString ());// bodyContent.writeOut (out);

鈼?bodyContent.clear ();

e5.doAfterBody () method returns two possibilities:

鈼?Back EVAL_BODY_TAG, the re-evaluation of the tag body, which is being recycled array and enumerate the typical situation.

鈼?Back SKIP_PAGE, to continue the remainder of the page.

e6. body of content completed, the process of creating it was the reverse:

Call pageContent.popBody () method to retrieve the object in front of JSPWriter. Those settings will be written back out implicit object.

f. tag after the body was assessed or ignored calls doEndTag () method, allowing label processor as the output stream back to the content.

Back EVAL_PAGE the rest of the page being evaluated;

Back SKIP_PAGE the Servlet code immediately from _JSPService () returned.

g. At this point the body content in a protected bodyContent object still available. To incorporate the Servlet output stream:

鈼?JSPWriter out = pageContext.getOut ();

鈼?out.println (bodyContent.getString ()); or

鈼?bodyContent.WriteOut (pageContext.getOut ());

6. Tag category Additional information

4, the label instructions

taglib directive aims to specify the TLD element location, set on the page with the label to distinguish a short alias.

Syntax:

Attribute: prefix: tag library used to identify unique identifier. uri: tag library's own URI.

uri need not point to an actual file, which is in the web.xml JSP container can find the actual file location of the unique identifier.







相关链接:



Picked Games Kids



Limit of WMA format music



Versed in pop-up window for ASP.NET



How to convert mp3 to aac



Shuo-side by side with the day THINKING up the computer "settle down"



E-Mail Clients introduction



Let your XP into a Mac OS X



Flv Format



how to Convert mp3 to mp4



Avi Converter



Tencent behind the Opponent who already 51.com



"Fallout 3" aircraft carrier task of the city of clues and details of the Extension



Blue Wave eras invited to attend the China Shipbuilding Heavy Industry "transfer mode" Expert Group



Monday, July 26, 2010

Jie Mi Foxconn employees jumped the truth



Editor's Note

This has already occurred in March is the third casualty incident. Shenzhen Longhua, Foxconn's biggest OEM factory in China, one after another in the event of tragedy.

March 29, 2009 at 3 pm, Longhua, Bao'an District, Shenzhen Foxconn Technology Park, a 23-year-old man from Hunan Province Foxconn staff quarters upstairs from falling, died on the spot. The incident was alleged to have employees with another man was seriously injured jumping together, now save the. Prior to the March 11 At 9 am, a 20-year-old employee named Li Foxconn Fuji Kang Longhua base "falls dead," police are still investigating the cause of death; March 17 shortly after 8 am, Foxconn Tien women jumped from a dormitory, "fall injury." What makes the Foxconn one after another tragedy? Which in the end, what untold story of hiding?

"China Business" reporter at the scene depth, Longhua, Shenzhen, more than a week, trying to Foxconn's operating system by revealing to explore business accidents frequent underlying causes.

First-line investigation

Employees within one month of death and injury accidents in 3 cases

Foxconn doubt: the issue of "sudden death" to prove

In late March, Bao'an District, Shenzhen City, the weather turns warm again, the road on both sides of the common star fruit has been put on new green, and others out a red flower.

However, some more fresh young lives are in the March to the end.

March 29, 2010 at 3 pm (reporters and sub, Bao'an, Shenzhen City Public Security Bureau police station to verify the time of pine), Foxconn Technology Group (the "Foxconn"), Longhua, Bao'an District, Shenzhen City, a 23-year-old Liu base Hunan man, surnamed employees "falls dead."

This is the March of Fuji Kang Longhua base be exposed since the first three cases of death and injury incidents. This is the Foxconn in Shenzhen since 2010, bases be exposed for the first four cases of "jumping" case. This was in July 2009 Foxconn 25 employees Sundan Yong "suicide" after the first five cases of "jumping" case.

Earlier, on March 11 At 9 am, a 20-year-old employee named Li Foxconn Fuji Kang Longhua base "falls dead," police are still investigating the cause of death; March 17 shortly after 8 am, Foxconn Tien women jumped from a dormitory, "fall injury", currently lying in Longhua People's Hospital ("the Longhua Hospital") ICU (IntensiveCareUnit, Intensive care unit).

"Patients very unstable mood, though from the most dangerous period, but I am afraid to amputated lower limbs." March 29, Longhua Hospital, ICU director, surnamed Li, want to block access to "China Business" reporter. The hospital allows only immediate family members Hetian pm daily peek once.

Earlier on January 23, the 19-year-old horse Foxconn For employees forward in Xuchang, Henan, Zhang Hang Path Village in Mission Hills Training Foxconn factory in South China (the "Fuji Kang Guanlan base") died. Investigating the case, Baoan, Shenzhen City Public Security Bureau Branch of Matsumoto station (the "Matsumoto police station") issued by letter, the horse forward line, "high fall dead before his death."

1 or 2

March 29, jumped to the news staff Longhua Foxconn End of the World community, the first seen in "The Wandering topics for" channel, which is also released in Malaysia to move the families of the "main front" one.

9:30 the same day, the net called "yp880928" of users in the End of the World websites, message: "at four o'clock on the March 29, 2010, is located in Longhua Huazhen Fu recreational and Technology Group, F3 base in the evening at the same time two Foxconn employees jumping at the same time. "

Message 1, which attracted a large number of Internet users attention. As of March 31, page views have more than 410,000 times, more than 2,500 Replies. Foxconn and the news sparked concern of local police. After another day of news media inquiries to its call.

"Noon, there will be continuous media." Sub, Bao'an, Shenzhen City Public Security Bureau police station pine (the "pine police station") cases of team vice captain Li Yongjun told the "China Business" reporter. Fuji Kang Longhua pine base station is the nearest distance from the public security agencies.

Li Yongjun said, when the accident occurred about 3:30 am. After receiving the 110, Pine station duty police rushed to the scene. "The Interpol forensic unit to understand and preliminary examination, the deceased named Liu, 23 years old, Foxconn male employees, Loudi, Hunan, has now informed their families," said Li Yongjun, "can determine the stresses (those jumping) is an employee instead of two. "

In this connection, "China Business" reporter trying to get proof from the Longhua Hospital.

"This morning, after 120 received a call that went to Foxconn. But the 120 arrived, the patient had died." Longhua Hospital Medical Services director of the then best known, the specific cause of death is not clear.

But "China Business" reporter found that the time sequence, the pine and the Longhua Hospital, saying the police station to say a conflict. Li Yongjun said 3:30 110 Alarm telephone, pine base station from the Fuji Kang Longhua not more than 2 km, the basic can be reached within 10 minutes, but "the scene, the ambulance had gone." Lee referred to the scene as "quarters downstairs." And Zhan-jia, Longhua Hospital, 120 admissions inquiries, call time 4:47 to 4:37,120 ambulance arrived, "Foxconn clinic" patients have died without emergency treatment.

Clearly, in order of arrival time, arrival location, the Pine Longhua Hospital, police stations and the description is not consistent. In the jumping in the end who is a person or issue 2, 2010 3 鏈?30 鏃?8:57, "yp880928" log in again End of the World, published sources, "netizens Hello, everybody, what is really (a), night I am working at night, by the security field cards confiscated, and warned that I'm not going out, or to death I am not I do not want it (get) show buddies really afraid, Foxconn is also (a) private thugs ah. "As newspaper dispatch, "yp880928" no longer log on End of the World, the End of the World's last logon time at 9:39 on March 30, 2010.

"Jumping" suspense

In fact, not only on March 29 of Liu the cause of death unknown, many doubt; January 23 occurs at the base of the horse forward Fuji Kang Guanlan death, family members also have many questions remain unanswered.

March 23 afternoon and was informed that horse forward the results of the second autopsy has been sent to Shanghai, Ma Li group to Matsumoto station query. Ma Li group is forward of the Third Sister Ma; horse forward on Jan. 23 about 4:30 am at the base of Fuji Kang Guanlan died from Matsumoto station is responsible for investigating and handling.

After waiting more than two hours later, Ma Li group met outside the meeting returned Matsumoto Liu Bin, director of the police station. "There has not received, the families will be notified upon receipt." Liu Bin, Ma Li base answer again let down.

Institute of Forensic Science Ministry of Justice on February 25 by Matsumoto family commissioned police station and horse forward, in the Shenzhen City Public Security Bureau Forensic Testing Center (the "Forensic Center") on the horse forward a second autopsy. The need for a second autopsy, is rooted in Ma Li group were Matsumoto station for processing the results of the previous three "unsatisfactory."

"China Business" reporter on March 25 at the forensic center to see the wall, "the Shenzhen City Public Security Bureau of Forensic autopsy in the public system" introduced "Identification of rights and obligations", said, "Identification of people to enjoy the full understanding of the case, asked commission Identification and characterization of the principal to provide detailed material on the fraud and conceal the truth or do not meet the test, reject or suspend identification, application for withdrawal, as well as other rights provided by law. " However, groups such as Ma Li received the first autopsy concluded only a simple "horse falling forward line during his lifetime high death" 10 words, without any explanation. For Ma Li Kwan asked why the delay in not filing, Liu Bin said, "high fall dead before his death," that is not a criminal case, no placed on file.

April 1, family members finally received Ma forward, Baoan, Shenzhen City Public Security Bureau Branch of Matsumoto station's telephone. 3:00 pm ~ 5:00 pm, family members received two documents, one is the "conclusions notice"; a notice is not placed on file. Their families are still not satisfied, proposed to open second autopsy video, which Liu Bin said: "The meeting has been recording the whole process, in time to see."

"Shenzhen speed"

Ma Hui (horse forward big sister), Mary group raised many questions, not only to those mentioned above, other, including many now can not get the police to respond to the doubts.

"The autopsy, we have proposed to employ the scene forensic applications from other provinces. But on Feb. 10 to inform us at the autopsy, we are prepared to hire forensic Henan Province from home, just to catch up with Henan snow, no way in the February 12 9:00 to Shenzhen, therefore, on February 12 of the anatomy is the Shenzhen police forensic their own choice. "said Ma Li group.

In addition, the horse forward before the second autopsy, Ma has proposed three conditions: 1. To please other provinces throughout the forensic field in the anatomical view (two days in advance to notify us forward identification of the dead horse family time and location, to facilitate the forensic to Shenzhen). 2. The whole family with two video cameras. 3. To allow the media on-site supervision.

But on February 25 of the second autopsy, only the first condition is met, and the identification of the judicial branch, took the decision and hire Bao.

In fact, not unique to the family of the horse to move things happen because there are many questions and follow-up process. "March 14 or 15, her daughter is still the phone to us that parents be assured that I am here 'blame good', do not worry, be at 8 o'clock on the 17th occurred in the child jumping on things. "March 29, the father of Tien Tien Party told the" China Business "reporter, who quickly came to Shenzhen two weeks, though very anxious, but did not draw any conclusions.

Foxconn's approach is to help the field on behalf of the Party and so rented a hotel, let to live in Hua Teng mandarin hotel near the hospital. Mazi Shan (horse forward father) one, too, after the death of horse forward, Foxconn that helped Ma rent on behalf of peace in the town of Mission Hills business hotel, three meals a day meal.

This event has been the industry's close attention to senior lawyer told the "China Business" reporter, Foxconn is one way to appease family members, hoping to trace extended family members after the determination to kill; the other hand, because different families of the victims were in a different location We could not united to an explanation. As for the generation of rental costs, are likely in the future, compensation is deducted from the compensation fee.

Business hotel staff told the peace, "China Business" reporter, Foxconn staff every day Development tickets, so he first entered late in March, the hotel has no invoice.

March 29 afternoon, "China Business" reporter in the Fuji Kang Longhua base main gate waiting for nearly 2 hours, the other media staff have not received an interview, said first fax, not receiving. Reporter was issued at noon had sent fax after fax the second time, the person claimed to have received, will be given by hand contact, but so far, not an interview.

March 30 morning, "China Business" reporter went to the Shenzhen Public Security Bureau Baoan Branch for confirmation. In addition to the outside closed doors and patrol dogs, the council has not received an interview.







相关链接:



On-site supervision evaluation [3]



Easy OUTLINE Introduction to XSLT



wmv to AVI converter free



STORM teach you to REMOVE the stormliv.exe



Comment Gallery And Cataloging Tools



Wave Guoqiang zero Household manages / centralized accounting Edition



Expert Teaching And Training Tools



mkv



Articles about Site Administration



Convert 3gp To Mp4



Sound file converter



Help Tools Storage



Additional team bonus, energy stimulate team



Assembly instructions and the machine code of each CONVERSION



Dreamweaver MX Ultradev exploration (2)



Carrefour business golden rule



Monday, July 12, 2010

C # to call Outlook API launch meeting



In my previous blog post mentioned the SharePoint call outgoing mail server and e-mail address to send mail

However, the methods which can only be used to send regular e-mail. If you want to launch a special meeting of the class of mail, you can use Outlook's own API.

Create a project, it added. NET Reference: "Microsoft.Office.Interop.Outlook" reference, you can call, to note that, in added time, take note OFFICE version.

Initiated the call to the API during the meeting, ran into a problem:

An appointment after you create the entry, looking for a long time for this appointment can not find how to specify the "From", then one would like, Window CF, find personnel information have OutlookSession of the East,

Well, this Outlook will not do the same way, tested, really have to find ways, the original, its API is specified by the sender and your machine running Outlook account settings directly related.

By ApplicationClass.Session.Accounts can find your account settings set, require special special attention is here to take a staff, set the index is a beginning, not

Starting at 0. Find the relevant account, you can AppointmentItem.SendUsingAccount attribute to specify the date of the sender.

--- However, if I Bu Shi Yong Outlook account set in Account Settings, and to specify other's Youjian account to send mail from the get how? And it has not 鎵惧埌 Huo Fa Xian way, Xi Wang Ren Men can know the up

Gets advice channels, Bese first ~ ~ ~ ~

The following is test code, running in WIN2003 + OFFICE12 through, successfully created the meeting:

1using System;

2using System.Collections.Generic;

3using System.Text;

4using Microsoft.Office.Interop.Outlook;

5 ////////////////////

6 / * launch meeting called Outlook api

7 / * mcjeremy@cnblogs.com

8 ////////////////////

9namespace OutlookAPI

10 (

11 class Program

12 (

13 static void Main (string [] args)

14 (

15 try

16 (

17 ApplicationClass oApp = new Microsoft.Office.Interop.Outlook.ApplicationClass ();

18

19 / / meeting is an appointment

20 AppointmentItem oItem = (AppointmentItem) oApp.CreateItem (OlItemType.olAppointmentItem);

21 oItem.MeetingStatus = OlMeetingStatus.olMeeting;

22

23 oItem.Subject = "topic";

24

25 oItem.Body = "content";

26

27 oItem.Location = "place";

28

29 / / start time

30 oItem.Start = DateTime.Now.AddDays (1);

31

32 / / end time

33 oItem.End = DateTime.Now.AddDays (2);

34

35 / / alert settings

36 oItem.ReminderSet = true;

37 oItem.ReminderMinutesBeforeStart = 5;

38

39 / / if all-day event

40 oItem.AllDayEvent = false;

41

42 oItem.BusyStatus = OlBusyStatus.olBusy;

43

44 / / index starts with 1 instead of 0

45 / / sender's account information

46 oItem.SendUsingAccount = oApp.Session.Accounts [2];

47

48 / / Add the necessary selection

49 Recipient force = oItem.Recipients.Add ("mailuser2@mailserver.com");

50 force.Type = (int) OlMeetingRecipientType.olRequired;

51 / / Add optional person

52 Recipient opt = oItem.Recipients.Add ("mailuser3@p.mailserver.com");

53 opt.Type = (int) OlMeetingRecipientType.olOptional;

54 / / Add the meeting initiator

55 Recipient sender = oItem.Recipients.Add ("mailuser1@mailserver.com");

56 sender.Type = (int) OlMeetingRecipientType.olOrganizer;

57

58 oItem.Recipients.ResolveAll ();

59

60 / / oItem.SaveAs ("d: / TEST.MSG", OlSaveAsType.olMSG);

61

62 oItem.Send ();

63

64 / / MailItem mItem = (MailItem) oApp.CreateItem (OlItemType.olMailItem);

65 / / Recipient rTo = mItem.Recipients.Add ("****");

66 / / rTo.Type = (int) OlMailRecipientType.olTo;

67 / / Recipient rCC = mItem.Recipients.Add ("****");

68 / / rCC.Type = (int) OlMailRecipientType.olCC;

69 / / Recipient rBC = mItem.Recipients.Add ("****");

70 / / rBC.Type = (int) OlMailRecipientType.olBCC;

71

72 Console.WriteLine ("OK");

73)

74 catch (System.Exception ex)

75 (

76 Console.WriteLine (ex.Message);

77)

78

79 Console.ReadLine ();

80)

81)

82)

83







相关链接:



Top Games Board



Eztoo RM Video CONVERTER



Report Audio Video TOOLS



Video file formats



Youtube FLV to Xvid Now



.m4v file



Convert Mp3 To Aac



Shop Kids Education



Swift DVD to 3G2



Hope DVD Google Video MPEG Editor



X-Cloner DVD to Mobile



convert flv to mov



Open MP4 Converter



X-Cloner DVD to 3GP



Hope 3GP Xvid CONVERSION



Sunday, June 27, 2010

Youtube Movie to iPod Professional

Hot popluar youtube video Converter + download + player tool. With YouTube tool you can also convert downloaded YouTube videos to a format compatible with your favorite portable device; including - iPod Video, iPod Touch, iPod Nano, iPhone, Zune, PSP, as well as video capable MP3 players, video capable mobile phones, and Pocket PC, And finally... YouTube tool's embedded player will allow you to watch all your favorite YouTube videos off-line. So now you can enjoy any .flv and .swf videos anytime!
Supports customize or create user's own profile for any new (portable) device. The video conversion supports preview. About Playing Features. Embedded YouTube Video (Offline) Player is available, it supports offline play YouTube video, .flv video and .swf video. Supports "Drag and Drop" video files direct to the main window. Easy to select the source files. Cool UI skin available. - is the most powerful YouTube assistant on the planet.



Recommand Link:



Open PS3 Converter



Bliss DVD-Audio OGG CD to MP3 Converter



DVD to Sony NWZ-E436FRED conversion



Inventory And Barcoding Introduction



Swift MPEG to AVI M4V FLV



Premier Education



DVD MPEG/AVI/AUDIO Converter



M4V



Professional DAT DVD To AVI



Bluesea MP3 VQF WMA to CD Editor



Management And Distribution Specialist



Explosion DAT to DVD



DVD Clone - DVD XCopy Deluxe



Thursday, June 24, 2010

Youtube Movie to PSP Software

It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Easily Convert all popular video formats. Provides the highest speed to download YouTube video. Support unlimited simultaneous downloading tasks. Supports auto-name your downloaded video title as the YoutTube page shows. Offers you the most convenient task management and the easiest control capability. About Conversion Features. - is the most powerful YouTube assistant on the planet.



Recommand Link:



Youtube Video to 3G2 Application



AMV Video Converter



YASA DVD To MP3 Converter



Articles About Audio Speech



PROFESSIONAL MPEG to Apple TV



Ever CD Midi WAV To ID3 Cloner



PROFESSIONAL RMVB to DVD



PSP Video Converter



DVD to Sony NWZ-S639F conversion



Youtube Video to Blackberry Professional



what is m4a? how to convert m4a to MP3?



Recommend E-Commerce



Youtube FLV Backup + Converter Ultra



Avex DVD To iPod Video Suite



Evaluate Games Board



Sunday, June 6, 2010

Youtube Movie to VCD Popular

Hot popluar youtube video Converter + download + player tool. With YouTube tool you can also convert downloaded YouTube videos to a format compatible with your favorite portable device; including - iPod Video, iPod Touch, iPod Nano, iPhone, Zune, PSP, as well as video capable MP3 players, video capable mobile phones, and Pocket PC, And finally... YouTube tool's embedded player will allow you to watch all your favorite YouTube videos off-line. So now you can enjoy any .flv and .swf videos anytime!
Easily Convert all popular video formats. Provides the highest speed to download YouTube video. Support unlimited simultaneous downloading tasks. Supports auto-name your downloaded video title as the YoutTube page shows. Offers you the most convenient task management and the easiest control capability. About Conversion Features. - is the most powerful YouTube assistant on the planet.



Recommand Link:



Tools And Editors Specialist



Christmasgift Mobile Converter



Simple Management And Distribution



Youtube TO MOV Tools



shareware software reviews



AllRipper DVD To Xbox



Youtube FLV to XBOX Online



Bluesea MP3 AC3 APE to AAC Backup



YOUTUBE Movie to MAC Help



Youtube Movie to Mobile Phone Value



Explosion Flash to Blackberry



Christmasgift Flash to Mobile



Pop DVD Backup Free Download



Games Arcade Directory



Happiness DAT Flash Encode



Thursday, June 3, 2010

Youtube Movie to MPEG Shareware

It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Supports customize or create user's own profile for any new (portable) device. The video conversion supports preview. About Playing Features. Embedded YouTube Video (Offline) Player is available, it supports offline play YouTube video, .flv video and .swf video. Supports "Drag and Drop" video files direct to the main window. Easy to select the source files. Cool UI skin available. - is the most powerful YouTube assistant on the planet.



Recommand Link:



CD To MP3 RM Ripper



Happiness AVI to MPEG4 WMV RMVB



URL Snooper



MPC MP2 to WAVE



Top Personal FINANCE



Ever CD-R MPC AC3 to Audio Recorder



LASVEGAS WMV Converter



Video To PSP Converter



Youtube Movie to Flash Application



evaluation Multimedia Creation Tools



WorldCup DVD to PSP



Explosion DVD to Xbox



Recommend Inventory And Barcoding



great utility SOFTWARE online



Youtube to PPC Ultra



CDA to MP3 Guide



Ever M4P ID3 To APE Cloner