vCard servlet 1.3


    It is a Java servlet lets you present vCard (RFC2426) in your web applications

How to use it:

a) copy vcardPackage.jar into WEB-INF/lib directory

b) describe Vcard servlet in your web.xml file. You can provide the following initial parameters:

firstName - describes a first name
secondName - describes a second name
cellPhone - describes a cell phone
workEmail - describes a work email
url - describes an URL
note - describes a note

E.g.:


    <servlet>
     <servlet-name>VcardServlet</servlet-name>
     <servlet-class>com.jsos.vcard.VcardServlet</servlet-class>
     <init-param>
      <param-name>firstName</param-name>
      <param-value>John</param-value>
     </init-param>
     <init-param>
      <param-name>secondName</param-name>
      <param-value>Smith</param-value>
     </init-param>
     <init-param>
      <param-name>cellPhone</param-name>
      <param-value>1234567</param-value>
     </init-param>
    </servlet>

c) describe a mapping for this servlet:


   <servlet-mapping>
    <servlet-name>VcardServlet</servlet-name>
    <url-pattern>/servlet/VcardServlet</url-pattern>
   </servlet-mapping>

    the usage is:

    http://your_host/servlet/VcardServlet

Alternatively, you can just pass URL encoded values as parameters to this servlet

For JSP integration check out also vCard taglib from Coldtags suite.

    For downloading:  vcardPackage.jar   

  © Coldbeans     Comments?

See also JSOS - the largest collection of servlets and filters.

Also in JSOS: