Click to get JSP tutorials.
Tuesday, November 6, 2012
JSP Tutorials
Click to get JSP tutorials.
How to jsp is process in web application ?
Here we discuss how a jsp page is processed in web application when it is requested by the users-
1. First time JSP page is loaded by the JSP container which is also called jsp engine(Where the JSPs complied) .Here the Jsp generated and complied java code which is called servlet code . This code is loaded in servlet engine. This process is occurs on translation time . It is important to note that this occurs only the first time when jsp is requested.
What are the differences between jsp and servlet ?
Both techniques are used to handle the web request in java or creating dynamic content with web pages-
Servlets- servlets executed on server and acting as a middle layer between clients and lower level applications.servlets contain the html code in java program. servlets are well suited to deciding how to handle client requests and invoke them but are not well suited for generating contents.Here markup code is harder to implement or maintain in web application. Developers need more experience of java to written servlets.
JSP- Jsp designed and developed less like programs and more like web pages.Generating html is much easier than servlets. Java code is written in html program or in html code.Jsp can use java bean with specified scope(Session,Request).
What is JSP ?
JSP stands for java server pages. JSP is server sided language which execute only server .The goal of the JSP specification is , creation and management of dynamic web pages. it provide more convenient way than servlets.JSP pages combine static markup like HTML,XML with scripting tags. The main thing is that each server page is translated into servlet the first time invoked.
Version of JSP 1.0 released in September 1999 and JSP 1.2 released in December 1999.
Monday, November 5, 2012
XML parsing in java
XML is a good thing to cntaint database and other information. Java use parsers to read and write the xml data so here we learn how we can use xml in our java application.Here provided step by step tutorials with example to understand the functionality of XML with java.
Lets click here to learn XML and XML parsing in java.
Sunday, November 4, 2012
What is XML ?
Markup language that define a set of rules for encoding documents in a form that is both human-readable and machine-readable.
• It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications.
• Can be embedded with all types of oop language with parsing.
Benefits-
1. Simple
2. Self description
3. Contains machine readable context information
4. Facilitates the aggregation of data
5. Can embed multiple datatypes and existing data.
How to insert a record in table using hibernate.
Hibernate is a ORM.To insert the record in table basically a object is inserted which contain the all attribute of that record field. for insertion create a bean class of that types variable and apply getter and setter property.now initialize a object of that class inject the values and save the object after it the table is updated and record is inserted.
To see the code click here.

