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
JSP Tutorials
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 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 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 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 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 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 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 …