import com.ibm.portal.portlet.service.impersonation.impersonationservice;

Size: px
Start display at page:

Download "import com.ibm.portal.portlet.service.impersonation.impersonationservice;"

Transcription

1 Filter Class: package com.ibm.impersonationwithfilter; import java.io.ioexception; import javax.naming.context; import javax.naming.initialcontext; import javax.naming.namingexception; import javax.portlet.portletexception; import javax.portlet.renderrequest; import javax.portlet.renderresponse; import javax.portlet.filter.filterchain; import javax.portlet.filter.filterconfig; import javax.portlet.filter.renderfilter; import com.ibm.portal.impersonation.exceptions.impersonationexception; import com.ibm.portal.portlet.service.portletservicehome; import com.ibm.portal.portlet.service.impersonation.impersonationservice; import com.ibm.portal.um.user; import com.ibm.portal.um.exceptions.pumaexception; import com.ibm.portal.um.portletservice.pumahome; public class ImpersonationFilter implements RenderFilter { private boolean userimpersonated = false;

2 private User actualuser; private User originaluser; private String auser; private String ouser; PortletServiceHome pshimpersonate; PumaHome pumahome; public void destroy() { public void init(filterconfig filterconfig) throws PortletException { public void dofilter(renderrequest request, RenderResponse response, FilterChain filterchain) throws IOException, PortletException { try { Context ctx = new InitialContext(); pshimpersonate = (PortletServiceHome) ctx.lookup(impersonationservice.jndi_name); PortletServiceHome pshome; pshome = (PortletServiceHome) ctx.lookup(pumahome.jndi_name); pumahome = (PumaHome) pshome.getportletservice(pumahome.class);

3 catch (NamingException e) { // TODO Auto-generated catch block e.printstacktrace(); try { actualuser = pumahome.getprofile(request).getcurrentuser(); int temp = actualuser.tostring().indexof(","); auser = actualuser.tostring().substring(4, temp); catch (PumaException e1) { // TODO Auto-generated catch block e1.printstacktrace(); com.ibm.portal.portlet.service.portletservicehome psh = null; ImpersonationService impersonationservice; javax.naming.context ctx = null; try { ctx = new javax.naming.initialcontext(); catch (NamingException e) { // TODO Auto-generated catch block e.printstacktrace();

4 try { psh = (com.ibm.portal.portlet.service.portletservicehome) ctx.lookup(impersonationservice.jndi_name); if (psh!= null) { impersonationservice = (ImpersonationService) psh.getportletservice(impersonationservice.class); if (impersonationservice!= null) { userimpersonated = impersonationservice.isuserimpersonated(); originaluser = impersonationservice.getoriginaluser(); int temp = actualuser.tostring().indexof(","); ouser = originaluser.tostring().substring(4, temp); catch (javax.naming.namingexception ne) { // impersonation is not present catch (com.ibm.portal.portlet.service.portletserviceunavailableexception psue) { // impersonation is not present catch (ImpersonationException e) { response.setcontenttype("text/html"); if (userimpersonated) { response.getwriter().print("<b>you are in impersonation mode! <br><br>this portlet contains some of the sensitive user information which is not displayed</b><br>");

5 response.getwriter().print("the impersonated user is = " + auser); response.getwriter().print("<br>"); response.getwriter().print("the original user is = " + ouser); response.getwriter().print("<br><h3 style='margin-bottom: 3px'>Welcome!</H3>"); Details</H3>"); response.getwriter().print("<h3 style='margin-bottom: 3px'>Profile response.getwriter().print("<b>name</b> : " + auser); else { response.getwriter().print("<br><h3 style='margin-bottom: 3px'>Welcome!</H3>"); response.getwriter().print("<h3 style='margin-bottom: 3px'>Profile Details</H3><DIV style='margin: 12px; margin-bottom: 36px'>"); response.getwriter().print("<b>name</b> : " + auser); filterchain.dofilter(request, response); Portlet class package com.ibm.impersonationwithfilter; import java.io.ioexception;

6 import javax.portlet.actionrequest; import javax.portlet.actionresponse; import javax.portlet.genericportlet; import javax.portlet.portletexception; import javax.portlet.portletrequest; import javax.portlet.portletrequestdispatcher; import javax.portlet.portletsession; import javax.portlet.renderrequest; import javax.portlet.renderresponse; A sample portlet based on GenericPortlet public class ImpersonationWithFilterPortlet extends GenericPortlet { public static final String JSP_FOLDER = "/_ImpersonationWithFilter/jsp/"; // JSP folder name public static final String VIEW_JSP = "ImpersonationWithFilterPortletView"; // JSP file name to be rendered on the view mode public static final String SESSION_BEAN = "ImpersonationWithFilterPortletSessionBean"; // Bean name for the portlet session public static final String FORM_SUBMIT = "ImpersonationWithFilterPortletFormSubmit"; // Action name for submit form public static final String FORM_TEXT = "ImpersonationWithFilterPortletFormText"; // Parameter name for the text input

7 @see javax.portlet.portlet#init() public void init() throws PortletException{ super.init(); Serve up the <code>view</code> javax.portlet.genericportlet#doview(javax.portlet.renderrequest, javax.portlet.renderresponse) public void doview(renderrequest request, RenderResponse response) throws PortletException, IOException { // Set the MIME type for the render response response.setcontenttype(request.getresponsecontenttype()); // Check if portlet session exists ImpersonationWithFilterPortletSessionBean sessionbean = getsessionbean(request); if( sessionbean==null ) { response.getwriter().println("<b>no PORTLET SESSION YET</b>"); return; // Invoke the JSP to render

8 PortletRequestDispatcher rd = getportletcontext().getrequestdispatcher(getjspfilepath(request, VIEW_JSP)); rd.include(request,response); Process an action javax.portlet.portlet#processaction(javax.portlet.actionrequest, javax.portlet.actionresponse) public void processaction(actionrequest request, ActionResponse response) throws PortletException, java.io.ioexception { if( request.getparameter(form_submit)!= null ) { // Set form text in the session bean ImpersonationWithFilterPortletSessionBean sessionbean = getsessionbean(request); if( sessionbean!= null ) sessionbean.setformtext(request.getparameter(form_text)); Get request ImpersonationWithFilterPortletSessionBean

9 private static ImpersonationWithFilterPortletSessionBean getsessionbean(portletrequest request) { PortletSession session = request.getportletsession(); if( session == null ) return null; ImpersonationWithFilterPortletSessionBean sessionbean = (ImpersonationWithFilterPortletSessionBean)session.getAttribute(SESSION_BEAN); if( sessionbean == null ) { sessionbean = new ImpersonationWithFilterPortletSessionBean(); session.setattribute(session_bean,sessionbean); return sessionbean; Returns JSP file request Render jspfile JSP file JSP file path private static String getjspfilepath(renderrequest request, String jspfile) { String markup = request.getproperty("wps.markup"); if( markup == null ) markup = getmarkup(request.getresponsecontenttype());

10 return JSP_FOLDER + markup + "/" + jspfile + "." + getjspextension(markup); Convert MIME type to markup contenttype MIME Markup name private static String getmarkup(string contenttype) { if( "text/vnd.wap.wml".equals(contenttype) ) return "wml"; else return "html"; Returns the file extension for the JSP markupname Markup JSP extension private static String getjspextension(string markupname) { return "jsp";

11 ImpersonationWithFilterPortletSessionBean package com.ibm.impersonationwithfilter; A sample Java bean that stores portlet instance data in portlet session. public class ImpersonationWithFilterPortletSessionBean { Last text for the text form private String formtext = ""; Set last text for the text formtext last text for the text form. public void setformtext(string formtext) { this.formtext = formtext; Get last text for the text last text for the text form public String getformtext() { return this.formtext; Exception class package com.ibm.portal.impersonation.exceptions; public class ImpersonationException extends Throwable{ private static final long serialversionuid = 1L; Resource bundle

12 # en Resource Bundle # # filename: ImpersonationWithFilterPortletResource_en.properties # Portlet Info resource bundle example javax.portlet.title=impersonationwithfilter javax.portlet.short-title=impersonationwithfilter javax.portlet.keywords=impersonationwithfilter jsp <%@page session="false" contenttype="text/html" pageencoding="iso " import="java.util.,javax.portlet.,com.ibm.impersonationwithfilter." %> <%@ taglib uri=" prefix="portlet"%> <%@taglib uri=" prefix="portlet-client-model" %> <portlet:defineobjects/> <portlet-client-model:init> <portlet-client-model:require module="ibm.portal.xml."/> <portlet-client-model:require module="ibm.portal.portlet."/> </portlet-client-model:init> <% com.ibm.impersonationwithfilter.impersonationwithfilterportletsessionbe an sessionbean = (com.ibm.impersonationwithfilter.impersonationwithfilterportletsessionbean)re nderrequest.getportletsession().getattribute(com.ibm.impersonationwithfilter. ImpersonationWithFilterPortlet.SESSION_BEAN); %> <DIV style="margin: 6px"> <img src='<%=renderresponse.encodeurl(renderrequest.getcontextpath() + "/_ImpersonationWithFilter/jsp/html/monkey.jpg")%>' alt="monkey" /> <DIV style="margin: 12px; margin-bottom: 36px"> <b>ssn</b> : <br> <b>date of Birth</b> : Jul 4, 1910 </DIV> </DIV>

Developing JSR-168- Compliant Portlets for the SAS Information Delivery Portal 4.2

Developing JSR-168- Compliant Portlets for the SAS Information Delivery Portal 4.2 Developing JSR-168- Compliant Portlets for the SAS Information Delivery Portal 4.2 SAS Documentation The correct bibliographic citation for this manual is as follows:..., :. U.S. Government Restricted

More information

Advanced Software Engineering

Advanced Software Engineering Agent and Object Technology Lab Dipartimento di Ingegneria dell Informazione Università degli Studi di Parma Advanced Software Engineering JSR 168 Prof. Agostino Poggi JSR 168 Java Community Process: http://www.jcp.org/en/jsr/detail?id=168

More information

Implementing JSR 168 inter-portlet communication using Rational Application Developer V6.0 and WebSphere Portal V5.1

Implementing JSR 168 inter-portlet communication using Rational Application Developer V6.0 and WebSphere Portal V5.1 Implementing JSR 168 inter-portlet communication using Rational Application Developer V6.0 and WebSphere Portal V5.1 Level: Intermediate Asim Saddal (mailto:asaddal@us.ibm.com) Senior IT Specialist, IBM

More information

Sang Shin. Java Portlets (JSR-168) Revision History. Disclaimer & Acknowledgments

Sang Shin. Java Portlets (JSR-168) Revision History. Disclaimer & Acknowledgments Java Portlets (JSR-168) 1 Sang Shin sang.shin@sun.com www.javapassion.com Java Technology Evangelist Sun Microsystems, Inc. 2 Disclaimer & Acknowledgments Even though Sang Shin is a full-time employee

More information

PORTIONS (PORTlet actions) User Guide

PORTIONS (PORTlet actions) User Guide PORTIONS (PORTlet actions) User Guide Controller Specification of the application's controller portlet.xml

More information

USE OF EXPANDO API IN LIFERAYS

USE OF EXPANDO API IN LIFERAYS USE OF EXPANDO API IN LIFERAYS By Akaram siddiqui contact@attuneuniversity.com www.attuneuniversity.com Expando Api In Liferay the Expando service is a "generic" service which allows you to dynamically

More information

Portlet Standard JSR 168 / JSR 286

Portlet Standard JSR 168 / JSR 286 Portlet Standard JSR 168 / JSR 286 Version 1.0 Martin Weiss Martin Weiss Informatik AG Agenda JSR 168 2 JSR 168 What Is Missing? 22 JSR 286 25 Portlet Events 28 Public Render Parameters 32 Events vs. Public

More information

Tutorial: Developing a Simple Hello World Portlet

Tutorial: Developing a Simple Hello World Portlet Venkata Sri Vatsav Reddy Konreddy Tutorial: Developing a Simple Hello World Portlet CIS 764 This Tutorial helps to create and deploy a simple Portlet. This tutorial uses Apache Pluto Server, a freeware

More information

Administration Console Extension Developer's Guide

Administration Console Extension Developer's Guide Administration Console Extension Developer's Guide {scrollbar} Previous versions of Geronimo have included a noncustomizable, static administration console. Often times when a user installs Geronimo, the

More information

Introduction to JSR 168 The Java Portlet Specification

Introduction to JSR 168 The Java Portlet Specification Whitepaper Introduction to JSR 168 The Java Portlet Specification On the Web http://developer.sun.com Introduction to JSR 168 The Java Portlet Specification Table of Contents Introduction to JSR 168 The

More information

Portlet Development Guide Introduction to the Portlet API

Portlet Development Guide Introduction to the Portlet API Portlet Development Guide Introduction to the Portlet API First Edition October 25, 2001 Authors: Stephan Hesmer Peter Fischer Ted Buckner Pervasive Computing Development 1. Abstract...4 2. Overview...5

More information

Developing JSR-168- Compliant Portlets for the SAS Information Delivery Portal 4.3

Developing JSR-168- Compliant Portlets for the SAS Information Delivery Portal 4.3 Developing JSR-168- Compliant Portlets for the SAS Information Delivery Portal 4.3 SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc 2010. Developing

More information

文字エンコーディングフィルタ 1. 更新履歴 2003/07/07 新規作成(第 0.1 版) 版 数 第 0.1 版 ページ番号 1

文字エンコーディングフィルタ 1. 更新履歴 2003/07/07 新規作成(第 0.1 版) 版 数 第 0.1 版 ページ番号 1 1. 2003/07/07 ( 0.1 ) 0.1 1 2. 2.1. 2.1.1. ( ) Java Servlet API2.3 (1) API (javax.servlet.filter ) (2) URL 2.1.2. ( ) ( ) OS OS Windows MS932 Linux EUC_JP 0.1 2 2.1.3. 2.1.2 Web ( ) ( ) Web (Java Servlet

More information

Beyond the Portlet API

Beyond the Portlet API Beyond the Portlet API (More) Advanced Topics in WebSphere Portal Development Graham Harper Application Architect IBM Software Services for WebSphere Ideas behind this session Broaden the discussion when

More information

Content Server / Spark. Version: 6.3. Delivery Portlet Developer s Guide

Content Server / Spark. Version: 6.3. Delivery Portlet Developer s Guide Content Server / Spark Version: 6.3 Delivery Portlet Developer s Guide Document Revision Date: Dec. 1, 2005 FATWIRE CORPORATION PROVIDES THIS PUBLICATION AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED

More information

Liferay 7 Portlet to Empower Your Custom Development

Liferay 7 Portlet to Empower Your Custom Development Liferay 7 Portlet to Empower Your Custom Development Liferay 7 Portlet to Empower Your Custom Development Though there are many implementations of MVC frameworks in Java, Liferay has created another lightweight

More information

JSR 168 Portlet Spec

JSR 168 Portlet Spec JSR 168 Portlet Spec IEEE Certified Software Development Professional http://www.computer.org/certification http://www.goggins.com Agenda 1. Portal & Portlet Architecture & Strategy 2. Pluto 3. Our First

More information

JSP. Common patterns

JSP. 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 information

Portlets (JSR-168) Dave Landers. BEA Systems, Inc. Dave Landers Portlets (JSR-168)

Portlets (JSR-168) Dave Landers. BEA Systems, Inc.  Dave Landers Portlets (JSR-168) Portlets (JSR-168) Dave Landers BEA Systems, Inc. dave.landers@4dv.net dave.landers@bea.com Page 1 Agenda Introduction Concepts Portals, Portlets, WebApps The Basics API, Modes, States, Lifecycle of a

More information

EJB - INTERCEPTORS. Interceptor methods can be applied or bound at three levels

EJB - INTERCEPTORS. Interceptor methods can be applied or bound at three levels http://www.tutorialspoint.com/ejb/ejb_interceptors.htm EJB - INTERCEPTORS Copyright tutorialspoint.com EJB 3.0 provides specification to intercept business methods calls using methods annotated with @AroundInvoke

More information

Ajax DWR dojo In WebSphere Portal

Ajax DWR dojo In WebSphere Portal Ajax DWR dojo In WebSphere Portal 1 / 24 Review History Version Date Author Change Description 1.0a 10-Feb-09 Imtiaz B Syed New Document 1.0 10-Feb-09 Chaitanya P Paidipalli Review 2 / 24 Introduction

More information

Development of the Security Framework based on OWASP ESAPI for JSF2.0

Development of the Security Framework based on OWASP ESAPI for JSF2.0 Development of the Security Framework based on OWASP ESAPI for JSF2.0 Autor Website http://www.security4web.ch 14 May 2013 1. Introduction... 3 2. File based authorization module... 3 2.1 Presentation...

More information

Building Blocks for a Simple TeraGrid Science Gateway

Building Blocks for a Simple TeraGrid Science Gateway Building Blocks for a Simple TeraGrid Science Gateway -- A GISolve Approach Yan Liu and Shaowen Wang Grid Research & education group @ iowa (GROW) The University of Iowa June 4, 2007 1 Contributors/Collaborators

More information

Standards and the Portals Project

Standards and the Portals Project Standards and the Portals Project Carsten Ziegeler cziegeler@apache.org Competence Center Open Source S&N AG, Germany Member of the Apache Software Foundation Committer in some Apache Projects Cocoon,

More information

IBM Realtests LOT-911 Exam Questions & Answers

IBM Realtests LOT-911 Exam Questions & Answers IBM Realtests LOT-911 Exam Questions & Answers Number: LOT-911 Passing Score: 800 Time Limit: 120 min File Version: 35.4 http://www.gratisexam.com/ IBM LOT-911 Exam Questions & Answers Exam Name: IBM WebSphere

More information

2018/2/5 话费券企业客户接入文档 语雀

2018/2/5 话费券企业客户接入文档 语雀 1 2 2 1 2 1 1 138999999999 2 1 2 https:lark.alipay.com/kaidi.hwf/hsz6gg/ppesyh#2.4-%e4%bc%81%e4%b8%9a%e5%ae%a2%e6%88%b7%e6%8e%a5%e6%94%b6%e5%85%85%e5 1/8 2 1 3 static IAcsClient client = null; public static

More information

Java TM. JavaServer Faces. Jaroslav Porubän 2008

Java TM. JavaServer Faces. Jaroslav Porubän 2008 JavaServer Faces Jaroslav Porubän 2008 Web Applications Presentation-oriented Generates interactive web pages containing various types of markup language (HTML, XML, and so on) and dynamic content in response

More information

Liferay Customization Hints

Liferay Customization Hints Liferay Customization Hints Hooks Themes Services Portlet Intercommunications Semantic Enhancements Business Architecture Sandbox for Enterprise (BASE) Hooks There are several ways to customize a Liferay

More information

directive attribute1= value1 attribute2= value2... attributen= valuen %>

directive attribute1= value1 attribute2= value2... attributen= valuen %> JSP Standard Syntax Besides HTML tag elements, JSP provides four basic categories of constructors (markup tags): directives, scripting elements, standard actions, and comments. You can author a JSP page

More information

Introduction to Portlet Programming with JSR-168

Introduction to Portlet Programming with JSR-168 Introduction to Portlet Programming with JSR-168 Noel J. Bergman DevTech Noel Bergman Introduction to Portlet Programming with JSR-168 Page 1 Session Overview Portals are a hot growth area, but prior to

More information

Portals allow users easy access to information

Portals allow users easy access to information Editor: Siobhán Clarke siobhan.clarke@cs.tcd.ie Standards for Fernando Bellas University of A Coruña, Spain By integrating applications and resources, portals let users access information in a simple,

More information

Web Applications and Database Connectivity using JDBC (Part II)

Web Applications and Database Connectivity using JDBC (Part II) Web Applications and Database Connectivity using JDBC (Part II) Advanced Topics in Java Khalid Azim Mughal khalid@ii.uib.no http://www.ii.uib.no/~khalid/atij/ Version date: 2007-02-08 ATIJ Web Applications

More information

JavaServer Pages (JSP)

JavaServer Pages (JSP) JavaServer Pages (JSP) The Context The Presentation Layer of a Web App the graphical (web) user interface frequent design changes usually, dynamically generated HTML pages Should we use servlets? No difficult

More information

Portlet Development Guide Working with the Portlet API 1.1 Java Server Pages in Portlets Portlet Design Guidelines Security and Single Sign On

Portlet Development Guide Working with the Portlet API 1.1 Java Server Pages in Portlets Portlet Design Guidelines Security and Single Sign On Portlet Development Guide Working with the Portlet API 1.1 Java Server Pages in Portlets Portlet Design Guidelines Security and Single Sign On First Edition April 2, 2002 Authors: Stephan Hesmer Peter

More information

sessionx Desarrollo de Aplicaciones en Red EL (2) EL (1) Implicit objects in EL Literals José Rafael Rojano Cáceres

sessionx Desarrollo de Aplicaciones en Red EL (2) EL (1) Implicit objects in EL Literals José Rafael Rojano Cáceres sessionx Desarrollo de Aplicaciones en Red José Rafael Rojano Cáceres http://www.uv.mx/rrojano EL Expression Language Write the code in something else, just let EL call it. EL () EL stand for Expression

More information

Advanced Web Systems 3- Portlet and JSP-JSTL. A. Venturini

Advanced Web Systems 3- Portlet and JSP-JSTL. A. Venturini Advanced Web Systems 3- Portlet and JSP-JSTL A. Venturini Contents Portlet: doview flow Handling Render phase Portlet: processaction flow Handling the action phase Portlet URL Generation JSP and JSTL Sample:

More information

Introduction to Session beans EJB 3.0

Introduction to Session beans EJB 3.0 Introduction to Session beans EJB 3.0 Remote Interface EJB 2.1 ===================================================== public interface Hello extends javax.ejb.ejbobject { /** * The one method - hello -

More information

Common-Controls Guided Tour TreeControl

Common-Controls Guided Tour TreeControl Common-Controls Guided Tour TreeControl Version 1.0.3 - Last changed: 01. August 2004 Herausgeber: SCC Informationssysteme GmbH 64367 Mühltal Tel: +49 (0) 6151 / 13 6 31 0 Internet www.scc-gmbh.com Product

More information

CIS 764 Tutorial: Log-in Application

CIS 764 Tutorial: Log-in Application CIS 764 Tutorial: Log-in Application Javier Ramos Rodriguez Purpose This tutorial shows you how to create a small web application that checks the user name and password. Overview This tutorial will show

More information

EJB - DEPENDENCY INJECTION

EJB - DEPENDENCY INJECTION EJB - DEPENDENCY INJECTION http://www.tutorialspoint.com/ejb/ejb_dependency_injection.htm Copyright tutorialspoint.com EJB 3.0 specification provides annotations which can be applied on fields or setter

More information

Integrating NWDS with a Non-SAP Server (JBoss AS) to Develop and Deploy Java EE Applications

Integrating NWDS with a Non-SAP Server (JBoss AS) to Develop and Deploy Java EE Applications Integrating NWDS with a Non-SAP Server (JBoss AS) to Develop and Deploy Java EE Applications Applies to: This article applies to SAP NetWeaver Developer Studio, SAP NetWeaver 7.1 CE SP03 PAT0000 Summary

More information

Common-Controls Guided Tour TabSetControl

Common-Controls Guided Tour TabSetControl Common-Controls Guided Tour TabSetControl Version 1.0.3 - Last changed: 01. August 2004 Herausgeber: SCC Informationssysteme GmbH 64367 Mühltal Tel: +49 (0) 6151 / 13 6 31 0 Internet www.scc-gmbh.com Product

More information

JSR-286: Portlet Specification 2.0

JSR-286: Portlet Specification 2.0 JSR-286: Portlet Specification 2.0 for Portal and Portlet Developers Ate Douma Apache Software Foundation Member Apache Portals and Apache Wicket Committer & PMC Member JSR-286 & JSR-301 Expert Group Member

More information

A.1 JSP A.2 JSP JSP JSP. MyDate.jsp page contenttype="text/html; charset=windows-31j" import="java.util.calendar" %>

A.1 JSP A.2 JSP JSP JSP. MyDate.jsp page contenttype=text/html; charset=windows-31j import=java.util.calendar %> A JSP A.1 JSP Servlet Java HTML JSP HTML Java ( HTML JSP ) JSP Servlet Servlet HTML JSP MyDate.jsp

More information

Session 11. Expression Language (EL) Reading

Session 11. Expression Language (EL) Reading Session 11 Expression Language (EL) 1 Reading Reading Head First pages 368-401 Sun Java EE 5 Chapter 5 in the Tutorial java.sun.com/javaee/5/docs/tutorial/doc/javaeetutorial.pdf / / / / / Reference JSTL

More information

BEAWebLogic Server. Monitoring and Managing with the Java EE Management APIs

BEAWebLogic Server. Monitoring and Managing with the Java EE Management APIs BEAWebLogic Server Monitoring and Managing with the Java EE Management APIs Version 10.0 Revised: March 30, 2007 Contents 1. Introduction and Roadmap Document Scope and Audience.............................................

More information

EJB - ACCESS DATABASE

EJB - ACCESS DATABASE EJB - ACCESS DATABASE http://www.tutorialspoint.com/ejb/ejb_access_database.htm Copyright tutorialspoint.com EJB 3.0, persistence mechanism is used to access the database in which container manages the

More information

Stateless Session Bean

Stateless Session Bean Session Beans As its name implies, a session bean is an interactive bean and its lifetime is during the session with a specific client. It is non-persistent. When a client terminates the session, the bean

More information

SERVLET AND JSP FILTERS

SERVLET AND JSP FILTERS SERVLET AND JSP FILTERS FILTERS OVERVIEW Filter basics Accessing the servlet context Using initialization parameters Blocking responses Modifying responses FILTERS: OVERVIEW Associated with any number

More information

Portlets and Ajax: Building More Dynamic Web Apps

Portlets and Ajax: Building More Dynamic Web Apps Portlets and Ajax: Building More Dynamic Web Apps Subbu Allamaraju Senior Staff Engineer BEA Systems, Inc. TS-4003 2007 JavaOne SM Conference Session TS-4003 Goals Goals of the of Session the Session Learn

More information

Advanced Internet Technology Lab # 4 Servlets

Advanced Internet Technology Lab # 4 Servlets Faculty of Engineering Computer Engineering Department Islamic University of Gaza 2011 Advanced Internet Technology Lab # 4 Servlets Eng. Doaa Abu Jabal Advanced Internet Technology Lab # 4 Servlets Objective:

More information

Common-Controls Guided Tour ListControl

Common-Controls Guided Tour ListControl Common-Controls Guided Tour ListControl Version 1.0.3 Last changed: 01. August 2004 Publisher: SCC Informationssysteme GmbH 64367 Mühltal (Germany) Tel: +49 (0) 6151 / 13 6 31 0 Internet www.scc-gmbh.com

More information

Java Technologies Web Filters

Java Technologies Web Filters Java Technologies Web Filters The Context Upon receipt of a request, various processings may be needed: Is the user authenticated? Is there a valid session in progress? Is the IP trusted, is the user's

More information

Three hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. Date: Friday 21 st May Time:

Three hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. Date: Friday 21 st May Time: COMP67032 Three hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE Building Web Applications Date: Friday 21 st May 2010 Time: 14.00 17.00 Answer Question 1 from Section A and TWO questions out

More information

Lab2: CMP Entity Bean working with Session Bean

Lab2: CMP Entity Bean working with Session Bean Session Bean The session bean in the Lab1 uses JDBC connection to retrieve conference information from the backend database directly. The Lab2 extends the application in Lab1 and adds an new entity bean

More information

Exploring EJB3 With JBoss Application Server Part 6.3

Exploring EJB3 With JBoss Application Server Part 6.3 By Swaminathan Bhaskar 02/07/2009 Exploring EJB3 With JBoss Application Server Part 6.3 In this part, we will continue to explore Entity Beans Using Java Persistence API (JPA). In the previous part, we

More information

&' () - #-& -#-!& 2 - % (3" 3 !!! + #%!%,)& ! "# * +,

&' () - #-& -#-!& 2 - % (3 3 !!! + #%!%,)& ! # * +, ! "# # $! " &' ()!"#$$&$'(!!! ($) * + #!,)& - #-& +"- #!(-& #& #$.//0& -#-!& #-$$!& 1+#& 2-2" (3" 3 * * +, - -! #.// HttpServlet $ Servlet 2 $"!4)$5 #& 5 5 6! 0 -.// # 1 7 8 5 9 2 35-4 2 3+ -4 2 36-4 $

More information

BEAWebLogic. Server. Monitoring and Managing with the J2EE Management APIs

BEAWebLogic. Server. Monitoring and Managing with the J2EE Management APIs BEAWebLogic Server Monitoring and Managing with the J2EE Management APIs Version 9.2 Revised: August 1, 2006 Copyright Copyright 1995-2006 BEA Systems, Inc. All Rights Reserved. Restricted Rights Legend

More information

Alternate Methods for Informatica Metadata Exchange SDK

Alternate Methods for Informatica Metadata Exchange SDK Alternate Methods for Informatica Metadata Exchange SDK Informatica Metadata Exchange SDK provides a set of COM-based APIs for exchanging metadata with the PowerCenter repository. You can also use this

More information

1. Introduction. 2. Life Cycle Why JSP is preferred over Servlets? 2.1. Translation. Java Server Pages (JSP) THETOPPERSWAY.

1. Introduction. 2. Life Cycle Why JSP is preferred over Servlets? 2.1. Translation. Java Server Pages (JSP) THETOPPERSWAY. 1. Introduction Java Server Pages (JSP) THETOPPERSWAY.COM Java Server Pages (JSP) is used for creating dynamic web pages. Java code can be inserted in HTML pages by using JSP tags. The tags are used for

More information

Unit-4: Servlet Sessions:

Unit-4: Servlet Sessions: 4.1 What Is Session Tracking? Unit-4: Servlet Sessions: Session tracking is the capability of a server to maintain the current state of a single client s sequential requests. Session simply means a particular

More information

JSR-286: Portlet Specification 2.0

JSR-286: Portlet Specification 2.0 JSR-286: Portlet Specification 2.0 Upcoming enhancements and new features for Portal and Portlet Developers Ate Douma JSR-286 Expert Group Software Architect Hippo Open Source Content Management Software

More information

jar command Java Archive inherits from tar : Tape Archive commands: jar cvf filename jar tvf filename jar xvf filename java jar filename.

jar command Java Archive inherits from tar : Tape Archive commands: jar cvf filename jar tvf filename jar xvf filename java jar filename. jar & jar files jar command Java Archive inherits from tar : Tape Archive commands: jar cvf filename jar tvf filename jar xvf filename java jar filename.jar jar file A JAR file can contain Java class files,

More information

Session 8. JavaBeans. Reading & Reference. Reading. Reference. Session 8 Java Beans. 2/27/2013 Robert Kelly, Head First Chapter 3 (MVC)

Session 8. JavaBeans. Reading & Reference. Reading. Reference. Session 8 Java Beans. 2/27/2013 Robert Kelly, Head First Chapter 3 (MVC) Session 8 JavaBeans 1 Reading Reading & Reference Head First Chapter 3 (MVC) Reference JavaBeans Tutorialdocs.oracle.com/javase/tutorial/javabeans/ 2 2/27/2013 1 Lecture Objectives Understand how the Model/View/Controller

More information

Session 21. Expression Languages. Reading. Java EE 7 Chapter 9 in the Tutorial. Session 21 Expression Languages 11/7/ Robert Kelly,

Session 21. Expression Languages. Reading. Java EE 7 Chapter 9 in the Tutorial. Session 21 Expression Languages 11/7/ Robert Kelly, Session 21 Expression Languages 1 Reading Java EE 7 Chapter 9 in the Tutorial 2 11/7/2018 1 Lecture Objectives Understand how Expression Languages can simplify the integration of data with a view Know

More information

COURSE 9 DESIGN PATTERNS

COURSE 9 DESIGN PATTERNS COURSE 9 DESIGN PATTERNS CONTENT Applications split on levels J2EE Design Patterns APPLICATION SERVERS In the 90 s, systems should be client-server Today, enterprise applications use the multi-tier model

More information

Virus Scan with SAP Process Integration Using Custom EJB Adapter Module

Virus Scan with SAP Process Integration Using Custom EJB Adapter Module Virus Scan with SAP Process Integration Using Custom EJB Adapter Module Applies to: SAP Process Integration 7.0 and Above Versions. Custom Adapter Module, Virus Scan Adapter Module, Virus Scan in SAP PI.

More information

CS506 Web Design & Development Final Term Solved MCQs with Reference

CS506 Web Design & Development Final Term Solved MCQs with Reference with Reference I am student in MCS (Virtual University of Pakistan). All the MCQs are solved by me. I followed the Moaaz pattern in Writing and Layout this document. Because many students are familiar

More information

CreateServlet.java

CreateServlet.java Classes in OBAAS 1.2: -------------------- The package name is pack_bank. Create this package in java source of your project. Create classes as per the class names provided here. You can then copy the

More information

Author - Ashfaque Ahmed

Author - Ashfaque Ahmed Complimentary material for the book Software Engineering in the Agile World (ISBN: 978-1983801570) published by Create Space Independent Publishing Platform, USA Author - Ashfaque Ahmed Technical support

More information

CMP relations between Enterprise Java Beans (EJB) eclipse, xdoclet, jboss

CMP relations between Enterprise Java Beans (EJB) eclipse, xdoclet, jboss CMP relations between Enterprise Java Beans (EJB) eclipse, xdoclet, jboss A step by step example showing how to develop CMP relations between EJBs using eclipse, xdoclet and MyEclipse. We use an example

More information

Data Service Patterns Jeff Zhuk

Data Service Patterns Jeff Zhuk Data Service Patterns Jeff Zhuk From the book and beyond Integration-Ready Architecture and Design Cambridge University Press Software Engineering With XML, Java,.NET, Wireless, Speech and Knowledge Technologies

More information

Lab1: Stateless Session Bean for Registration Fee Calculation

Lab1: Stateless Session Bean for Registration Fee Calculation Registration Fee Calculation The Lab1 is a Web application of conference registration fee discount calculation. There may be sub-conferences for attendee to select. The registration fee varies for different

More information

Kamnoetvidya Science Academy. Object Oriented Programming using Java. Ferdin Joe John Joseph. Java Session

Kamnoetvidya Science Academy. Object Oriented Programming using Java. Ferdin Joe John Joseph. Java Session Kamnoetvidya Science Academy Object Oriented Programming using Java Ferdin Joe John Joseph Java Session Create the files as required in the below code and try using sessions in java servlets web.xml

More information

1D/2D android secondary development

1D/2D android secondary development 1D/2D android secondary development The example in this document is developed in eclipse. 1. Import library to project Copy the filefolder and to the Project- libs 2.Copy JAVA

More information

Principles and Techniques of DBMS 6 JSP & Servlet

Principles and Techniques of DBMS 6 JSP & Servlet Principles and Techniques of DBMS 6 JSP & Servlet Haopeng Chen REliable, INtelligent and Scalable Systems Group (REINS) Shanghai Jiao Tong University Shanghai, China http://reins.se.sjtu.edu.cn/~chenhp

More information

Unit 4 Java Server Pages

Unit 4 Java Server Pages Q1. List and Explain various stages of JSP life cycle. Briefly give the function of each phase. Ans. 1. A JSP life cycle can be defined as the entire process from its creation till the destruction. 2.

More information

Oracle 1z Java Enterprise Edition 5 Web Component Developer Certified Professional Exam. Practice Test. Version:

Oracle 1z Java Enterprise Edition 5 Web Component Developer Certified Professional Exam. Practice Test. Version: Oracle 1z0-858 Java Enterprise Edition 5 Web Component Developer Certified Professional Exam Practice Test Version: 14.21 QUESTION NO: 1 To take advantage of the capabilities of modern browsers that use

More information

/* Copyright 2012 Robert C. Ilardi

/* Copyright 2012 Robert C. Ilardi / Copyright 2012 Robert C. Ilardi Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

More information

CSC309: Introduction to Web Programming. Lecture 11

CSC309: Introduction to Web Programming. Lecture 11 CSC309: Introduction to Web Programming Lecture 11 Wael Aboulsaadat Servlets+JSP Model 2 Architecture 2 Servlets+JSP Model 2 Architecture = MVC Design Pattern 3 Servlets+JSP Model 2 Architecture Controller

More information

BEAWebLogic. Server. Monitoring and Managing with the J2EE Management APIs

BEAWebLogic. Server. Monitoring and Managing with the J2EE Management APIs BEAWebLogic Server Monitoring and Managing with the J2EE Management APIs Version 9.0 Revised: July 22, 2005 Copyright Copyright 2005 BEA Systems, Inc. All Rights Reserved. Restricted Rights Legend This

More information

Simple Stateless with Descriptor

Simple Stateless with Descriptor Simple Stateless with Descriptor Example simple-stateless-with-descriptor can be browsed at https://github.com/apache/tomee/tree/master/examples/simple-stateless-withdescriptor This test is similar to

More information

Communication.java 1

Communication.java 1 19.07.17 Communication.java 1 package framework.tracking; import java.io.ioexception; import java.net.datagrampacket; import java.net.inetaddress; import java.net.multicastsocket; import java.util.concurrent.concurrenthashmap;

More information

Oracle Universal Content Management. Content Portlet Suite Developer Guide 10g Release 3 ( )

Oracle Universal Content Management. Content Portlet Suite Developer Guide 10g Release 3 ( ) Oracle Universal Content Management Content Portlet Suite Developer Guide 10g Release 3 (10.1.3.3.3) November 2008 Oracle Content Portlet Suite Developer Guide, 10g Release 3 (10.1.3.3.3) Copyright 1996,

More information

BEAWebLogic Server and WebLogic Express. Programming WebLogic JNDI

BEAWebLogic Server and WebLogic Express. Programming WebLogic JNDI BEAWebLogic Server and WebLogic Express Programming WebLogic JNDI Version 10.0 Document Revised: March 30, 2007 Contents 1. Introduction and Roadmap Document Scope and Audience.............................................

More information

JSP Scripting Elements

JSP Scripting Elements JSP Scripting Elements Core Servlets & JSP book: More Servlets & JSP book: www.moreservlets.com Servlet and JSP Training Courses: courses.coreservlets.com 1 Slides Marty Hall, http://, book Sun Microsystems

More information

PES INSTITUTE OF TECHNOLOGY, SOUTH CAMPUS DEPARTMENT OF MCA INTERNAL TEST (SCHEME AND SOLUTION) II

PES INSTITUTE OF TECHNOLOGY, SOUTH CAMPUS DEPARTMENT OF MCA INTERNAL TEST (SCHEME AND SOLUTION) II PES INSTITUTE OF TECHNOLOGY, SOUTH CAMPUS DEPARTMENT OF MCA INTERNAL TEST (SCHEME AND SOLUTION) II Subject Name: Advanced JAVA programming Subject Code: 13MCA42 Time: 11:30-01:00PM Max.Marks: 50M ----------------------------------------------------------------------------------------------------------------

More information

Customizing the WebSphere Portal login and logout commands

Customizing the WebSphere Portal login and logout commands Customizing the WebSphere Portal login and logout commands Abstract This technical note provides detailed information about how the WebSphere Portal login or logout flow can be extended or customized by

More information

Using the JBoss IDE for Eclipse

Using the JBoss IDE for Eclipse Using the JBoss IDE for Eclipse Important: Some combinations of JBoss/JBoss-IDE/Eclipse do not like to work with each other. Be very careful about making sure all the software versions are compatible.

More information

Web Programming. Lecture 11. University of Toronto

Web Programming. Lecture 11. University of Toronto CSC309: Introduction to Web Programming Lecture 11 Wael Aboulsaadat University of Toronto Servlets+JSP Model 2 Architecture University of Toronto 2 Servlets+JSP Model 2 Architecture = MVC Design Pattern

More information

JavaServer Pages. Juan Cruz Kevin Hessels Ian Moon

JavaServer Pages. Juan Cruz Kevin Hessels Ian Moon Page 1 of 14 JavaServer Pages Table of Contents 1. Introduction What is JSP? Alternative Solutions Why Use JSP? 2. JSP Process Request Compilation Example 3. Object Instantiation and Scope Scope Synchronization

More information

Exploring EJB3 With JBoss Application Server Part 6.2

Exploring EJB3 With JBoss Application Server Part 6.2 By Swaminathan Bhaskar 01/24/2009 Exploring EJB3 With JBoss Application Server Part 6.2 In this part, we will continue to explore Entity Beans Using Java Persistence API (JPA). Thus far, we have seen examples

More information

Unit 5 JSP (Java Server Pages)

Unit 5 JSP (Java Server Pages) Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic, platform-independent method for building Web-based applications. It focuses more on presentation logic

More information

1 Introduction and Roadmap

1 Introduction and Roadmap Oracle Fusion Middleware Monitoring and Managing With the Java EE Management APIs for Oracle WebLogic Server 11g Release 1 (10.3.1) E13736-01 May 2009 This document describes the Java EE Management APIs

More information

Knox Manage manages the following application types: Internal applications: Applications for internal use

Knox Manage manages the following application types: Internal applications: Applications for internal use 15 Applications Knox Manage manages the following application types: Internal applications: Applications for internal use Public applications: Applications that are deployed through Google's Play Store

More information

Sun Sun Certified Web Component Developer for J2EE 5 Version 4.0

Sun Sun Certified Web Component Developer for J2EE 5 Version 4.0 Sun Sun Certified Web Component Developer for J2EE 5 Version 4.0 QUESTION NO: 1 To take advantage of the capabilities of modern browsers that use web standards, such as XHTML and CSS, your web application

More information

JavaServer Pages. What is JavaServer Pages?

JavaServer Pages. What is JavaServer Pages? JavaServer Pages SWE 642, Fall 2008 Nick Duan What is JavaServer Pages? JSP is a server-side scripting language in Java for constructing dynamic web pages based on Java Servlet, specifically it contains

More information

ANN exercise session

ANN exercise session ANN exercise session In this exercise session, you will read an external file with Iris flowers and create an internal database in Java as it was done in previous exercise session. A new file contains

More information

( A ) 8. If the address of an array is stored in $value, how do you get the values of this array? (B) \$value (C) &$value (D) $$value

( A ) 8. If the address of an array is stored in $value, how do you get the values of this array? (B) \$value (C) &$value (D) $$value CS 665 Information Delivery on the Internet Final Exam - Name: Fall 2002 Part 1: (75 points - 3 points for each problem) ( A ) 1. What protocol is used by all Web communications transactions? (A) HTTP

More information

Common-Controls Guided Tour TreeListControl

Common-Controls Guided Tour TreeListControl Common-Controls Guided Tour TreeListControl Version 1.0.3 - Last changed: 01. August 2004 Herausgeber: SCC Informationssysteme GmbH 64367 Mühltal Tel: +49 (0) 6151 / 13 6 31 0 Internet www.scc-gmbh.com

More information