Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

JSP

No description
by

Osama Abo-elkhair

on 6 December 2015

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of JSP

JSP is a technology that lets you add
dynamic content to web pages what is dynamic? change the content of a web page depend on many factors time of the day
information provided by the user
history of interaction with the website
browser type Viewing a HTML page Viewing a JSP page JSP Application Architectures model 1 model 2 (MVC) Login Example The Fundamentals of
JavaServer Pages directives expressions declarations scriptlets JSP directives are instructions to the JSP container that are processed during the page translation process. <% @ page language="java" imports="java.util.*" %> <% @ include file="header.jsp" %> The include directive is used to specify static resources that should be included within the current JSP page translation unit include directive page directive The page directive is used to communicate information about a specific JSP page to the JSP container. declare globally visible variables and methods <%! start tag and a %> The standard JSP expression is just a Java expression that is evaluated at run-time by the JSP container. <%= start tag and the %> end tag fragments of Java code in a JSP page <% start tag and the %> end tag Bean Basics JSP Prepared By: Osama Abulkhair Supervised By : Eng. Essam Agenda what is JSP?
what is dynamic?
JSP application architectures
login example
The Fundamentals of JavaServer Pages
Bean Basics Formally, a JavaBean is a reusable software
component written in Java this might sound confusing the concept is simple A JavaBean wraps a collection of related properties
together, provides controlled access to the properties properties like simple data like user name or password or more complex data, such as the properties of a button or menu item package com.pjbank ;

import java.io.Serializable;

public class LoginBean implements Serializable {
private String username ;
private String password ;
private boolean valid = false ;

public LoginBean() {
}

public String getUsername() {
return username;
}

public void setUsername(String value) {
username = value ;
}

public String getPassword() {
return password;
}
public void setPassword(String value) {
password = value ;
}

public boolean isValid() {
valid=false ; // By default assume invalid login attempt
if((username != null)&&(password != null))
valid = true ;
return valid ;
}
} jsp:useBean, jsp:setProperty, and jsp:getProperty login example again thank you
Full transcript