How to use JavaMail to send
|
|
- Bennett Scott
- 8 years ago
- Views:
Transcription
1 Chapter 15 How to use JavaMail to send Objectives Applied Knowledge
2 How works Sending client Mail client software Receiving client Mail client software SMTP Sending server Mail server software POP Receiving server Mail server software Three protocols for sending and retrieving messages Protocol Description
3 Another protocol that s used with Protocol Description The JAR files for the JavaMail API File Description How to install the JavaMail API
4 How to install the JavaBeans Activation Framework API Three packages for sending Package Description
5 Code that uses the JavaMail API to send an try // 1 - get a mail session Properties props = new Properties(); props.put("mail.smtp.host", "localhost"); Session session = Session.getDefaultInstance(props); // 2 - create a message Message message = new MimeMessage(session); message.setsubject(subject); message.settext(body); // 3 - address the message Address fromaddress = new InternetAddress(from); Address toaddress = new InternetAddress(to); message.setfrom(fromaddress); message.setrecipient(message.recipienttype.to, toaddress); Code that uses the JavaMail API (cont.) // 4 - send the message Transport.send(message); catch (MessagingException e) log(e.tostring());
6 Common properties that can be set for a Session object Property Description How to get a mail session for a local SMTP server Properties props = new Properties(); props.put("mail.smtp.host", "localhost"); Session session = Session.getDefaultInstance(props); Another way to get a mail session for a local SMTP server Properties props = new Properties(); props.put("mail.transport.protocol", "smtp"); props.put("mail.smtp.host", "localhost"); props.put("mail.smtp.port", 25); Session session = Session.getDefaultInstance(props); session.setdebug(true);
7 How to get a mail session for a remote SMTP server Properties props = new Properties(); props.put("mail.transport.protocol", "smtps"); props.put("mail.smtps.host", "smtp.gmail.com"); props.put("mail.smtps.port", 465); props.put("mail.smtps.auth", "true"); props.put("mail.smtps.quitwait", "false"); Session session = Session.getDefaultInstance(props); session.setdebug(true); How to create a mail session
8 How to create a message Message message = new MimeMessage(session); How to set the subject line of a message message.setsubject("order Confirmation"); How to set the body of a plain text message message.settext("thanks for your order!"); How to set the body of an HTML message message.setcontent( "<H1>Thanks for your order!</h1>", "text/html"); How to create a message
9 How to set the From address Address fromaddress = new InternetAddress("cds@murach.com"); message.setfrom(fromaddress); How to set the To address Address toaddress = new InternetAddress("andi@yahoo.com"); message.setrecipient( Message.RecipientType.TO, toaddress); How to set the CC address Address ccaddress = new InternetAddress("ted@yahoo.com"); message.setrecipient( Message.RecipientType.CC, ccaddress); How to set the BCC address Address bccaddress = new InternetAddress("jsmith@gmail.com"); message.setrecipient( Message.RecipientType.BCC, bccaddress); How to include an address and a name Address toaddress = new InternetAddress( "andi@yahoo.com", "Andrea Steelman"); How to send a message to multiple recipients Address[] maillist = new InternetAddress("andi@hotmail.com"), new InternetAddress("joelmurach@yahoo.com"), new InternetAddress("jsmith@gmail.com") ; message.setrecipients( Message.RecipientType.TO, maillist); How to add recipients to a message Address toaddress = new InternetAddress("joelmurach@yahoo.com"); message.addrecipient( Message.RecipientType.TO, toaddress);
10 How to address a message How to send a message when no authentication is required Transport.send(message); How to send a message when authentication is required Transport transport = session.gettransport(); transport.connect("johnsmith@gmail.com", "sesame"); transport.sendmessage( message, message.getallrecipients()); transport.close();
11 How to send a message A helper class for sending an with a local SMTP server package util; import java.util.properties; import javax.mail.*; import javax.mail.internet.*; public class MailUtilLocal public static void sendmail(string to, String from, String subject, String body, boolean bodyishtml) throws MessagingException // 1 - get a mail session Properties props = new Properties(); props.put("mail.transport.protocol", "smtp"); props.put("mail.smtp.host", "localhost"); props.put("mail.smtp.port", 25); Session session = Session.getDefaultInstance(props); session.setdebug(true);
12 A helper class for sending an with a local SMTP server (cont.) // 2 - create a message Message message = new MimeMessage(session); message.setsubject(subject); if (bodyishtml) message.setcontent(body, "text/html"); else message.settext(body); // 3 - address the message Address fromaddress = new InternetAddress(from); Address toaddress = new InternetAddress(to); message.setfrom(fromaddress); message.setrecipient( Message.RecipientType.TO, toaddress); // 4 - send the message Transport.send(message); A servlet that sends an package ; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import javax.mail.messagingexception; import business.user; import data.userio; import util.*; public class AddTo ListServlet extends HttpServlet protected void dopost(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException
13 A servlet that sends an (cont.) // get parameters from the request String firstname = request.getparameter("firstname"); String lastname = request.getparameter("lastname"); String address = request.getparameter(" address"); // create the User object and write it to a file User user = new User( firstname, lastname, address); ServletContext sc = getservletcontext(); String path = sc.getrealpath( "/WEB-INF/ List.txt"); UserIO.addRecord(user, path); // store the User object in the session HttpSession session = request.getsession(); session.setattribute("user", user); A servlet that sends an (cont.) // send to user String to = address; String from = " _list@murach.com"; String subject = "Welcome to our list"; String body = "Dear " + firstname + ",\n\n" + "Thanks for joining our list. " + "We'll make sure to send you announcements " + "about new products and promotions.\n" + "Have a great day and thanks again!\n\n" + "Kelly Slivkoff\n" + "Mike Murach & Associates"; boolean isbodyhtml = false; try MailUtilLocal.sendMail( to, from, subject, body, isbodyhtml);
14 A servlet that sends an (cont.) catch (MessagingException e) String errormessage = "ERROR: Unable to send . " + "Check Tomcat logs for details.<br>" + "NOTE: You may need to configure your " + "system as described in chapter 15.<br>" + "ERROR MESSAGE: " + e.getmessage(); request.setattribute( "errormessage", errormessage); this.log( "Unable to send . \n" + "Here is the you tried to send: \n" + "=====================================\n" + "TO: " + address + "\n" + "FROM: " + from + "\n" + "SUBJECT: " + subject + "\n" + "\n" + body + "\n\n"); A servlet that sends an (cont.) // forward request and response to JSP page String url = "/display_ _entry.jsp"; RequestDispatcher dispatcher = getservletcontext().getrequestdispatcher(url); dispatcher.forward(request, response);
15 A helper class for sending an with a remote SMTP server package util; import java.util.properties; import javax.mail.*; import javax.mail.internet.*; public class MailUtilYahoo public static void sendmail(string to, String from, String subject, String body, boolean bodyishtml) throws MessagingException // 1 - get a mail session Properties props = new Properties(); props.put("mail.transport.protocol", "smtps"); props.put("mail.smtps.host", "smtp.mail.yahoo.com"); props.put("mail.smtps.port", 465); props.put("mail.smtps.auth", "true"); Session session = Session.getDefaultInstance(props); session.setdebug(true); A helper class for sending an with a remote SMTP server (cont.) // 2 - create a message Message message = new MimeMessage(session); message.setsubject(subject); if (bodyishtml) message.setcontent(body, "text/html"); else message.settext(body); // 3 - address the message Address fromaddress = new InternetAddress(from); Address toaddress = new InternetAddress(to); message.setfrom(fromaddress); message.setrecipient( Message.RecipientType.TO, toaddress);
16 A helper class for sending an with a remote SMTP server (cont.) // 4 - send the message Transport transport = session.gettransport(); transport.connect("johnsmith", "sesame"); transport.sendmessage( message, message.getallrecipients()); transport.close();
An introduction to web programming with Java
Chapter 1 An introduction to web programming with Java Objectives Knowledge Objectives (continued) The first page of a shopping cart application The second page of a shopping cart application Components
More informationSERVLETS - SENDING EMAIL
SERVLETS - SENDING EMAIL http://www.tutorialspoint.com/servlets/servlets-sending-email.htm Copyright tutorialspoint.com To send an email using your a Servlet is simple enough but to start with you should
More information2. Follow the installation directions and install the server on ccc
Installing a Web Server 1. Install a sample web server, which supports Servlets/JSPs. A light weight web server is Apache Tomcat server. You can get the server from http://tomcat.apache.org/ 2. Follow
More informationJava EE Introduction, Content. Component Architecture: Why and How Java EE: Enterprise Java
Java EE Introduction, Content Component Architecture: Why and How Java EE: Enterprise Java The Three-Tier Model The three -tier architecture allows to maintain state information, to improve performance,
More informationJava Server Pages combined with servlets in action. Generals. Java Servlets
Java Server Pages combined with servlets in action We want to create a small web application (library), that illustrates the usage of JavaServer Pages combined with Java Servlets. We use the JavaServer
More informationCh-03 Web Applications
Ch-03 Web Applications 1. What is ServletContext? a. ServletContext is an interface that defines a set of methods that helps us to communicate with the servlet container. There is one context per "web
More informationJava 2 Web Developer Certification Study Guide Natalie Levi
SYBEX Sample Chapter Java 2 Web Developer Certification Study Guide Natalie Levi Chapter 8: Thread-Safe Servlets Copyright 2002 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights
More information1. Seam Mail Introduction 2. Configuration 3. Core Usage 4. Templating 5. Advanced Features
Seam Mail 1. Seam Mail Introduction... 1 1.1. Getting Started... 1 2. Configuration... 3 2.1. Minimal Configuration... 3 3. Core Usage... 5 3.1. Intro... 5 3.2. Contacts... 5 3.2.1. String Based... 5
More information2.8. Session management
2.8. Session management Juan M. Gimeno, Josep M. Ribó January, 2008 Session management. Contents Motivation Hidden fields URL rewriting Cookies Session management with the Servlet/JSP API Examples Scopes
More information15-415 Database Applications Recitation 10. Project 3: CMUQFlix CMUQ s Movies Recommendation System
15-415 Database Applications Recitation 10 Project 3: CMUQFlix CMUQ s Movies Recommendation System Project Objective 1. Set up a front-end website with PostgreSQL back-end 2. Allow users to login, like
More informationWeb Container Components Servlet JSP Tag Libraries
Web Application Development, Best Practices by Jeff Zhuk, JavaSchool.com ITS, Inc. dean@javaschool.com Web Container Components Servlet JSP Tag Libraries Servlet Standard Java class to handle an HTTP request
More informationJava Servlet and JSP Programming. Structure and Deployment China Jiliang University
Java Web Programming in Java Java Servlet and JSP Programming Structure and Deployment China Jiliang University Servlet/JSP Exercise - Rules On the following pages you will find the rules and conventions
More informationServlets. Based on Notes by Dave Hollinger & Ethan Cerami Also, the Online Java Tutorial by Sun
Servlets Based on Notes by Dave Hollinger & Ethan Cerami Also, the Online Java Tutorial by Sun 1 What is a Servlet? A Servlet is a Java program that extends the capabilities of servers. Inherently multi-threaded.
More informationINTRODUCTION TO WEB TECHNOLOGY
UNIT-I Introduction to Web Technologies: Introduction to web servers like Apache1.1, IIS, XAMPP (Bundle Server), WAMP Server(Bundle Server), handling HTTP Request and Response, installation of above servers
More informationAgenda. Summary of Previous Session. Application Servers G22.3033-011. Session 3 - Main Theme Page-Based Application Servers (Part II)
Application Servers G22.3033-011 Session 3 - Main Theme Page-Based Application Servers (Part II) Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical
More informationDTS Web Developers Guide
Apelon, Inc. Suite 202, 100 Danbury Road Ridgefield, CT 06877 Phone: (203) 431-2530 Fax: (203) 431-2523 www.apelon.com Apelon Distributed Terminology System (DTS) DTS Web Developers Guide Table of Contents
More informationHow To Understand The Architecture Of Java 2Ee, J2Ee, And J2E (Java) In A Wordpress Blog Post
Understanding Architecture and Framework of J2EE using Web Application Devadrita Dey Sarkar,Anavi jaiswal, Ankur Saxena Amity University,UTTAR PRADESH Sector-125, Noida, UP-201303, India Abstract: This
More informationCSc31800: Internet Programming, CS-CCNY, Spring 2004 Jinzhong Niu May 9, 2004. Java Servlets
CSc31800: Internet Programming, CS-CCNY, Spring 2004 Jinzhong Niu May 9, 2004 Java Servlets I have presented a Java servlet example before to give you a sense of what a servlet looks like. From the example,
More informationWeb Application Development on a Linux System With a DB2 Database By Alan Andrea
Web Application Development on a Linux System With a DB2 Database By Alan Andrea Linux, for a long time now, has been a robust and solid platform for deploying and developing complex applications. Furthermore,
More informationManaging Data on the World Wide-Web
Managing Data on the World Wide-Web Sessions, Listeners, Filters, Shopping Cart Elad Kravi 1 Web Applications In the Java EE platform, web components provide the dynamic extension capabilities for a web
More informationDevelopment of Web Applications
Development of Web Applications Principles and Practice Vincent Simonet, 2013-2014 Université Pierre et Marie Curie, Master Informatique, Spécialité STL 3 Server Technologies Vincent Simonet, 2013-2014
More informationBAPI. Business Application Programming Interface. Compiled by Y R Nagesh 1
BAPI Business Application Programming Interface Compiled by Y R Nagesh 1 What is BAPI A Business Application Programming Interface is a precisely defined interface providing access process and data in
More informationJAVAMAIL API - SMTP SERVERS
JAVAMAIL API - SMTP SERVERS http://www.tutorialspoint.com/javamail_api/javamail_api_smtp_servers.htm Copyright tutorialspoint.com SMTP is an acronym for Simple Mail Transfer Protocol. It is an Internet
More informationWeb Applications. For live Java training, please see training courses at
2009 Marty Hall Using and Deploying Web Applications Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/
More informationIBM WebSphere Application Server
IBM WebSphere Application Server Multihomed hosting 2011 IBM Corporation Multihoming allows you to have a single application communicate with different user agent clients and user agent servers on different
More informationManual. Programmer's Guide for Java API
2013-02-01 1 (15) Programmer's Guide for Java API Description This document describes how to develop Content Gateway services with Java API. TS1209243890 1.0 Company information TeliaSonera Finland Oyj
More informationPrinciples and Techniques of DBMS 5 Servlet
Principles and Techniques of DBMS 5 Servlet Haopeng Chen REliable, INtelligentand Scalable Systems Group (REINS) Shanghai Jiao Tong University Shanghai, China http://reins.se.sjtu.edu.cn/~chenhp e- mail:
More informationWeb Programming: Announcements. Sara Sprenkle August 3, 2006. August 3, 2006. Assignment 6 due today Project 2 due next Wednesday Review XML
Web Programming: Java Servlets and JSPs Sara Sprenkle Announcements Assignment 6 due today Project 2 due next Wednesday Review XML Sara Sprenkle - CISC370 2 1 Web Programming Client Network Server Web
More informationIntroduction to J2EE Web Technologies
Introduction to J2EE Web Technologies Kyle Brown Senior Technical Staff Member IBM WebSphere Services RTP, NC brownkyl@us.ibm.com Overview What is J2EE? What are Servlets? What are JSP's? How do you use
More informationMass Emailing Techniques
Mass Emailing Techniques... This is not about spam! Pascal Robert MacTI Why? Most of us have to send mass email (newsletter, special offers, reminders, etc.) Sending emails can take some time Have to avoid
More informationIf you wanted multiple screens, there was no way for data to be accumulated or stored
Handling State in Web Applications Jeff Offutt http://www.cs.gmu.edu/~offutt/ SWE 642 Software Engineering for the World Wide Web sources: Professional Java Server Programming, Patzer, Wrox Web Technologies:
More informationIntellicus Single Sign-on
Intellicus Single Sign-on Intellicus Enterprise Reporting and BI Platform Intellicus Technologies info@intellicus.com www.intellicus.com Copyright 2010 Intellicus Technologies This document and its content
More informationJava Web Programming. Student Workbook
Student Workbook Java Web Programming Mike Naseef, Jamie Romero, and Rick Sussenbach Published by ITCourseware, LLC., 7245 South Havana Street, Suite 100, Centennial, CO 80112 Editors: Danielle Hopkins
More informationACM Crossroads Student Magazine The ACM's First Electronic Publication
Page 1 of 8 ACM Crossroads Student Magazine The ACM's First Electronic Publication Crossroads Home Join the ACM! Search Crossroads crossroads@acm.org ACM / Crossroads / Columns / Connector / An Introduction
More informationWeb Programming II JSP (Java Server Pages) ASP request processing. The Problem. The Problem. Enterprise Application Development using J2EE
Enterprise Application Development using J2EE Shmulik London Lecture #6 Web Programming II JSP (Java Server Pages) How we approached it in the old days (ASP) Multiplication Table Multiplication
More informationJava and Web. WebWork
Java and Web WebWork Client/Server server client request HTTP response Inside the Server (1) HTTP requests Functionality for communicating with clients using HTTP CSS Stat. page Dyn. page Dyn. page Our
More informationJames: The Java Apache Mail Enterprise Server
James: The Java Apache Mail Enterprise Server by Barry Burd and Michael P. Redlich Introduction James is an open source, 100% pure Java e-mail server developed by the Apache Software Foundation. James
More informationWeb Application Programmer's Guide
Web Application Programmer's Guide JOnAS Team ( Florent BENOIT) - March 2009 - Copyright OW2 consortium 2008-2009 This work is licensed under the Creative Commons Attribution-ShareAlike License. To view
More informationApplication Security
2009 Marty Hall Declarative Web Application Security Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/
More informationCONTROLLING WEB APPLICATION BEHAVIOR WITH
CONTROLLING WEB APPLICATION BEHAVIOR WITH WEB.XML Chapter Topics in This Chapter Customizing URLs Turning off default URLs Initializing servlets and JSP pages Preloading servlets and JSP pages Declaring
More informationSSC - Web applications and development Introduction and Java Servlet (II)
SSC - Web applications and development Introduction and Java Servlet (II) Shan He School for Computational Science University of Birmingham Module 06-19321: SSC Outline Outline of Topics Servlet Configuration
More informationPiotr Nowicki's Homepage. Java EE 6 SCWCD Mock Exam. "Simplicity is the ultimate sophistication." Important!
Piotr Nowicki's Homepage "Simplicity is the ultimate sophistication." Java EE 6 SCWCD Mock Exam Posted on March 27, 2011 by Piotr 47 Replies Edit This test might help to test your knowledge before taking
More informationUTL_SMTP and Sending Mail
UTL_SMTP and Sending Mail UTL_SMTP, introduced for the first time in Oracle 8.1.6, is an interface to the Simple Mail Transfer Protocol. It requires that you have an SMTP server in your network somewhere
More informationChapter 22 How to send email and access other web sites
Chapter 22 How to send email and access other web sites Murach's PHP and MySQL, C22 2010, Mike Murach & Associates, Inc. Slide 1 Objectives Applied 1. Install and use the PEAR Mail package to send email
More informationCHAPTER 9: SERVLET AND JSP FILTERS
Taken from More Servlets and JavaServer Pages by Marty Hall. Published by Prentice Hall PTR. For personal use only; do not redistribute. For a complete online version of the book, please see http://pdf.moreservlets.com/.
More informationMultiple vulnerabilities in Apache Foundation Struts 2 framework. Csaba Barta and László Tóth
Multiple vulnerabilities in Apache Foundation Struts 2 framework Csaba Barta and László Tóth 12. June 2008 Content Content... 2 Summary... 3 Directory traversal vulnerability in static content serving...
More informationJ2EE Web Development. Agenda. Application servers. What is J2EE? Main component types Application Scenarios J2EE APIs and Services.
J2EE Web Development Agenda Application servers What is J2EE? Main component types Application Scenarios J2EE APIs and Services Examples 1 1. Application Servers In the beginning, there was darkness and
More informationUsability. Usability
Objectives Review Usability Web Application Characteristics Review Servlets Deployment Sessions, Cookies Usability Trunk Test Harder than you probably thought Your answers didn t always agree Important
More informationgs.email Documentation
gs.email Documentation Release 2.2.0 GroupServer.org March 19, 2015 Contents 1 Configuration 3 1.1 Options.................................................. 3 1.2 Examples.................................................
More informationJSP. Common patterns
JSP Common patterns Common JSP patterns Page-centric (client-server) CLIENT JSP or Servlet CLIENT Enterprise JavaBeans SERVER DB Common JSP patterns Page-centric 1 (client-server) Page View request response
More informationCS108, Stanford Handout #33 Young. HW5 Web
CS108, Stanford Handout #33 Young HW5 Web In this assignment we ll build two separate web projects. This assignment is due the evening of Tuesday November 3 rd at Midnight. You cannot take late days on
More informationPenetration from application down to OS
April 8, 2009 Penetration from application down to OS Getting OS access using IBM Websphere Application Server vulnerabilities Digitаl Security Research Group (DSecRG) Stanislav Svistunovich research@dsecrg.com
More informationWeb Programming with Java Servlets
Web Programming with Java Servlets Leonidas Fegaras University of Texas at Arlington Web Data Management and XML L3: Web Programming with Servlets 1 Database Connectivity with JDBC The JDBC API makes it
More informationJava Servlet Tutorial. Java Servlet Tutorial
Java Servlet Tutorial i Java Servlet Tutorial Java Servlet Tutorial ii Contents 1 Introduction 1 1.1 Servlet Process.................................................... 1 1.2 Merits.........................................................
More informationServlet 3.0. Alexis Moussine-Pouchkine. mercredi 13 avril 2011
Servlet 3.0 Alexis Moussine-Pouchkine 1 Overview Java Servlet 3.0 API JSR 315 20 members Good mix of representation from major Java EE vendors, web container developers and web framework authors 2 Overview
More informationMail User Agent Project
Mail User Agent Project Tom Kelliher, CS 325 100 points, due May 4, 2011 Introduction (From Kurose & Ross, 4th ed.) In this project you will implement a mail user agent (MUA) that sends mail to other users.
More informationTo configure Outlook Express for your InfoMetrics E-mail address:
To configure Outlook Express for your InfoMetrics E-mail address: 1. Open Outlook Express 2. Click the Tools menu, and select Accounts... 3. Internet Accounts window will open, click Add and menu will
More informationExam Prep. Sun Certified Web Component Developer (SCWCD) for J2EE Platform
Exam Prep Sun Certified Web Component Developer (SCWCD) for J2EE Platform Core Servlets & JSP book: www.coreservlets.com More Servlets & JSP book: www.moreservlets.com Servlet and JSP Training Courses:
More informationBuilding Web Applications with Servlets and JavaServer Pages
Building Web Applications with Servlets and JavaServer Pages David Janzen Assistant Professor of Computer Science Bethel College North Newton, KS http://www.bethelks.edu/djanzen djanzen@bethelks.edu Acknowledgments
More informationControlling Web Application Behavior
2006 Marty Hall Controlling Web Application Behavior The Deployment Descriptor: web.xml JSP, Servlet, Struts, JSF, AJAX, & Java 5 Training: http://courses.coreservlets.com J2EE Books from Sun Press: http://www.coreservlets.com
More informationPure server-side Web Applications with Java, JSP. Application Servers: the Essential Tool of Server-Side Programming. Install and Check Tomcat
Pure server-side Web Applications with Java, JSP Discussion of networklevel http requests and responses Using the Java programming language (Java servlets and JSPs) Key lesson: The role of application
More informationThe Collaborative Information Portal and NASA s Mars Rover Mission
The Collaborative Information Portal and NASA s Mars Rover Mission Bildquelle: Ronald Mak, University of California, Santa Cruz Joan Walton, NASA Ames Research Center Qualitative Anfoderungen Message-Service
More informationWeb Applications. Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html
2009 Marty Hall Using and Deploying Web Applications Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/msajsp.html Customized Java EE Training: http://courses.coreservlets.com/
More informationAnnouncements. Comments on project proposals will go out by email in next couple of days...
Announcements Comments on project proposals will go out by email in next couple of days... 3-Tier Using TP Monitor client application TP monitor interface (API, presentation, authentication) transaction
More informationLösungsvorschläge zum Übungsblatt 13: Fortgeschrittene Aspekte objektorientierter Programmierung (WS 2005/06)
Prof. Dr. A. Poetzsch-Heffter Dipl.-Inform. N. Rauch Technische Universität Kaiserslautern Fachbereich Informatik AG Softwaretechnik http://softech.informatik.uni-kl.de/fasoop Lösungsvorschläge zum Übungsblatt
More informationNo no-argument constructor. No default constructor found
Every software developer deals with bugs. The really tough bugs aren t detected by the compiler. Nasty bugs manifest themselves only when executed at runtime. Here is a list of the top ten difficult and
More informationDevice Log Export ENGLISH
Figure 14: Topic Selection Page Device Log Export This option allows you to export device logs in three ways: by E-Mail, FTP, or HTTP. Each method is described in the following sections. NOTE: If the E-Mail,
More informationOverview of Web Services API
1 CHAPTER The Cisco IP Interoperability and Collaboration System (IPICS) 4.5(x) application programming interface (API) provides a web services-based API that enables the management and control of various
More informationOutline. Lecture 9: Java Servlet and JSP. Servlet API. HTTP Servlet Basics
Lecture 9: Java Servlet and JSP Wendy Liu CSC309F Fall 2007 Outline HTTP Servlet Basics Servlet Lifecycle Request and Response Session Management JavaServer Pages (JSP) 1 2 HTTP Servlet Basics Current
More informationDevelopment of a Real-time Customer Service System. Abstract
44 Development of a Real-time Customer Service System I.O. AWOYELU ** Department of Computer Science & Engineering, Obafemi Awolowo University, Ile-Ife, Nigeria E-mail: iawoyelu@oauife.edu.ng Abstract
More informationCreating Custom Web Pages for cagrid Services
Creating Custom Web Pages for cagrid Services Creating Custom Web Pages for cagrid Services Contents Overview Changing the Default Behavior Subclassing the AXIS Servlet Installing and Configuring the Custom
More informationPA165 - Lab session - Web Presentation Layer
PA165 - Lab session - Web Presentation Layer Author: Martin Kuba Goal Experiment with basic building blocks of Java server side web technology servlets, filters, context listeners,
More informationINSIDE SERVLETS. Server-Side Programming for the Java Platform. An Imprint of Addison Wesley Longman, Inc.
INSIDE SERVLETS Server-Side Programming for the Java Platform Dustin R. Callaway TT ADDISON-WESLEY An Imprint of Addison Wesley Longman, Inc. Reading, Massachusetts Harlow, England Menlo Park, California
More informationIntegrating Servlets and JSP: The Model View Controller (MVC) Architecture
2012 Marty Hall Integrating Servlets and JSP: The Model View Controller (MVC) Architecture Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/csajsp2.html
More informationFor all the people which doesn't have enough money to buy good books. For all the rippers.
For all the people which doesn't have enough money to buy good books. For all the rippers. pro2002 1 Apache Jakarta-Tomcat by James Goodwill Apress 2002 (237 pages) ISBN: 1893115364 Learn about Tomcat
More informationLiferay Enterprise ecommerce. Adding ecommerce functionality to Liferay Reading Time: 10 minutes
Liferay Enterprise ecommerce Adding ecommerce functionality to Liferay Reading Time: 10 minutes Broadleaf + Liferay ecommerce + Portal Options Integration Details REST APIs Integrated IFrame Separate Conclusion
More informationJava Servlet 3.0. Rajiv Mordani Spec Lead
Java Servlet 3.0 Rajiv Mordani Spec Lead 1 Overview JCP Java Servlet 3.0 API JSR 315 20 members > Good mix of representation from major Java EE vendors, web container developers and web framework authors
More informationArjun V. Bala Page 20
12) Explain Servlet life cycle & importance of context object. (May-13,Jan-13,Jun-12,Nov-11) Servlet Life Cycle: Servlets follow a three-phase life cycle, namely initialization, service, and destruction.
More informationStep-by-Step Configuration Instructions
Overview Harvard Medical School (HMS) recently made some adjustments to allow students the ability of accessing their HMS student email remotely with a desktop email client. Students may now use a secure
More informationSystems Integration in the Cloud Era with Apache Camel. Kai Wähner, Principal Consultant
Systems Integration in the Cloud Era with Apache Camel Kai Wähner, Principal Consultant Kai Wähner Main Tasks Requirements Engineering Enterprise Architecture Management Business Process Management Architecture
More informationSession Tracking Customized Java EE Training: http://courses.coreservlets.com/
2012 Marty Hall Session Tracking Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/csajsp2.html 2 Customized Java EE Training: http://courses.coreservlets.com/
More informationchapter 3Chapter 3 Advanced Servlet Techniques Servlets and Web Sessions Store Information in a Session In This Chapter
chapter 3Chapter 3 Advanced Servlet Techniques In This Chapter Using sessions and storing state Using cookies for long-term storage Filtering HTTP requests Understanding WebLogic Server deployment issues
More informationGeronimo Quartz Plugins
Table of Contents 1. Introduction 1 1.1. Target Use Cases.. 1 1.2. Not Target Use Cases.. 2 2. About the Geronimo Quartz Plugins. 2 3. Installing the Geronimo Quartz Plugins 2 4. Usage Examples 3 4.1.
More informationCHAPTER 5. Java Servlets
,ch05.3555 Page 135 Tuesday, April 9, 2002 7:05 AM Chapter 5 CHAPTER 5 Over the last few years, Java has become the predominant language for server-side programming. This is due in no small part to the
More informationBuilding Web Applications, Servlets, JSP and JDBC
Building Web Applications, Servlets, JSP and JDBC Overview Java 2 Enterprise Edition (JEE) is a powerful platform for building web applications. The JEE platform offers all the advantages of developing
More information7 Web Databases. Access to Web Databases: Servlets, Applets. Java Server Pages PHP, PEAR. Languages: Java, PHP, Python,...
7 Web Databases Access to Web Databases: Servlets, Applets Java Server Pages PHP, PEAR Languages: Java, PHP, Python,... Prof. Dr. Dietmar Seipel 837 7.1 Access to Web Databases by Servlets Java Servlets
More informationAn Overview of Java. overview-1
An Overview of Java overview-1 Contents What is Java Major Java features Java virtual machine Java programming language Java class libraries (API) GUI Support in Java Networking and Threads in Java overview-2
More informationJava EE 6 New features in practice Part 3
Java EE 6 New features in practice Part 3 Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. License for use and distribution
More informationResult: Adds an X-header named "X-Company" with the value of "Your Company Name"
SMTPit Pro SMTPit_AddEmailHeader SMTPit_Clear SMTPit_Configure SMTPit_Connect SMTPit_Disconnect SMTPit_File_Copy SMTPit_File_Delete SMTPit_File_Exists SMTPit_File_Export SMTPit_File_GetPath SMTPit_File_Move
More informationCreating Java EE Applications and Servlets with IntelliJ IDEA
Creating Java EE Applications and Servlets with IntelliJ IDEA In this tutorial you will: 1. Create IntelliJ IDEA project for Java EE application 2. Create Servlet 3. Deploy the application to JBoss server
More informationWeb Application Architecture (based J2EE 1.4 Tutorial)
Web Application Architecture (based J2EE 1.4 Tutorial) 1 Disclaimer & Acknowledgments Even though Sang Shin is a full-time employee of Sun Microsystems, the contents here are created as his own personal
More informationMPDS Configuration Sheet MS Outlook Express Mail Client
Connecting Microsoft Outlook Express to an POP3 server. Pre-requisites: That the MPDS terminal is already connected to the Internet as described in other integration documents, Microsoft Outlook is Installed,
More informationWeb Applications and Struts 2
Web Applications and Struts 2 Problem area Problem area Separation of application logic and markup Easier to change and maintain Easier to re use Less error prone Access to functionality to solve routine
More informationWIRIS quizzes web services Getting started with PHP and Java
WIRIS quizzes web services Getting started with PHP and Java Document Release: 1.3 2011 march, Maths for More www.wiris.com Summary This document provides client examples for PHP and Java. Contents WIRIS
More informationNGASI AppServer Manager SaaS/ASP Hosting Automation for Cloud Computing Administrator and User Guide
NGASI AppServer Manager SaaS/ASP Hosting Automation for Cloud Computing Administrator and User Guide NGASI SaaS Hosting Automation is a JAVA SaaS Enablement infrastructure that enables web hosting services
More informationSSC - Web development Model-View-Controller for Java web application development
SSC - Web development Model-View-Controller for Java web application development Shan He School for Computational Science University of Birmingham Module 06-19321: SSC Outline Outline of Topics Java Server
More informationWhite Paper March 1, 2005. Integrating AR System with Single Sign-On (SSO) authentication systems
White Paper March 1, 2005 Integrating AR System with Single Sign-On (SSO) authentication systems Copyright 2005 BMC Software, Inc. All rights reserved. BMC, the BMC logo, all other BMC product or service
More informationDatabase System Concepts
Chapter 8(+4): Application Design and Development APIs Web Departamento de Engenharia Informática Instituto Superior Técnico 1 st Semester 2010/2011 Slides (fortemente) baseados nos slides oficiais do
More informationWeb Application Development
Web Application Development Introduction Because of wide spread use of internet, web based applications are becoming vital part of IT infrastructure of large organizations. For example web based employee
More informationDeveloping an EJB3 Application. on WebSphere 6.1. using RAD 7.5
Developing an EJB3 Application on WebSphere 6.1 using RAD 7.5 Introduction This tutorial introduces how to create a simple EJB 3 application using Rational Application Developver 7.5( RAD7.5 for short
More information