Java EE Tutorials Servlets Tutorials Servlets Interview Questions What is Servlet ? Servlets are an important component of a J2EE application. Servlets along with JavaServer Pages (JSP) and EJB modules can be termed as server-side J2EE component types. Servlet is a Java Programming Language. Servlets are used to create web applications. Servlets are used to …
Java EE
Exception Handling in JSP
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 …
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 …
How To Use JavaBeans in JSP?
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 …