JSP Tutorials

1. LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: `java.net.BindException: Permission denied <null>:80

By: Emiley J : 2011-04-06

Description: If you get this error: LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: `java.net.BindException: Permission denied <null>:80, then here's how you can resolve this.


2. JSP Alert Example

By: Dorris : 2010-12-27

Description: JSP Alert is used to put the validation on login page for the users. The example in this Tutorial provides you to create the validation on the login form using Javascript method in JSP page. 


3. JSP CheckBox Example

By: Dorris : 2010-12-27

Description: This Tutorial illustrates an elaborate example of JSP CheckBox. To understand and grasp the example we create a CheckBox.jsp page that includes the html tag<input type="checkbox"> to create the checkboxes. The HTML page allows the user to select multiple languages using checkboxes. After submitting the button, the action is performed which displays the selected languages. The method request.getParameterValues() is used to return the value of selected checkbox. The for loop is used to execute the code repeatedly till the length of variable i is less than equal to selected position of checkbox. Finally the out.println is used to print the selected checkbox in the browser.


4. 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.


5. Uploading a file to a server using JSP

By: Ramesh Kumar Swarnkar : 2010-12-15

Description: This jsp Page demonstrates uploading a file to a server.


6. 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.


7. 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:


8. 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.


9. 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.


10. 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: