JSP (Java Server Pages) Lecture # 9
Java Server Faces the best Alternative of C# and Easy to make your own Application (Desktop applications) or web applications
This session will provide a complete tour of using the Spring MVC framework to build Java Portlets. It will include an in-depth review of a sample portlet application developed using the latest features of Spring MVC, including Annotation-based Controllers. If you are writing Portlets and using Spring, this session is for you.
We'll begin by discussing the unique differences and challenges when developing Portlets instead of traditional Servlet webapps. Then we'll talk about the unique approach that Spring MVC takes towards Portlets that fully leverages the Portlet lifecycle, instead of masking it like many other frameworks. We'll take an extensive tour of a sample application so we can see all the unique pieces of the framework in action. Finally we'll conclude with discussion of the upcoming support for the Portlet 2.0 (JSR 286) specification that will be part of Spring 3.0.
JSF 2.3: Integration with Front-End FrameworksIan Hlavats
This presentation will be shared at JavaOne 2014 during the JSF BOF session. It outlines the new generation of front-end frameworks and technologies and how JSF 2.3 can better support them.
Introduction To Building Enterprise Web Application With Spring MvcAbdelmonaim Remani
This the perfect introduction for people who have absolutely no experience with the Spring framework. The session adopts a learn-by-example approach and takes the form of a practical hands-on-lab with a lot of live coding. Attendees will be presented with a sample web application and various use-case scenarios, they will build an actual Spring MVC web application backed by a MySQL database end-to-end, They will Test it, and deploy it on an Apache TomCat web server. The basics of the Spring framework, design patterns, and best practices will be picked up by example along the way. Covered topics include: Inversion of Control (Dependency Injection), Spring MVC, Spring DAO, Spring ORM (iBatis), Aspect Oriented Programming in Spring, Basic Web Security, and the Mail API. Bring your laptop! Prerequisites: Familiarity with the architecture of Java web application and its technologies (Servlets, JSP, Java EL, JSTL, etc... )
Vibrant Technologies is headquarted in Mumbai,India.We are the best Advanced java training provider in Navi Mumbai who provides Live Projects to students.We provide Corporate Training also.We are Best Advanced Java classes in Mumbai according to our students and corporators
JSP (Java Server Pages) Lecture # 9
Java Server Faces the best Alternative of C# and Easy to make your own Application (Desktop applications) or web applications
This session will provide a complete tour of using the Spring MVC framework to build Java Portlets. It will include an in-depth review of a sample portlet application developed using the latest features of Spring MVC, including Annotation-based Controllers. If you are writing Portlets and using Spring, this session is for you.
We'll begin by discussing the unique differences and challenges when developing Portlets instead of traditional Servlet webapps. Then we'll talk about the unique approach that Spring MVC takes towards Portlets that fully leverages the Portlet lifecycle, instead of masking it like many other frameworks. We'll take an extensive tour of a sample application so we can see all the unique pieces of the framework in action. Finally we'll conclude with discussion of the upcoming support for the Portlet 2.0 (JSR 286) specification that will be part of Spring 3.0.
JSF 2.3: Integration with Front-End FrameworksIan Hlavats
This presentation will be shared at JavaOne 2014 during the JSF BOF session. It outlines the new generation of front-end frameworks and technologies and how JSF 2.3 can better support them.
Introduction To Building Enterprise Web Application With Spring MvcAbdelmonaim Remani
This the perfect introduction for people who have absolutely no experience with the Spring framework. The session adopts a learn-by-example approach and takes the form of a practical hands-on-lab with a lot of live coding. Attendees will be presented with a sample web application and various use-case scenarios, they will build an actual Spring MVC web application backed by a MySQL database end-to-end, They will Test it, and deploy it on an Apache TomCat web server. The basics of the Spring framework, design patterns, and best practices will be picked up by example along the way. Covered topics include: Inversion of Control (Dependency Injection), Spring MVC, Spring DAO, Spring ORM (iBatis), Aspect Oriented Programming in Spring, Basic Web Security, and the Mail API. Bring your laptop! Prerequisites: Familiarity with the architecture of Java web application and its technologies (Servlets, JSP, Java EL, JSTL, etc... )
Vibrant Technologies is headquarted in Mumbai,India.We are the best Advanced java training provider in Navi Mumbai who provides Live Projects to students.We provide Corporate Training also.We are Best Advanced Java classes in Mumbai according to our students and corporators
Web Component Development with Servlet and JSP Technologies Unit 01Prashanth Shivakumar
Download Complete Material - https://www.instamojo.com/prashanth_ns/
This Web Component Development with Servlet and JSP Technologies contains 16 Units and each unit contains 60 slides in it.
Contents…
• Introduction to Web Application Technologies
• Developing a View Component
• Developing a Controller Component
• Developing Dynamic Forms
• Sharing Application Resources Using the Servlet Context
• Designing the Business Tier
• Developing Web Applications Using Struts
• Developing Web Applications Using Session Management
• Using Filters in Web Applications
• Integrating Web Applications With Databases
• Developing JSP™ Pages
• Developing JSP Pages Using Custom Tags
• Developing Web Applications Using Struts Action Forms
• Building Reusable Web Presentation Components
Spring framework is a good architecture of AOP (Aspect-oriented Programming), application framework and Inversion of control container (dependency injection). Spring offers for all Java application development to list, JSP, AJAX, JPA, Struts and other frameworks.
Introduction to J2EE framework . Gives the primary knowledge about the framework involves in J2EE based web development . This is like Struts , Hibernate , spring ,JSF etc.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
1. JavaServer Faces
pFEW Team
Web Technologies – Prof. Dr. Ulrik Schroeder – WS 2011/121
The slides are licensed under a
Creative Commons Attribution 3.0 License
3. Introduction
What is JSF?
Component-oriented user interface (UI) framework
Client-server technology
Part of the standard Java EE platform
Developed through:
Web Technologies3
4. Introduction
JSF versions
JSF 1.0 (2004-03-11): initial release
JSF 1.1 (2004-05-27): bug fix release
JSF 1.2 (2006-05-11): improvements to core systems and
APIs. Coincides with Java EE 5.
JSF 2.0 (2009-06-28): major release for ease of use,
enhanced functionality, and performance. Coincides
with Java EE 6. Faceletes as the official view technology
JSF 2.1 (2010-10-22): current version
Web Technologies4
5. Introduction
Why JSF?
Based on MVC pattern
Clean separation of developer roles
Built-in UI component model (unlike JSP and Servlet)
Events-based interaction model (as opposed to the old
“request/response” model)
Safe state of ist components
Device independence
Large industry support
Web Technologies5
7. JSF Architecture
JavaBeans
Declaration in faces-config.xml or via annotations
Coupled to user interface with Expression Language
Property updates/invoking of new methods are handled
automatically
FacesServlet
Provided by implementation
Handles all Faces requests
Uses rules for routing the requests (faces-config.xml)
Web Technologies7
8. JSF Architecture
Web Technologies8
JSF Pages
Faceletes
Easy component/tag
creation using XML markup
Page templating
Reduces time and effort for
development and
deployment
.xhtml
JSP
Easy component/tag
creation using XML
markup
JSP page is processed in
one pass from top to
bottom
.jsp
9. JSF components
Main components of JSF
UI components
Render
Validator
Backing beans
Converter
Events and event listeners
Messages
Navigation
Web Technologies9
11. Request Processing Life Cycle Scenarios
Faces response
A servlet response that was created by the execution of the Render Response
Phase of the request processing life cycle.
Non-Faces response
A servlet response that was not created by the execution of the render
response phase.
Faces request
A servlet request that was sent from a previously generated Faces response.
Non-Faces request
A servlet request that was sent to an application component, such as a servlet
or JSP page, rather than directed to a JavaServer Faces component tree.
Web Technologies11
12. Request Processing Life Cycle Scenarios
Three possible life cycle scenarios for a JavaServer Faces
application:
Web Technologies12
14. Code basics
Development steps
1. Develop model objects which hold the data
2. Add model objects declarations to
Application Configuration File faces-config.xml
3. Create Pages using UI component and core tags
4. Define Page Navigation in faces-config.xml
5. Configure web.xml
Web Technologies14
20. JSF Messages
JSF page
<h:panelGrid columns="3">
Enter your username :
<h:inputText id="username„
value="#{user.username}"
size="20" required="true"
label="UserName" >
<f:validateLength minimum="5" maximum="10" />
</h:inputText>
<h:message for="username" style="color:red" />
Enter your age :
<h:inputText id="age" value="#{user.age}" size="20" required="true" label="Age" >
<f:validateLongRange for="age" minimum="1" maximum="200" />
</h:inputText>
<h:message for="age" style="color:red" />
</h:panelGrid>
Web Technologies20
21. JSF Navigation
JSF Navigation Model
Rules are managed in faces-config.xml
Possible to put the navigation information
directly in the page
Web Technologies21
Example
22. Web Technologies22
$sql="SELECT id FROM admin
WHERE
username='$myusername' and
passcode='$mypassword'";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
$active=$row['active'];
$count=mysql_num_rows($result);
Security
Access to source code
<script type="text/javascript"
src="
/brain/javax.faces.resource/jquery/ui/j
"></script>
28. Comparison of JSF and JavaScript
JavaScript: client side technology
JSF: client-server side technology
Using JSF takes more time, because it needs to have stable
connection with server.
Web Technologies28
29. Pros and cons of JSF
Many implementation providers
(Oracle, IBM, JBoss)
Lack of client-side validation
JSF allows you to create reusable
components, thereby increasing
productivity
Undeveloped tool support
(NetBeans and Eclipse 3.6.)
Many ready to use components from
major developers: Apache, Richfaces,
Infragistics, Oracle, etc.
JSF only comes with validators for missing
values, length of input, and numbers in a
given range
Excellent implementation of the validators
and converters concepts. Unlike Struts, JSF
stores the validation logic in close
proximity of the component description
Different JavaScript implementation of
Ajax in every browser with different bugs
and different proprietary extensions
A well-designed action listeners concept Overloaded client-server communication
Injected into the components of JavaScript
code and excellent support for Ajax
Hard to develop efficient application, has
to change standard components
Web Technologies29
30. Demo
Cinema project with JSF and GAE technologies
Contain of server part – dealing with database
Facade class is used to access server
JSF beans provide client functionality on java
Full version: http://memo-ry.appspot.com
Web Technologies30
31. ORM
Web Technologies31
Object-relational mapping: a programming technique for
converting data between incompatible type systems in OOP
languages.
Java Data Objects (JDO): specification of Java object
persistence. One of its features is a transparency of the
persistent services to the domain model. JDO persistent
objects are ordinary Java programming language classes
(POJOs).
Java Persistence API (JPA): Java programming language
framework managing relational data in applications using Java
SE and Java EE.
Taken from Wiki
32. UI
App engine is not working with java 1.7
Be aware when you are deploying it
Database uses data nucleolus enhancer, which is not present
in 1.7
Web Technologies32
36. JSF bean
Web Technologies36
@ManagedBean // defines a bean for JSF
@ApplicationScoped // scope of the bean
public class ReserveManagerBean implements Serializable
{…}
public ReserveManagerBean();
// constructor for the bean, don’t mix up with page crating or accessing
public void updateMovies(ValueChangeEvent event);
//listener for the selectOneMenu, when cinema is selected
public void setupMovie(ValueChangeEvent event);
// listener for the selectOneMenu, when movie is selected
public void save(ActionEvent event);
//listener to the dialog button, to save new reservation
private void refreshNames();
//internal function, reshreshing data from the DB, as it can be changes
by //another user in any time, also on the web page
Methods
37. Bean attributes
private Facade façade; // access to the server part
private Key id; // reservation key, will be show in the dialog window
private String time; // reservation time
private int numberOfTickets; //reservation time
private String clientName; // client name for reservation
private String clientEmail; // client email for reservation
private String cinemaName; // cinema name for reservation
private String movieName; // movie name for reservation
private Cinema cinema; // respective cinema object, to the selected cinema name by user
private Movie movie; // respective movie object, to the selected movie name by user
private String[] cinemaNames; // array of accessible cinema names, shown in the select box
private List<Cinema> cinemas; // list of all cinemas objects
private String[] movieNames; // array of accessible movie names, shown in the select box
private List<Movie> movies; // list of all movie objects in selected cinema
private Reservation newReservation // saves created reservation
Web Technologies37
Framework for building user interfaces for web applications.
It simplifies the development of user interface (often it is one of the most diff. parts of web appli development)
Was developed through Java Community Process (JCP) by a group of technology leaders (Sun Microsystems, Oracle, Borland, IBM, etc.) and well-known Java and Web experts.
. Faceletes as the official view technology
Events-based interaction model (as opposed to the old “request/response” model)
Reader kits that provide device independence
Extendable component and rendering architecture
can use different View technologies (ie. Facelets, JSP, Velocity, etc.)
A JSF application can save the state of its components in the client response or on the server
The state of UI components (and some other objects) is saved at the end of each request (called stateSaving(note: transient true)), and restored upon next creation of that view. Several types of state-saving are available, including Client-side and Server-side state saving.
easy and user-friendly process for creating web applications
JSF was created to adhere precisely to MVC design methodology.
MVC: Facelet is the XHTML view, and the model is a bean.
You typically never deal with servlets directly in a JSF app. Instead you have configuration in faces-config.xml as well as annotations on various classes, which control what the FacesServlet does
Facelets: View handler technology
Property updates/invoking of new methods are handled automatically by JSF request processing lifecycle
Dispatch them to appropriate
View component
Provided by implementation – you should not implement it by itself
Different requests and responses result in three possible life cycle scenarios that can exist for a JavaServer Faces application:
Request Processing Lifecycle
Phases
1.Reconstitute component tree phase
2.Apply request values phase
3.Process validations phase
4.Update model values phase
5.Invoke application phase
6.Render response phase
The six lifecycle phases, according to JavaServer Faces 2.0, are defined as follows:
Create or Restore View: Restores or creates a server-side component tree (View) in memory to represent the UI information from a client.
Apply Request Values: Updates the server-side components with fresh data from the client.
Process Validations: Performs validation and data type conversion on the new data.
Update Model Values: Updates any server-side Model objects with new data.
Invoke Application: Invokes any application logic needed to fulfill the request and navigate to a new page if needed.
Render Response: Saves state and renders a response to the requesting client.[2]
A &quot;Managed Bean&quot; is a bean constructed/initialized via injection in the faces-config.xml file. A &quot;Backing Bean&quot; is a bean referenced by JSF pages and is defined in the faces-config.xml file
If you want, from JSF 2.0 you can put the navigation information directly in the page. In this case no extrenal navigation rules are needed.
This code specifies that view /pages/inputname.jsp has two outputs, sayHello and sayGoodbye, associated with particular pages.
And now finally we are going to show you smth working and what can help you to start with your own applications.
As all of you are familiar with JSP and Java we are gonna skip some part of coding to be in time.
Project is about running JSF on Google App Engine, it is not so easy and somehow tricky.
What actually façade gives for us?
How much people do you have in your team, 3,4, 5?
How do work separately and paralelise work, make it more independent and allow developer concentrate on work, instead of numerous discussion about how to stick to other interfaces.
In our project for instance I and Iurii are developing server part, which is hidden under façade. Firstly we introduce façade with it’s all needed functions for web pages and return dummy objects to have possibility to work on the interface. And then all our team is working further, guys finishing server part and exchanging dummy functions on real onces, and girls are implementing each one JSF page with beans.