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 …
FileStore in Java 7
FileStore is new class introduced in Java 7.0. It is part of java.nio package. This class helps in geting the type of storage for the files stored whether it’s a device, partition or concreate file system. Also this class defines the list of methods which is useful for getting information about the file storage such …
OCPJP 6 Mock Exam – 21
1 . Given: Which two construct an anonymous inner class? Choose the two below: AnAdapter1 aa = new AnAdapter1 () {} AnAdapter0 aa = new AnAdapter0 () {} AnAdapter0 aa = new AnAdapter0 (5) {} AnAdapter1 aa = new AnAdapter1 (5) {} AnInterface ai = new Anlnterface (5)) { 2 . What will be the …
OCPJP 6 Mock Exam – 20
1 . Which of the following are valid array construction? int a[] = new int[]; int a[] = new int[10]; int a[10] = new int[]; int a[] = new a[10]; 2 . Which of the following are valid array initialization? new int[] = {1,2,3,4}; new int[10] = {1,2,3,4}; new int[] = 1,2,3,4; new int[] = …