Thursday, 18 August 2016

"Eclipse Failed To Load The JNI Shared Library" Error

Hello everybody,

My beloved Eclipse has been giving me this error since yesterday after I installed a software. While installing the new software, I must have changed some setting without noticing. So today I was determined to solve this problem because I want to keep working on my new project. After some searches on Google, I found the solution.

Tuesday, 16 August 2016

Servlet Login Logout Example Using Cookies

Hello everybody!

There is a project I developed quite some time ago - Simple Servlet Login Logout Example Using Cookies. Using some controls, I checked if the user logged in before reaching a certain page. There is no database connection in this project so do not keep your hopes too high :D I will only share basic points about cookies in the project. Because the rest is not a big deal. You can benefit more from my other project explanation posts if you are interested in the rest.

Thursday, 11 August 2016

Beer Suggestion Application - Head First Servlet and JSP Book

Hello everybody!

When I first started to teach myself about Servlet and JSP(because these two are like JavaEE-101), I was looking for a reference book that can give me the logic and make me understand everything clearly. That book is "Head First Servlets and JSP". So I definitely recommend this book if you are new to JavaEE and looking for somewhere to start or you are preparing for an exam. I read this book now and then and tried to experiment all the small task the book gives to readers. One of those tasks was "Beer Suggestion Project" which is very basic yet again very suitable for beginners. Here in this post you can find that project(you can also find it in the book though :)).

My project structure was like below at the end.

Tuesday, 9 August 2016

MySQL Connection in Eclipse(Install, Connect and Test)

Hello everyone!

I have started a new project in which I am planing to use JSF, Primefaces and DB features. But this time I want to use MySQL instead of Oracle 11g in my project. I posted some entries about Oracle 11g while I was learning about it during the development of previous Java EE projects. I believe switching to and tackling MySQL will do huge benefits. Hope you can find what you have been looking for in this post too!

Monday, 1 August 2016

Simple JSF Project Using PrimeFaces

Hello everybody!

This time we are going to use managed bean class and Primefaces UI component alongside our JSF framework. To see how to add Primefaces to your project, you can have look at here.

Firstly, create a new dynamic project and do not forget to add JSF and Primefaces libraries. The final project structure will look like below:

Adding PrimeFaces Into Your JSF Project

Hello everybody!

To start working with PrimeFaces, you should first download "primefaces-6.0.jar" from this link. There will be elite and community versions. You will want the community version.


First Simple JSF Application

Hello everybody!

The very first and very simple JSF project that we are going to develop will take the user name from the client and display it on the other page.

The project structure will be like below. After creating the JSF project, we will simply add two xhtml files and alter web.xml file. That's all.