Advanced Web Systems 3- Portlet and JSP-JSTL. A. Venturini
|
|
- Magnus Walton
- 6 years ago
- Views:
Transcription
1 Advanced Web Systems 3- Portlet and JSP-JSTL A. Venturini
2 Contents Portlet: doview flow Handling Render phase Portlet: processaction flow Handling the action phase Portlet URL Generation JSP and JSTL
3 Sample: WeatherPortlet Download from: It is a JSR 168 Portlet compliant Runs virtually on any portal server It fully exploits JSR 168 APIs We use it in this lecture as example, to explain the typical flows
4 Weather Portlet Class diagram
5 Weather Portlet We assume to have the weather portlet on one page The page can contain more portlets
6 Scenario: show the page The page should be rendered The page hosts several portlets The render method of each portlet is called: portletmode=view windowstate=normal ALL THE PORTLETS ARE ASKED TO PRODUCE THEIR HTML FRAGMENT NO PROCESS ACTION IS INVOKED, only the render()
7 Portal and Portlet Interaction User Portal Portlet container Portlets A B C B A C Action on B Do action on B processaction Render A render These requests may be done in parallel Render B Render C render render A B C Outside of the scope of the Portlet specification Scope of the Portlet specification
8 Weather Portlet Render Sequence Diagram
9 1. User accesses the page The get request is managed directly by the portal server not by your application The Portal Server, through the Portlet Container, invoke the render() method The render() method, superclass of WeatherPortlet class, invokes the doview method (portletmode=view and windowstate=normal)
10 2. Render Method The portlet has been previously initilized by the portlet container (at the startup) The parent class of the portlet (PortletMVC) dispatch the execution to the jsp configured in the portlet.xml file, parameter view-jsp
11 VIEW.JSP Render the HTML JSP 1.0: <% for (String zip : zips) { Weather weather = WeatherUtil.getWeather(zip); if (weather!= null) { %>..
12 How to generate URL for the portlet Show data is only one of the things a JSP has to do Within the HTML generated by the JSP you need to create links to the application You cannot use simply (for example): <a href=?p1=x&p2=y&p3=z /> You need to use the Portlet API Portlet has two type of URL actionurl: typically for form submission, or url that changes the application state renderurl: display one view (also with parameters) Choosing one or the other is not always obvious
13 .you can use the portlet taglib in the jsp taglib uri=" prefix="portlet"%> <portlet:renderurl var="showcitydetailurl"> <portlet:param name="cityname" value= bolzano, Italy"/> <portlet:param name=" desiredview" value= showcitydetail"/> </portlet:renderurl> <a href="${showcitydetailurl}"> show info of Bolzano</a>
14 What is a JSP taglib? Is a way to define custom tags Custom tags are mapped to java classes implementing a specific interface These classes can dynamically produce the html code which will replace the tag itself Or can set attributes in the request, to be read in the jsp
15 When user will click on the link The doview method is called: public void doview(renderrequest request,renderresponse response) throws PortletException,IOException { } String cityname = request.getparameter("cityname"); String desiredview = request.getparameter("desiredview "); } if(desiredview.equals( showcitydetail ) { // do the required business logic // dispatch to a specific jsp (for instance)
16 Second scenario We want to add a link allowing to change the city to be displayed
17 Or using the taglib taglib uri=" prefix="portlet"%> <portlet:actionurl var="setcitynameurl"> <portlet:param name="cityname" value= bolzano, Italy"/> <portlet:param name=" desiredview" value= setcityname"/> </portlet:actionurl> <a href="${setcitynameurl}"> switch to the weather in Bolzano</a>
18 ProcessAction flow
19 When user will click on the link The processaction method is called: public void processaction(actionrequest request, ActionResponse response) { } PortletPreferences pref = request.getpreferences(); String cityname = request.getparameter("cityname"); pref.setvalue("cityname", cityname); pref.store();
20 Remarks The ProcessAction reads parameters and sets the new parameters in the configuration The render method has dispatched to the JSP The JSP has just to format and build the html The JSP does not do any business logic, does not change the application state This is an example of Model View Controller pattern
21 Remarks The JSP is invoked by the portlet class (via include()) MODEL 2 approach
22 Models of JSP development Origin of the terms model 1 and model 2. JSP 0.92 spec: You can apply the JavaServer Pages technology in two ways... Model 1: A request sent to a JavaServer Pages file.... Model 2: A request sent to a Java Servlet.
23 Simple model 2 example public void doget(httpservletrequest request HttpServletResponse response) { // business logic that results in object data request.setattribute( d, data); sc.getrequestdispatcher( /view.jsp ); } view.jsp We have some data to display: <b>${d.property1}</b> In this case, the data passed is a simple bean-style object. It could also be an XML document; we d then use JSTL s XML-manipulation tags.
24 JSP and JST 2.0 Some tutorial: Author of next slides is: Shawn Bayern, Research Programmer, Yale University
25 J2EE presentation tier Servlets Java classes that handle requests by producing responses (e.g., HTTP requests and responses) (Portlets are invoked by Portal server servlets!) JavaServer Pages (JSP) HTML-like pages with some dynamic content. They turn into servlets automatically. JSP Standard Tag Library (JSTL) Set of standard components for JSP. It is used inside JSP pages.
26 Organization of the platform Your web pages JSTL Your application JavaServer Pages (JSP) Java Servlet API Java language
27 What kinds of things go in JSP pages? Scriptlets <% getfoo(request); printfoo(out); String a = italy ; %> <% if (a.equals( italy ) {%> <img src= italy.png/> <% } %> Java (and more?) embedded within template text Access to implicit objects: request, response, etc. Conditional blocks, loops manually constructed
28 What kinds of things go in JSP pages? Tag libraries <foo:bar/> <c:if test= ${c} > c is true </c:if> <c:foreach var= i items= ${items} > loop </c:foreach> XML tags Invoke Java logic behind the scenes. May access body, e.g., for iteration, conditional inclusion or just as arbitrary parameter May access PageContext Libraries and prefixes
29 Extension introduced with JSP 2.0 Expression language Tag files Simplified Tag API (SimpleTag versus Tag) Also, though it s not really part of JSP, JSTL improves things too. The end result: JSP pages become easier to write and maintain.
30 The JSP Expression Language (EL): Key syntax Expressions appear between ${ and }. Note that ${ and } may contain whole expressions, not just variable names, as in the Bourne shell (and its dozen derivatives.) E.g., ${myexpression + 2} Expressions default targets are scoped attributes (page, request, session, application) ${city} pagecontext.findattribute( city )
31 The JSP Expression Language (EL): Key syntax The. and [] operators refer to JavaBeanstyle properties and Map elements: ${city.cityname} can resolve to ((City) pagecontext.getattribute( city )).getcityname() Note the automatic type-cast. This is one of the great features of the EL: users do not need to concern themselves with types in most cases (even though the underlying types of data objects are preserved.)
32 The JSP Expression Language (EL): advanced data access Expressions may also refer to cookies, request parameters, and other data: ${cookie.crumb} ${param.password} ${header[ User-Agent ]} ${pagecontext.request.remoteuser}
33 The JSP Expression Language (EL): more syntax The EL supports Arithmetic ${age + 3} Comparisons ${age > 21} Equality checks ${age = 55} Logical operations Emptiness detection ${empty a} ${city= bolzano or city= trento } a is empty String ( ), empty List, null, etc. Useful for ${empty param.x}
34 The JSP Expression Language: Uses JSTL 1.0 introduced the EL, but it could be used only within tags. In JSP 2.0, it can be used almost anywhere <font color= ${color} > Hi, ${user}. You are <user:age style= ${style} /> years old. </font>
35 Tag Files: nature and purpose Solve difficulty of reusing text/html within a tag. And makes it much easier to write simple tags, since you can do so in JSP instead of Java. Stand-alone file with <%@ tag %> directive instead of traditional <%@ page %> directive.
36 JSP 2.0 tag files tag name= tabletag %> attribute name= items %> <table width= bgcolor= > <th> <td>name</td> <td>age</td> </th> <c:foreach var= i items= ${items} > <tr> <td>${i.fullname}</td> <td>${i.age}</td> </tr> </c:foreach> </table>
37 Using the new tag Your shopping cart: <my:tabletag items= ${cart} /> Your wish list: <my:tabletag items= ${wishlist} /> Things we want you to buy: <my:tabletag items= ${pressuredsales} />
38 Old tag handler Tag attributes dostarttag() doendtag() doinitbody() doafterbody() docatch() release() dofinally() Tag handler Tag body
39 SimpleTag handler Tag attributes dotag() Tag body (no scriptlets) Tag handler
40 USER GENERATED TAG FUNCTION (1) package mytaglib; public class MyFunctions { public static boolean contains(java.util.set<string> set, String target) } { return set.contains(target); }
41 USER GENERATED TAG FUNCTION (2) WEB-INF/MyTags.tld <?xml version="1.0" encoding="utf-8"?> <taglib version="2.0" xmlns=" xmlns:xsi=" xsi:schemalocation= " webjsptaglibrary_2_0.xsd"> <tlib-version>1.1</tlib-version> <uri>/web-inf/mytags</uri> <function> <name>contains</name> <function-class>mytaglib.myfunctions</function-class> <function-signature> boolean contains(java.util.set,java.lang.string) </function-signature> </function> </taglib>
42 USER GENERATED TAG FUNCTION (3) In the JSP you can use: prefix="mtg" uri="/web-inf/mytags"%> <c:if test="${mtg:contains(someset,somevalue)}" >... </c:if>
43 JSTL 1.0 features Control flow Iteration, conditions URL management Retrieve data, add session IDs Text formatting and internationalization Dates and numbers Localized messages XML manipulation XPath, XSLT Database access Queries, updates
44 JSTL 1.0 libraries Library features Core (control flow, URLs, variable access) Text formatting XML manipulation Database access Recommended prefix c fmt x sql
45 JSTL TAGS c: prefix="c" uri=" fn: prefix="fn" uri=" %> fmt: prefix="fmt" uri=" %> xml: prefix="x" uri=" %>
46 JSTL features: managing variables Outputting values with EL <c:out value= ${user.age} /> Storing data <c:set var= user scope= session > // arbitrary text </c:set> Note the use of var and scope : a JSTL convention
47 JSTL features: iteration Iteration <c:foreach items= ${list} begin= 5 end= 20 step= 4 var= item > <c:out value= ${item} /> </c:foreach> paging
48 Iteration (2) Iterating over a list: <!-- L represents either an array, list or set --> <c:foreach var="x" items="${l}" > ${x} </c:foreach> Iterating over a map: <!-- M is a map --> <c:foreach var="x" items="${m}" > ${x.key}: ${x.value} </c:foreach>
49 JSTL features: conditional logic Conditional evaluation <c:if test= ${a == b} > a equals b </c:if> Mutually exclusive conditionals <c:choose> <c:when test= ${a == b} > a equals b </c:when> <c:when test= ${a == c} > a equals c </c:when> <c:otherwise> I don t know what a equals. </c:otherwise> </c:choose>
50 JSTL features: URL management Retrieving data <c:import var= cnn url= /> Data exposed as String or Reader All core URLs supported (HTTP, FTP, HTTPS with JSSE) Local, cross-context imports supported Printing URLs <c:url value= /foo.jsp > Redirection <c:redirect url= /foo.jsp >
51 JSTL features: text formatting Locale-sensitive formatting and parsing Numbers Dates Internationalization Message bundles Message argument substitution Hi {0}. Your cart is {1}. <fmt:formatnumber type= currency value= ${salary} /> <fmt:message key= welcome />
52 JSTL features: XML manipulation Use of XPath to access, display pieces of XML documents <c:import url= var= cnn /> <x:parse xml= ${cnn} var= dom > <x:out value= $dom//item[1]/title /> Chaining XSLT transformations <x:transform xslt= ${xsl2} /> <x:transform xml= ${xml} xslt= ${xsl} /> </x:transform>
53 JSTL features: database manipulation (BUT DO NOT USE THEM!) Queries (and ResultSet caching) Updates / inserts Transactions (<sql:transaction>) <sql:query sql= SELECT * FROM USERS var= result /> substitution (<sql:param>) <c:foreach items= ${result.rows} > </c:foreach> Parametric (PreparedStatement) argument DataSource-based connection management
54 SQL tags: the debate Tag library Database Back-end Java code Tag library JSP page
55 SQL Tags: The expert group s conclusion SQL tags are needed because many nonstandard offerings exist it is not JSTL s role to dictate a choice of framework As popular as MVC is, it s not universal. Even in an MVC application, not all data is worth handling carefully. prototyping is important users ask for it! The JSTL specification recommends avoidance of SQL tags in large applications.
56 Examples: a select allowing to choose a date among a set of dates In the doview method: List<String> datescoll = new ArrayList(); datescoll.add("12/02/2009"); datescoll.add("13/02/2009"); renderrequest.setattribute("datescoll", datescoll); renderrequest.setattribute("selecteddate", "13/12/2009"); In the included jsp: <select name= dates"> <c:foreach items="${datescoll}" var= dateoption'> <option value="${dateoption}" ${dateoption ==selecteddate? 'selected' : ''}>${dateoption}</option> </c:foreach> </select>
57 Examples: a list of maps In the doview method: List<Map<String, Item>> weeklylist =getweeklydata(); renderrequest.setattribute("weeklylist", weeklylist); In the included jsp: <c:foreach items="${weeklylist}" var="mapitems" varstatus="liststatus"> <c:out value="day "/><c:out value="${liststatus.count}"/><br> <c:foreach items="${mapitems}" var="mapiter"> <div class="list_item"> <a href> ${mapiter.value.itemname} </a><br> </div> </c:foreach> </c:foreach>
58 Questions?
Introduction to JSP and Servlets Training 5-days
QWERTYUIOP{ Introduction to JSP and Servlets Training 5-days Introduction to JSP and Servlets training course develops skills in JavaServer Pages, or JSP, which is the standard means of authoring dynamic
More informationDatabase. Request Class. jdbc. Servlet. Result Bean. Response JSP. JSP and Servlets. A Comprehensive Study. Mahesh P. Matha
Database Request Class Servlet jdbc Result Bean Response py Ki ta b JSP Ko JSP and Servlets A Comprehensive Study Mahesh P. Matha JSP and Servlets A Comprehensive Study Mahesh P. Matha Assistant Professor
More informationFast Track to Java EE 5 with Servlets, JSP & JDBC
Duration: 5 days Description Java Enterprise Edition (Java EE 5) is a powerful platform for building web applications. The Java EE platform offers all the advantages of developing in Java plus a comprehensive
More informationFast Track to Java EE
Java Enterprise Edition is a powerful platform for building web applications. This platform offers all the advantages of developing in Java plus a comprehensive suite of server-side technologies. This
More informationAdvanced 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 informationsessionx 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 informationPortlets (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 informationSession 12. JSP Tag Library (JSTL) Reading & Reference
Session 12 JSP Tag Library (JSTL) 1 Reading & Reference Reading Head First Chap 9, pages 439-474 Reference (skip internationalization and sql sections) Java EE 5 Tutorial (Chapter 7) - link on CSE336 Web
More informationThis course is intended for Java programmers who wish to write programs using many of the advanced Java features.
COURSE DESCRIPTION: Advanced Java is a comprehensive study of many advanced Java topics. These include assertions, collection classes, searching and sorting, regular expressions, logging, bit manipulation,
More informationJavaServer 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 informationJSP MOCK TEST JSP MOCK TEST IV
http://www.tutorialspoint.com JSP MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to JSP Framework. You can download these sample mock tests at your local
More informationChapter 10 Servlets and Java Server Pages
Chapter 10 Servlets and Java Server Pages 10.1 Overview of Servlets A servlet is a Java class designed to be run in the context of a special servlet container An instance of the servlet class is instantiated
More informationSession 18. JSP Access to an XML Document XPath. Reading
Session 18 JSP Access to an XML Document XPath 1 Reading Reading JSTL (XML Tags Section) java.sun.com/developer/technicalarticles/javaserverpages/f aster/ today.java.net/pub/a/today/2003/11/27/jstl2.html
More informationWhat's New in the Servlet and JSP Specifications
What's New in the Servlet and JSP Specifications Bryan Basham Sun Microsystems, Inc bryan.basham@sun.com Page 1 Topics Covered History Servlet Spec Changes JSP Spec Changes: General JSP Spec Changes: Expression
More informationAdvanced Web Systems 4- PORTLET API specifications (JSR 286) A. Venturini
Advanced Web Systems 4- PORTLET API specifications (JSR 286) A. Venturini Contents Summary from jsr 168 Needs addressed by JSR 286 Analysis of the Portlet API specification JSR-168 Portlet API Portlet
More informationOracle 10g: Build J2EE Applications
Oracle University Contact Us: (09) 5494 1551 Oracle 10g: Build J2EE Applications Duration: 5 Days What you will learn Leading companies are tackling the complexity of their application and IT environments
More informationJSP 2.0 (in J2EE 1.4)
JSP 2.0 (in J2EE 1.4) 1 Disclaimer & Acknowledgments Even though Sang Shin is a full-time employees of Sun Microsystems, the contents here are created as his own personal endeavor and thus does not reflect
More informationJSTL. JSTL (Java Standard Tag Library) is a collection of custom tags that are developed and maintained by the Jakarta project.
JSTL JSTL (Java Standard Tag Library) is a collection of custom tags that are developed and maintained by the Jakarta project. To use them you need to download the appropriate jar and tld files for the
More information1Z Java EE 6 Web Component Developer Certified Expert Exam Summary Syllabus Questions
1Z0-899 Java EE 6 Web Component Developer Certified Expert Exam Summary Syllabus Questions Table of Contents Introduction to 1Z0-899 Exam on Java EE 6 Web Component Developer Certified Expert... 2 Oracle
More informationSpecialized - Mastering JEE 7 Web Application Development
Specialized - Mastering JEE 7 Web Application Development Code: Lengt h: URL: TT5100- JEE7 5 days View Online Mastering JEE 7 Web Application Development is a five-day hands-on JEE / Java EE training course
More informationADVANCED JAVA TRAINING IN BANGALORE
ADVANCED JAVA TRAINING IN BANGALORE TIB ACADEMY #5/3 BEML LAYOUT, VARATHUR MAIN ROAD KUNDALAHALLI GATE, BANGALORE 560066 PH: +91-9513332301/2302 www.traininginbangalore.com 2EE Training Syllabus Java EE
More informationopen source community experience distilled
Java EE 6 Development with NetBeans 7 Develop professional enterprise Java EE applications quickly and easily with this popular IDE David R. Heffelfinger [ open source community experience distilled PUBLISHING
More informationJavaServer Pages Standard Tag Library
JavaServer Pages Standard Tag Library Version 1.0 Public Draft Pierre Delisle, editor Please send comments to jsr-52-comments@jcp.org Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A.
More informationUNIT -5. Java Server Page
UNIT -5 Java Server Page INDEX Introduction Life cycle of JSP Relation of applet and servlet with JSP JSP Scripting Elements Difference between JSP and Servlet Simple JSP program List of Questions Few
More informationJavaServer Pages and the Expression Language
JavaServer Pages and the Expression Language Bryan Basham Sun Microsystems, Inc. bryan.basham@sun.com Page 1 Topics Covered History of the Expression Language (EL) Overview of the EL EL Namespace EL Operators
More informationTable of Contents. Introduction... xxi
Introduction... xxi Chapter 1: Getting Started with Web Applications in Java... 1 Introduction to Web Applications... 2 Benefits of Web Applications... 5 Technologies used in Web Applications... 5 Describing
More informationSang 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 informationJSTL ( )
JSTL JSTL JSTL (Java Standard Tag Library) is a collection of custom tags that are developed by the Jakarta project. Now it is part of the Java EE specication. To use them you need to download the appropriate
More informationJSR-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 informationCopyright 2011 Sakun Sharma
Maintaining Sessions in JSP We need sessions for security purpose and multiuser support. Here we are going to use sessions for security in the following manner: 1. Restrict user to open admin panel. 2.
More informationWriting Servlets and JSPs p. 1 Writing a Servlet p. 1 Writing a JSP p. 7 Compiling a Servlet p. 10 Packaging Servlets and JSPs p.
Preface p. xiii Writing Servlets and JSPs p. 1 Writing a Servlet p. 1 Writing a JSP p. 7 Compiling a Servlet p. 10 Packaging Servlets and JSPs p. 11 Creating the Deployment Descriptor p. 14 Deploying Servlets
More informationSun 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 informationANTAL Margit. Sapientia - EMTE, Pannon Forrás,,Egységes erdélyi felnőttképzés a
Sapientia - EMTE, Pannon Forrás,,Egységes erdélyi felnőttképzés a Kárpát-medencei hálózatban 2010 JSP és JSTL A anatómiája JSTL Listázás szkriptlettel
More informationJSP CSCI 201 Principles of Software Development
JSP CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu Outline JSP Program USC CSCI 201L JSP 3-Tier Architecture Client Server Web/Application Server Database USC
More informationJava.. servlets and. murach's TRAINING & REFERENCE 2ND EDITION. Joel Murach Andrea Steelman. IlB MIKE MURACH & ASSOCIATES, INC.
TRAINING & REFERENCE murach's Java.. servlets and 2ND EDITION Joel Murach Andrea Steelman IlB MIKE MURACH & ASSOCIATES, INC. P 1-800-221-5528 (559) 440-9071 Fax: (559) 440-0963 murachbooks@murach.com www.murach.com
More informationModule 3 Web Component
Module 3 Component Model Objectives Describe the role of web components in a Java EE application Define the HTTP request-response model Compare Java servlets and JSP components Describe the basic session
More information112. Introduction to JSP
112. Introduction to JSP Version 2.0.2 This two-day module introduces JavaServer Pages, or JSP, which is the standard means of authoring dynamic content for Web applications under the Java Enterprise platform.
More informationUnit 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 informationXML and XSLT. XML and XSLT 10 February
XML and XSLT XML (Extensible Markup Language) has the following features. Not used to generate layout but to describe data. Uses tags to describe different items just as HTML, No predefined tags, just
More informationCh04 JavaServer Pages (JSP)
Ch04 JavaServer Pages (JSP) Introduce concepts of JSP Web components Compare JSP with Servlets Discuss JSP syntax, EL (expression language) Discuss the integrations with JSP Discuss the Standard Tag Library,
More information1 CUSTOM TAG FUNDAMENTALS PREFACE... xiii. ACKNOWLEDGMENTS... xix. Using Custom Tags The JSP File 5. Defining Custom Tags The TLD 6
PREFACE........................... xiii ACKNOWLEDGMENTS................... xix 1 CUSTOM TAG FUNDAMENTALS.............. 2 Using Custom Tags The JSP File 5 Defining Custom Tags The TLD 6 Implementing Custom
More informationIntroduction 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 informationJava J Course Outline
JAVA EE - J2SE - CORE JAVA After all having a lot number of programming languages. Why JAVA; yet another language!!! AND NOW WHY ONLY JAVA??? CHAPTER 1: INTRODUCTION What is Java? History Versioning The
More information112-WL. Introduction to JSP with WebLogic
Version 10.3.0 This two-day module introduces JavaServer Pages, or JSP, which is the standard means of authoring dynamic content for Web applications under the Java Enterprise platform. The module begins
More informationImplementing a Numerical Data Access Service
Implementing a Numerical Data Access Service Andrew Cooke October 2008 Abstract This paper describes the implementation of a J2EE Web Server that presents numerical data, stored in a database, in various
More informationSAS Web Infrastructure Kit 1.0. Developer s Guide
SAS Web Infrastructure Kit 1.0 Developer s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS Web Infrastructure Kit 1.0: Developer s Guide. Cary, NC:
More informationCS506 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 informationDeveloping Spring based WebSphere Portal application using IBM Rational Application Developer
Developing Spring based WebSphere Portal application using IBM Rational Application Developer Table of Content Abstract...3 Overview...3 Sample Use case...3 Prerequisite :...3 Developing the spring portlet...4
More informationJAVA COURSES. Empowering Innovation. DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP
2013 Empowering Innovation DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP contact@dninfotech.com www.dninfotech.com 1 JAVA 500: Core JAVA Java Programming Overview Applications Compiler Class Libraries
More informationCall: JSP Spring Hibernate Webservice Course Content:35-40hours Course Outline
JSP Spring Hibernate Webservice Course Content:35-40hours Course Outline Advanced Java Database Programming JDBC overview SQL- Structured Query Language JDBC Programming Concepts Query Execution Scrollable
More informationCall: Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline
Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline Object-Oriented Programming (OOP) concepts Introduction Abstraction Encapsulation Inheritance Polymorphism Getting started with
More informationPORTIONS (PORTlet actions) User Guide
PORTIONS (PORTlet actions) User Guide Controller Specification of the application's controller portlet.xml
More informationImplementing 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 informationBuilding Web Applications With The Struts Framework
Building Web Applications With The Struts Framework ApacheCon 2003 Session TU23 11/18 17:00-18:00 Craig R. McClanahan Senior Staff Engineer Sun Microsystems, Inc. Slides: http://www.apache.org/~craigmcc/
More informationJSR-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 informationDeveloping 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 informationWhat's New in the Servlet and JavaServer Pages Technologies?
What's New in the Servlet and JavaServer Pages Technologies? Noel J. Bergman DevTech Noel J. Bergman What s New in the Servlet and JavaServer Pages Technologies? Page 1 Session Overview What are all the
More informationAIM. 10 September
AIM These two courses are aimed at introducing you to the World of Web Programming. These courses does NOT make you Master all the skills of a Web Programmer. You must learn and work MORE in this area
More informationAnno Accademico Laboratorio di Tecnologie Web. Sviluppo di applicazioni web JSP
Universita degli Studi di Bologna Facolta di Ingegneria Anno Accademico 2007-2008 Laboratorio di Tecnologie Web Sviluppo di applicazioni web JSP http://www lia.deis.unibo.it/courses/tecnologieweb0708/
More informationThe Standard Tag Library. Chapter 3 explained how to get values from beans to pages with the jsp:
CHAPTER 4 The Standard Tag Library Chapter 3 explained how to get values from beans to pages with the jsp: getproperty tag, along with a number of limitations in this process. There was no good way to
More informationPSD1B Advance Java Programming Unit : I-V. PSD1B- Advance Java Programming
PSD1B Advance Java Programming Unit : I-V PSD1B- Advance Java Programming 1 UNIT I - SYLLABUS Servlets Client Vs Server Types of Servlets Life Cycle of Servlets Architecture Session Tracking Cookies JDBC
More informationOracle Developer Day
Oracle Developer Day Sponsored by: J2EE Track: Session #3 Developing JavaServer Faces Applications Name Title Agenda Introduction to JavaServer Faces What is JavaServer Faces Goals Architecture Request
More informationJava EE 6: Develop Web Applications with JSF
Oracle University Contact Us: +966 1 1 2739 894 Java EE 6: Develop Web Applications with JSF Duration: 4 Days What you will learn JavaServer Faces technology, the server-side component framework designed
More informationJava SE7 Fundamentals
Java SE7 Fundamentals Introducing the Java Technology Relating Java with other languages Showing how to download, install, and configure the Java environment on a Windows system. Describing the various
More informationBest practices: Developing portlets using JSR 168 and WebSphere Portal V5.02
Best practices: Developing portlets using JSR 168 and WebSphere Portal V5.02 Stefan Hepper Architect, IBM Websphere Portal Development Marshall Lamb Chief Programmer for WebSphere Portal V5 March 3, 2004
More informationWeb Development with Java EE Introduction to Custom Tags, JSTL and Deployment
Applied Autonomous Sensor Systems Web Development with Java EE Introduction to Custom Tags, JSTL and Deployment AASS Mobile Robotics Lab, Teknik Room T2222 fpa@aass.oru.se Contents Web Client Programming
More informationPortlets 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 informationS imilar to JavaBeans, custom tags provide a way for
CREATE THE TAG HANDLER S imilar to JavaBeans, custom tags provide a way for you to easily work with complex Java code in your JSP pages. You can create your own custom tags to suit your needs. Using custom
More informationThe Evaluation of Three Approaches to Implementing an OGC Web Map Service Client Application
The Evaluation of Three Approaches to Implementing an OGC Web Map Service Client Application A thesis submitted in partial fulfilment of the requirements for the Degree of Master of Science at the University
More informationGUJARAT TECHNOLOGICAL UNIVERSITY
1. Learning Objectives: To learn and work with the web components of Java EE. i.e. the Servlet specification. Student will be able to learn MVC architecture and develop dynamic web application using Java
More informationPage 1
Java 1. Core java a. Core Java Programming Introduction of Java Introduction to Java; features of Java Comparison with C and C++ Download and install JDK/JRE (Environment variables set up) The JDK Directory
More informationJAVA 2 ENTERPRISE EDITION (J2EE)
COURSE TITLE DETAILED SYLLABUS SR.NO JAVA 2 ENTERPRISE EDITION (J2EE) ADVANCE JAVA NAME OF CHAPTERS & DETAILS HOURS ALLOTTED SECTION (A) BASIC OF J2EE 1 FILE HANDLING Stream Reading and Creating file FileOutputStream,
More informationMore reading: A series about real world projects that use JavaServer Faces:
More reading: A series about real world projects that use JavaServer Faces: http://www.jsfcentral.com/trenches 137 This is just a revision slide. 138 Another revision slide. 139 What are some common tasks/problems
More informationType of Classes Nested Classes Inner Classes Local and Anonymous Inner Classes
Java CORE JAVA Core Java Programing (Course Duration: 40 Hours) Introduction to Java What is Java? Why should we use Java? Java Platform Architecture Java Virtual Machine Java Runtime Environment A Simple
More informationWeb Presentation Patterns (controller) SWEN-343 From Fowler, Patterns of Enterprise Application Architecture
Web Presentation Patterns (controller) SWEN-343 From Fowler, Patterns of Enterprise Application Architecture Objectives Look at common patterns for designing Web-based presentation layer behavior Model-View-Control
More informationDeveloping Applications with Java EE 6 on WebLogic Server 12c
Developing Applications with Java EE 6 on WebLogic Server 12c Duration: 5 Days What you will learn The Developing Applications with Java EE 6 on WebLogic Server 12c course teaches you the skills you need
More informationAdvanced Java Programming
Advanced Java Programming Length: 4 days Description: This course presents several advanced topics of the Java programming language, including Servlets, Object Serialization and Enterprise JavaBeans. In
More informationTable of Contents Fast Track to Java EE 5 with Servlets/JSP and JDBC
Table of Contents Fast Track to Java EE 5 with Servlets/JSP and JDBC Fast Track to Java EE 5 with Servlets/JSP and JDBC 1 Workshop Overview 2 Workshop Objectives 3 Workshop Agenda 4 Typographic Conventions
More informationDeveloping 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 informationOracle - Developing Applications for the Java EE 7 Platform Ed 1 (Training On Demand)
Oracle - Developing Applications for the Java EE 7 Platform Ed 1 (Training On Demand) Code: URL: D101074GC10 View Online The Developing Applications for the Java EE 7 Platform training teaches you how
More informationJAVA MICROSERVICES. Java Language Environment. Java Set Up. Java Fundamentals. Packages. Operations
Java Language Environment JAVA MICROSERVICES Object Oriented Platform Independent Automatic Memory Management Compiled / Interpreted approach Robust Secure Dynamic Linking MultiThreaded Built-in Networking
More informationStruts Lab 3: Creating the View
Struts Lab 3: Creating the View In this lab, you will create a Web application that lets a company's fleet manager track fuel purchases for the company's vehicles. You will concentrate on creating the
More informationive JAVA EE C u r r i c u l u m
C u r r i c u l u m ive chnoworld Development Training Consultancy Collection Framework - The Collection Interface(List,Set,Sorted Set). - The Collection Classes. (ArrayList,Linked List,HashSet,TreeSet)
More informationJava- EE Web Application Development with Enterprise JavaBeans and Web Services
Java- EE Web Application Development with Enterprise JavaBeans and Web Services Duration:60 HOURS Price: INR 8000 SAVE NOW! INR 7000 until December 1, 2011 Students Will Learn How to write Session, Message-Driven
More information/ / JAVA TRAINING
www.tekclasses.com +91-8970005497/+91-7411642061 info@tekclasses.com / contact@tekclasses.com JAVA TRAINING If you are looking for JAVA Training, then Tek Classes is the right place to get the knowledge.
More informationCourses For Event Java Advanced Summer Training 2018
Courses For Event Java Advanced Summer Training 2018 Java Fundamentals Oracle Java SE 8 Advanced Java Training Java Advanced Expert Edition Topics For Java Fundamentals Variables Data Types Operators Part
More informationCS 112 Introduction to Programming
CS 112 Introduction to Programming Web Programming: Backend (server side) Programming with Servlet, JSP Yang (Richard) Yang Computer Science Department Yale University 308A Watson, Phone: 432-6400 Email:
More informationVendor: SUN. Exam Code: Exam Name: Sun Certified Web Component Developer for J2EE 5. Version: Demo
Vendor: SUN Exam Code: 310-083 Exam Name: Sun Certified Web Component Developer for J2EE 5 Version: Demo QUESTION NO: 1 You need to store a Java long primitive attribute, called customeroid, into the session
More informationAdvance Java. Configuring and Getting Servlet Init Parameters per servlet
Advance Java Understanding Servlets What are Servlet Components? Web Application Architecture Two tier, three tier and N-tier Arch. Client and Server side Components and their relation Introduction to
More informationIBM 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 informationLiferay Themes: Customizing Liferay s Look & Feel
Liferay Themes: Customizing Liferay s Look & Feel Liferay is a JSR-168 compliant enterprise portal. Starting with version 3.5.0, Liferay provides a mechanism for developers to easily customize the user
More informationSession 22. Intra Server Control. Lecture Objectives
Session 22 Intra Server Control 1 Lecture Objectives Understand the differences between a server side forward and a redirect Understand the differences between an include and a forward and when each should
More informationIntroduction to J2EE...xxvii. Chapter 1: Introducing J2EE... 1 Need for Enterprise Programming... 3 The J2EE Advantage... 5
Introduction to J2EE...xxvii Chapter 1: Introducing J2EE... 1 Need for Enterprise Programming... 3 The J2EE Advantage... 5 Platform Independence...5 Managed Objects...5 Reusability...5 Modularity...6 Enterprise
More informationThe process of preparing an application to support more than one language and data format is called internationalization. Localization is the process
1 The process of preparing an application to support more than one language and data format is called internationalization. Localization is the process of adapting an internationalized application to support
More informationPortlet 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> Dmitry Sklyut > Matt Swartley. Copyright 2005 Chariot Solutions
Introduction to Spring MVC > Dmitry Sklyut > Matt Swartley Copyright 2005 Chariot Solutions About Chariot Solutions Small, high-powered consulting firm Focused on Java and open source Services include:
More informationJava 2 Platform, Enterprise Edition: Platform and Component Specifications
Table of Contents Java 2 Platform, Enterprise Edition: Platform and Component Specifications By Bill Shannon, Mark Hapner, Vlada Matena, James Davidson, Eduardo Pelegri-Llopart, Larry Cable, Enterprise
More informationICOM 5016 Database Systems. Database Users. User Interfaces and Tools. Chapter 8: Application Design and Development.
Chapter 8: Application Design and Development ICOM 5016 Database Systems Web Application Amir H. Chinaei Department of Electrical and Computer Engineering University of Puerto Rico, Mayagüez User Interfaces
More informationSAS Web Infrastructure Kit 1.0. Developer s Guide, Fifth Edition
SAS Web Infrastructure Kit 1.0 Developer s Guide, Fifth Edition The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2007. SAS Web Infrastructure Kit 1.0: Developer s Guide,
More informationPASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year
PASS4TEST IT Certification Guaranteed, The Easy Way! \ http://www.pass4test.com We offer free update service for one year Exam : 310-081 Title : Sun Certified Web Component Developer for J2EE 1.4 Vendors
More information