Programming Tutorials

JSP Tutorials

11. Uploading an Image to a Database using JSP

By: Mahesh : 2010-12-15

Description: This jsp Page is Uploding The Image into Database using MultipartRequest class FileSystem concepts and ByteArray.


12. A JSP page that gets properties from a bean

By: Hisham Alssadi : 2010-11-28

Description: Once a bean has been obtained with jsp:useBean , getting a property is as simple as using the getProperty tag , this is example demonstrate a jsp that gets properties from a bean.


13. Tag Libraries in JSP

By: Sathya Narayana : 2010-10-24

Description: The syntax for using tag libraries is similar to that for the standard actions except of course that the tag names and attributes are defined in the tag library itself rather than by the JSP standard. Each tag library is associated with a prefix by using the taglib directive to map the prefix to a URI identifying the tag library.


14. The page Directive in JSP

By: Sathya Narayana : 2010-10-24

Description: The page directive specifies attributes for the page; all the attributes are optional, and the essential ones have default values, shown in bold:


15. The taglib, tag, include, attribute and the variable Directive in JSP

By: Sathya Narayana : 2010-10-24

Description: A tag library is a collection of tags used to extend a JSP container functional model. The taglib directive defines a tag library namespace for the page, mapping the uniform resource indicator (URI) of the tag library descriptor to a prefix that can be used to reference tags from the library on this page.


16. Declarations in JSP

By: Sathya Narayana : 2010-10-24

Description: The following syntax allows you to declare variables and methods for the page. These are placed in the generated servlet outside the _jspService() method; in other words, variables declared here will be instance variables of the servlet. Declarations don't produce any output.


17. Scriptlets and Expressions in JSP

By: Sathya Narayana : 2010-10-24

Description: Scriptlets enclose Java code (on however many lines) that's evaluated within the generated servlet's _jspService() method to generate dynamic content:


18. The Request Object in JSP

By: Sathya Narayana : 2010-10-24

Description: The request object is an instance of a class that implements the javax.servlet.http.HttpServletRequest interface. It represents the request made by the client and makes the following methods available.


19. The Response Object in JSP

By: Sathya Narayana : 2010-10-24

Description: The response object is an instance of a class that implements the javax.servlet.http.HttpServletResponse interface. It represents the response to be made to the client, and it makes the following methods available.


20. The Out Object in JSP

By: Sathya Narayana : 2010-10-24

Description: The out object is an instance of the javax.servlet.jsp.JspWriter class. It's used to create the content returned to the client and has the following useful methods available.