JSP e Beans Alcides Calsavara. Exemplo de beans ExemploBeans.html FORM HTML ExemploBeans.jsp HTML + Java ACTION SpellCheck.class (bean)

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialitica in Informatica – Università di Trento.
JAVA Revision Lecture Electronic Voting System Marina De Vos.
JSP and Servelets.
JSP and web applications
Struts Portlet Adding an Action Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without.
Struts 2 Actions By, Srinivas Reddy.S
1 StringBuffer & StringTokenizer Classes Chapter 5 - Other String Classes.
STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
JSF Portlet Backing Beans and UI Components Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in.
The Point Class public class Point { public double x; public double y; public Point(double x0, double y0) { x = x0; y = y0; } public double distance(Point.
Interfaces CSC 171 FALL 2004 LECTURE 14. Project 1 review public class Rational { private int numerator, denominator; public Rational(int numerator, int.
© Yaron Kanza Advanced Java Server Pages Written by Dr. Yaron Kanza, Edited by permission from author by Liron Blecher.
Chapter 25 JavaServer Pages and Servlets. CHAPTER GOALS To implement dynamic web pages with JavaServer Pages technology To learn the syntactical elements.
JavaServerPages Some examples. About JSP Java server pages are a combination of html (or xml), java code appearing within tagged regions, and structures.
1/03/09 De 89 à 98. 1/03/09 De 89 à 98 1/03/09 De 89 à 98.
James Tam Java Packages Packages, a method of subdividing a Java program and grouping classes.
CSE 190: Internet E-Commerce Lecture 7. HTML Templates Designed to separate server side logic from HTML presentation Key features –Escapes from HTML into.
Unit 261 Introduction to Searching and Sorting Comparable Interface Comparator Interface Algorithm Complexity Classes Exercises.
1 String Buffer & String Tokenizer Overview l Overview of String Buffer class and Methods l Overview of String Tokenizer class and methods l Preview: Notions.
More sophisticated behavior Using library classes to implement some more advanced functionality 4.0.
1 Classe Graphics Alcides Calsavara. 2 Uso com Applets u parâmetro do método paint –public void paint ( Graphics g ) u utilizado como base para o desenho.
StringBuffer class  Alternative to String class  Can be used wherever a string is used  More flexible than String  Has three constructors and more.
04/18/20011 JavaServer Page Presented by: Hongmei Yu 04/18/2001.
Introduction to Server-Side Web Development Introduction to Server-Side Web Development JSP Final Remarks 10 th March 2005 Bogdan L. Vrusias
Writing a Class (defining a data-type). Create a new project : Project (uncheck the “Create Main Class”)
Java Enterprise Edition Java Web Development Structure of a web project Introduction to Web Applications The first project Introduction to Java Web Development.
Component-Based Software Engineering Internet Applications Paul Krause.
JavaServer Pages Fundamentals.
Java Servlets and Java Server Pages Carol Wolf Computer Science.
Chapter 8 Script-free pages. Problem with scripting in JSP When you use scripting (declaration, scriplet, expressions) in your JSP, you actually put Java.
CSCI 6962: Server-side Design and Programming Java Server Faces Components and Tags.
Mark Dixon 1 12 – Java Beans. Mark Dixon 2 Session Aims & Objectives Aims –To cover the use of Java Beans Objectives, by end of this week’s sessions,
Stanisław Osiński, 2002JSP – A technology for serving dynamic web content Java Server Pages™ A technology for serving dynamic web content Stanisław Osiński,
The java.lang Package chapter 8 Java Certification Study Group February 2, 1998 Seth Ladd.
© A+ Computer Science - public Triangle() { setSides(0,0,0); } Constructors are similar to methods. Constructors set the properties.
JSP Fundamentals Elements of a JSP Using Beans with JSP Integrating Servlets and JSP.
Java Server Pages (JSP) Provide a cross-platform framework for creating dynamic web contents JSP Components: Static HTML/XML parts Special JSP Tags Snippets.
Chapter 15 Text Processing and File Input/Output Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin,
1 Java Server Pages Allows the embedding of Java commands in a page of HTML. Popular for UI heavy solutions. These commands are then interpreted by a JSP.
Java Server Pages An introduction to JSP. Containers and Components Several clients – one system.
Overriding toString()
CourseOutline Example & JavaBeans Lec Start with Example Displaying Course Outlines User will select either course “web design & development” or.
UNDERSTANDING RECURSIVE CLASSES CMSC 150: Lecture 22.
©SoftMoore ConsultingSlide 1 Overview of Servlets and JavaServer Pages (JSP)
A: A: double “4” A: “34” 4.
Defining Classes I Part B. Information hiding & encapsulation separate how to use the class from the implementation details separate how to use the class.
When constructing a two-dimensional array, specify how many rows and columns are needed: final int ROWS = 3; final int COLUMNS = 3; String[][] board =
J2EE/Java EE Apache Tomcat v9 IBM Websphere v8 Redhat JBoss EAP v6 Oracle Weblogic v12 Fusion Web Tier ServletsJSPJSF Business Tier JMXJMSEJB.
Sistemas Distribuídos Socket e Thread – 3º Modelo Leitor do Cliente: public class LeitorCliente implements Runnable { private Scanner entrada; Leitor(InputStream.
。 33 投资环境 3 开阔视野 提升竞争力 。 3 嘉峪关市概况 。 3 。 3 嘉峪关是一座新兴的工业旅游城市,因关得名,因企设市,是长城文化与丝路文化交 汇点,是全国唯一一座以长城关隘命名的城市。嘉峪关关城位于祁连山、黑山之间。 1965 年建市,下辖雄关区、镜铁区、长城区, 全市总面积 2935.
JAVA API Strings, I/O, Formatting and Parsing
Syntax & Semantics UML - Java
Review Operation Bingo
בניית מחלקות.
null, true, and false are also reserved.
UML & Programming Martin Fowler.
בניית מחלקות.
AP Java Warm-up Boolean Array.
Unit 3 - The while Loop - Extending the Vic class - Examples
Packages From Deitel & Deitel.
مظفر بگ محمدی دانشگاه ایلام
BEAN!.
Solving One and Two Step Equations
Web Service.
CS3220 Web and Internet Programming Expression Language (EL)
Introduction to Java Servlets
CS3220 Web and Internet Programming Expression Language (EL)
Uniform Resource Locator: URL
Objects with ArrayLists as Attributes
Presentation transcript:

JSP e Beans Alcides Calsavara

Exemplo de beans ExemploBeans.html FORM HTML ExemploBeans.jsp HTML + Java ACTION SpellCheck.class (bean)

ExemploBeans.html Exemplo de Beans Forneca uma palavra: Reverse Spellcheck

ExemploBeans.jsp Exemplo de Bean Voce forneceu a entrada: A correspondente saida eh: <%= Integer.parseInt( request.getParameter( "mode" ) ) == 1 ? help.reverse( ) : " " + help.check( ) %>

SpellCheck.java package ACalsavara.D; public class SpellCheck { private String word; public SpellCheck( ) { } public String reverse( ) { return (new StringBuffer (word).reverse( ) ).toString( ); } public boolean check( ) { return true; } public String getWord( ) { return word; } public void setWord( String aWord ) { word = aWord; }

Exemplo de beans - instalação webapps ACalsavara D Espec2000 ExemploBeans.html ExemploBeans.jsp Web-inf classes ACalsavara D SpellCheck.class