This post demonstrates a simple example for how to compress your file and add to the ZIP file. Java has built-in API java.util.zip for compressing the files in ZIP format. It is very simple to read the files from your disk and writing to the destination ZIP file. It is straight forward. The steps involved …
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 …
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 …
OCPJP 8 / OCPJP 7 Exam Details
The Oracle Certified Professional for Java Platform, Standard Edition 6 certification exam is for programmers experienced using the Java programming language. Achieving this certification provides clear evidence that a programmer understands the basic syntax and structure of the Java programming language and can create Java technology applications that run on server and desktop systems using …