Skip to main content

Java Server page part 4:A Simple Java Server Page

A Simple Java Server Page

Dynamic Web Project : JspBasicProject:
 simple jsp program ,jsp example programs ,jsp program ,jsp programs ,jsp programs examples ,jsp program example ,jsp programming examples ,simple jsp program example ,jsp examples programs ,jsp program examples ,simple jsp programs ,jsp programming ,jsp simple program ,examples of jsp programs ,example of jsp program ,a simple jsp program ,jsp programs examples with output ,jsp example program ,jsp simple example programs ,jsp programming language ,jsp programing ,first jsp program ,jsp programming tutorial ,jsp program for login page ,jsp first program ,jsp page ,jsp pages ,page jsp ,jsp page example ,javaserver pages jsp ,jsp example page ,example of jsp page ,example jsp page ,jsp pages example ,jsp pages examples ,jsp write to page ,page in jsp ,what is jsp page ,what is a jsp page ,home page in jsp ,what are jsp pages ,international mail tracking ,tracking mail ,mail tracking ,international mail tracking system ,international registered mail tracking ,mail track ,jsp website ,jsp websites ,jsp website example ,jsp website examples ,jsp websites examples ,jsp based websites ,websites using jsp ,how to create a website using jsp ,website using jsp ,jsp website tutorial ,international airmail tracking ,airmail tracking ,registered airmail tracking ,china post airmail tracking ,track airmail ,china post airmail tracking number ,china airmail tracking ,tracking airmail ,jsp file ,jsp files ,jsp file example ,jsp write to file ,what is a jsp file ,what is jsp file ,jsp server ,jsp web server ,web server for jsp ,jsp servers ,server for jsp ,jsp server side ,sample jsp page ,jsp sample programs ,jsp sample ,sample jsp code ,sample jsp programs ,sample jsp program ,sample jsp ,jsp sample program ,sample jsp application ,sample jsp file jsp sample page ,jsp samples ,jsp sample application ,sample jsp project ,jsp sample project ,jsp sample projects ,sample jsp example ,sample jsp projects ,sample jsp web application ,sample jsp pages ,jsp page sample ,sample jsp servlet example ,jsp code ,jsp example code ,jsp code example ,jsp coding examples j,sp code examples j,sp coding j,sp page example code ,jsp codes ,jsp code for login page ,jsp code for homepage ,jsp coding tutorial ,simple jsp example ,jsp simple example  ,simple jsp page ,simple jsp ,simple jsp page example ,simple jsp code ,simple example of jsp ,simple jsp form example ,simple jsp tutorial ,jsp servlet ,servlet jsp ,servlets and jsp ,jsp and servlet ,jsp servlets ,servlets jsp ,jsp to servlet ,jsp and servlets ,tomcat jsp servlet ,jsp servlet mapping ,air mail tracking ,china post air parcel tracking ,track china post air mail ,china post air mail tracking service ,china post air tracking ,china post air mail tracking number ,china post air mail tracking ,china air post tracking ,china post air mail track ,china air mail tracking ,tracking china post air mail ,china air post mail tracking ,jsp application ,jsp application development ,application jsp ,jsp applications ,jsp web application ,simple jsp application example ,jsp application example ,jsp web application examples ,simple jsp application ,simple web application using jsp ,jsp web application example ,applications of jsp ,application of jsp ,jsp tags ,jsp tag ,jsp custom tags ,jsp tag library ,jsp custom tag ,jsp tag example ,jsp tags with example ,jsp tags examples ,jsp pdf ,jsp examples programs pdf ,jsp programming examples pdf ,jsp example programs pdf ,pdf jsp ,jsp examples pdf c,hina registered mail ,china post air mail website ,china mail tracking ,china post mail tracking ,china post registered air mail ,china air post mail ,china air mail ,china post mail ,china post register mail ,china postal tracking ,china tracking ,china post tracking ,china post track ,tracking china. ,china tracking post ,tracking china post ,track china post ,jsp online ,online jsp editor ,online jsp ,run jsp code online ,jsp online tutorial ,online jsp tutorial ,jsp servlet example ,servlet examples ,servlets examples ,jsp and servlet example ,simple jsp servlet example ,jsp and servlet example programs ,servlets example ,servlet and jsp example ,jsp servlet example project ,servlets and jsp examples ,jsp servlet example application ,jsp with servlet example ,servlet example with jsp ,jsp servlet example code ,jsp to servlet example ,jsp servlet examples ,servlet with jsp example ,jsp and servlets example ,servlet to jsp example ,call servlet from jsp example ,jsp servlet application example ,jsp servlets examples ,jsp form submit to servlet example ,web jsp ,jsp web ,jsp web page ,jsp web page example ,jsp web pages ,jsp web development ,jsp in web technology ,jsp form ,form jsp ,jsp form example ,jsp form submit example ,jsp form submit ,jsp submit form ,html form jsp ,jsp form example code ,jsp version ,latest jsp version ,jsp latest version ,jsp versions ,latest version of jsp ,jsp html ,jsp and html ,html and jsp ,html to jsp ,jsp to html ,jsp with html ,jsp in html ,html in jsp ,jsp tutorials ,jsp tutorial w3schools ,tutorial jsp ,jsp tutorial videos ,jsp tutorial with examples ,jsp video tutorials ,tutorial on jsp ,jsp page tutorial ,jsp advanced tutorial ,jsp complete tutorial ,jsp pages tutorial ,tutorial for jsp ,jsp 2.0 tutorial ,best jsp tutorial ,tutorials on jsp ,jsp step by step tutorial ,jsp full tutorial ,complete jsp tutorial ,jsp.net tutorial ,jsp examples for beginners ,jsp tutorial for beginners ,jsp tutorial for beginners with examples ,jsp tutorials for beginners ,jsp for beginners ,jsp servlet tutorial for beginners ,how to learn jsp for beginners ,jsp and servlet tutorial for beginners ,jsp beginners tutorial ,jsp beginner tutorial ,servlets and jsp tutorial for beginners ,jsp beginner ,servlet and jsp tutorial for beginners ,jsp servlet tutorial ,jsp and servlet tutorial ,jsp and servlets tutorials ,servlet and jsp tutorial ,servlets and jsp tutorial ,jsp and servlets tutorial ,servlet jsp tutorial ,jsp servlets tutorial ,servlets and jsp tutorials ,jsp and servlet tutorials ,servlet and jsp a tutorial ,jsp servlet tutorials ,servlet and jsp tutorials ,jsp & servlet tutorial ,servlets jsp tutorial ,jsps and servlets tutorial ,create jsp ,create jsp page ,create a jsp page ,creating a jsp page ,how to create a web page using jsp ,creating jsp pages ,how to create a jsp page ,how to create jsp page ,how to create jsp pages ,how to create jsp ,jsp project example ,simple jsp project ,jsp servlet projects ,simple jsp projects ,jsp project tutorial ,learn jsp ,learning jsp ,learn jsp online ,jsp learning ,how to learn jsp ,learn jsp step by step ,jsp learn ,using jsp ,jsp uses ,use ofjsp ,why use jsp ,uses of jsp ,what is the use of jsp ,what is jsp used for ,learn jsp and servlets ,learn jsp and servlets online ,learn servlet and jsp step by step ,learn servlets and jsp ,learning jsp and servlets ,learn servlet and jsp ,jsp examples ,jsp example ,ajax jsp example ,example of jsp ,example jsp ,examples of jsp ,jsp menu example ,index.jsp example ,jsp by example ,jsp with example ,tomcat jsp example ,jsp dynamic table example ,jsp xml example ,jsp practical examples ,jsp select example ,jsp cookies example ,jsp date example ,jsp button example ,jsp button action example ,jsp tomcat example ,jsp forward ,jsp url ,tomcat jsp ,jsp test ,jsp documentation ,jsp out ,jsp date ,jsp tools ,jsp for ,jsp post ,jsp development ,jsp 2.0 ,jsp editor ,jsp comments ,jsp language ,jsp site ,jsp 2.2 ,jsp reference ,jsp 2 ,jsp industries ,jsp for each ,jsp table ,jsp bean ,jsp set ,jsp link ,jsp https ,jsp 2.1 ,jsp index ,introduction to jsp ,jsp overview ,for jsp ,jsp introduction ,jsp s ,jsp support ,jsp js ,jsp expression ,jsp sites ,jsp records ,jsp demo ,www.jsp.com ,jsp 3.0 ,jsp for dummies ,jsp extension ,what is jsp ,jsp script ,www.jsp ,jsp beans ,jsp cookies ,w3schools jsp ,jsp package ,link jsp ,jsp.com ,jsp webpage ,javatpoint jsp ,jsp and ,jsp technology ,jsp basics ,jsp international ,jsp calendar ,jsp information ,jsp download ,jsp 5 ,jsp quick reference ,jsp && ,jsp wiki ,jsp tld ,what jsp ,jsp sk ,jsp w3schools ,tutorialspoint jsp ,jsp syntax ,explain jsp ,jsp object ,precompile jsp ,jsp documents ,asp jsp ,run jsp ,jsp ltd ,jsp definition ,about jsp ,download jsp ,w3school jsp ,features of jsp ,jsp questions ,jsp javatpoint ,jsp software ,define jsp ,jsp company ,jsp step by step ,jsp compiler ,dynamic jsp ,jsp doc ,jsp post method ,first jsp ,jsp means ,writing jsp ,jsp corporation ,jsp specification ,introduction of jsp ,jsp concepts ,jsp .do ,what is a jsp ,jsp group ,jsp limited ,jsp tree ,jsp run ,basics of jsp ,what is jsp technology ,jsp technologies ,jsp usage ,wiki jsp ,jsp tut ,jsp history ,for each jsp ,jsp japan ,jsp meaning ,jsp inc ,definition of jsp ,jsp mobile ,jsp solutions ,jsp navigation ,jsp location ,jsp jsp ,questions on jsp ,jsp question ,jsp usa ,jsp tuto ,jsp products ,wat is jsp ,what is in jsp ,overview of jsp ,history of jsp ,get jsp ,jsp tutorialpoint ,jsp m ,jsp international group ltd ,view jsp ,jsp a ,for in jsp ,jsp view ,jsp t ,link in jsp ,jsp int ,how to jsp ,jsp icon ,jsp in ,jsp what is ,what are jsp ,intro to jsp ,jsp 12 ,jsp corp ,jsp intro ,jsp toturial ,jsp language basics ,jsp to jsp ,jsp tutorail ,jsp description ,jsp fundamentals ,what is the jsp ,all about jsp ,jsp is ,jsp mkyong ,jsp ,javaserver pages ,javaserver ,js p ,chinese post tracking ,jsp2 ,registered air mail ,china airmail ,web development with javaserver pages ,cn post ,post air mail ,mailtracking ,tracking post ,post tracking ,javaserver page ,china air post ,china post registered airmail ,china post air mai ,post track ,server pages ,j sp ,ajsp ,servlet code ,jsplayer ,wwwjsp ,jsptut ,javaserverpages ,jsptutorial ,jsppage ,jsponline ,jsps application ,servlet faq.


basic.jsp


<%@ page language=”java” contentType=”text/html;charset=ISO-8859-I” pageEncoding=”ISO-8859-I”%>
<!DOCTYPE html PUBLIC”-//w3c//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<meta http-equiv=”content-Type” content=”text/html;charset=ISO-8859-I”>
<title>Sample JSP</title>
</head>
<body>
<h1>Sample Java Server Page</h1>
<%  
for(int i=10;i>0;i--){
out.println(“<h”+i+”>+”welcome to JSP”+”</h”+i+”>”);

}
%>

</body>
</html>


“A scriptlet is a fragment of java code which is placed within delimiters and is executed when the user requests for the page.”

Uses of JSP Constructs

• Scripting elements calling servlet code directly
 • Scripting elements calling servlet code indirectly (by means of utility classes)
 • Beans
• Servlet/JSP combo (MVC 2 Architecture)
• MVC with JSP expression language (JSTL)
 • Custom tag
• MVC with beans and a framework like Struts or JSF

Comments

Popular posts from this blog

OPERATION MANUAL FOR RS232 TO RS422/RS485 VICE-VERSA

INTRODUCTION: Milestone model LD-15U is a RS232,  to RS422/RS485 converter is designed for high-speed data transmission between computer system and or peripherals over Iong distance under high noise conditions. They provide dual line interface per signal. APPLICATIONS: Application for these converters can be for factory automation, Programmable logic controllers,, attendance recording systems, Barcode Readers, remote data transmission, remote terminals, EPABX etc. SPECIFICATIONS: Input: RS232-T×D, R×D, DSR (for control), GND (D9 Female connector) Output: RS422/RS485-Tx+, Tx-, Rx+. Rx-(D9 Male Connector). Each signal is protected by spike suppressor, fuse and has opto-isolation. Selection Switch: 1. Rear side has 2-way'SELECT' switch for selecting 2-Wire or 4-Wire mode in RS422/RS485 application. 2. (Optional) Rear side has 3-way'SELECT' switch for selecting AUTO Mode (No Handshake Signal), DSR+ Mode (+12V Control) and DSR-Model (-_12V Control) for co

Java Server page tutorial part 3: JSP Life Cycle

JSP Life Cycle: A JSP life cycle can be defined as the entire process from its creation till the destruction which is similar to a servlet life cycle with an additional step which is required to compile a JSP into servlet. Following are the steps followed by a JSP Container: ◦ Compilation  ◦ Parsing the JSP.  ◦ Turning the JSP into a servlet.  ◦ Compiling  the servlet.  ◦ Initialization ◦ Execution ◦ Cleanup Architecture: 1.       JSP Compilation: When a browser asks for a JSP, the JSP engine first checks to see whether it needs to compile the page.  If the page has never been compiled, or if the JSP has been modified since it was last compiled, the JSP engine compiles the page. The compilation process involves three steps: ◦ Parsing the JSP. ◦ Turning the JSP into a servlet.  ◦ Compiling the servlet.  2.       JSP Initialization: When a container loads a JSP it invokes the jspInit() method before servicing any requests.  If you need to perform

JSTL-JSP Standard Tag Library part 1

Evolution of JSTL: Java is a flexible, general-purpose programming language, JavaServer pages(JSP) depends on java but hides some of the hard details of writing full- fledged programs.  The JSP Standards Tag Library(JSTL) builds on top of JSP, making it even easier to use. Architecture : In this figure large web applications are designed using java, JSTL, and othe components like databases. In large applications, it's common for requests from web browser to be handled by a java program called a servlet, which interacts with databases and other Java code on the server. The servlet figures out how it wants a response be printed and then forwards the user to the right JSTL page, which takes care of nothing more than presenting information. As JSP grew in popularity, it became clear that different sites' custom tags fell into familiar, frequently used patterns.  For example, many pages needed to loop over data to print tables and lists. Vendors of JSP c