Exception Handling in JSP

java-ee-thumbnail

Java EE Tutorials JSP Tutorials Recommended Books for Java Server Pages (JSP) An exception is problem that occurs during the execution of any program. Exception can be categorized as: Runtime Exception – It is an exception that occurs during running (executing) the program. Checked Exception – It is a user error in the code. It cannot […]

JSP Tutorials

java-ee-thumbnail

Java Server Pages (JSP) is a view technology bundled with the Java Enterprise Edition (Java EE) specifications. It was considered as the default view technology for Java EE applications and alternative for the servlet applications. Where as servlet is a Java program which helps to write the plain Java class, JSP jelps you to write the […]

Cookies Handling in JSP

java-ee-thumbnail

Java EE Tutorials JSP Tutorials Recommended Books for Java Server Pages (JSP) Cookie is simple information stored by server on client side. Some of the features of cookie are: It allows servers to store user’s information on user machine. Cookies are stored in the partition assigned to the web server’s domain. All cookies for that domain […]

JSP Expression Language (EL)

java-ee-thumbnail

Java EE Tutorials JSP Tutorials Recommended Books for Java Server Pages (JSP) Expression Language(EL) is to access application data stored in JavaBeans components. The Syntax of EL in a Jsp is: General Example for EL Let us create two files namely as expr.jsp and expprocess.jsp. Listing 1:expr.jsp This file is used to get input from […]

Upload a File Using JSP

java-ee-thumbnail

Java EE Tutorials JSP Tutorials Recommended Books for Java Server Pages (JSP) In general file upload means to receive data from a remote system to a local system. So coming to programming language a JSP can upload file on server by using html form tag. An uploaded file could be text file, image file or […]

How to Send Mail using JSP?

java-ee-thumbnail

Java EE Tutorials JSP Tutorials Recommended Books for Java Server Pages (JSP) Java Mail API needs to be used to send mail using JSP. Java Mail API is used to compose, read and write messages.You need to include jars javax.mail and javax.mail.activation to send email using JSP. These packages contain core classes of Java Mail […]

How To Debug JSP Page?

java-ee-thumbnail

Java EE Tutorials JSP Tutorials Recommended Books for Java Server Pages (JSP) Debugging enables a developer to detect and identifies the errors in the application. But testing a JSP/Servlet compared to other programs is often found to be difficult. Following are some of the suggestions which can be used to test you JSP programs: Using […]

Auto Refresh a Web Page In JSP

java-ee-thumbnail

Java EE Tutorials JSP Tutorials Recommended Books for Java Server Pages (JSP) Instead of refreshing the web page all the time, JSP includes such a code in which refreshing is done automatically in the web page. setIntHeader method of response object (HttpServletResponse) can be used for refreshing the page. Signature of this method setIntHeader is […]

How To Use JavaBeans in JSP?

java-ee-thumbnail

Java EE Tutorials JSP Tutorials Recommended Books for Java Server Pages (JSP) JavaBeans are simple classes that are used to develop dynamic WebPages. JavaBeans are required to create dynamic web pages by using separate java classes instead of using java code in a JSP page. It provides getter and setter methods to get and set values […]

Session Tracking in JSP

java-ee-thumbnail

Java EE Tutorials JSP Tutorials Recommended Books for Java Server Pages (JSP) Sessions are mechanism for storing client data across multiple HTTP requests. From one request to another user the HTTP server does not maintain a reference or keep any record of client previous request. HttpSession Methods getAttribute : it returns stored value from session […]

Close
Please support the site
By clicking any of these buttons you help our site to get better