Showing posts with label Java EE. Show all posts
Showing posts with label Java EE. Show all posts

Thursday, 13 October 2016

JSP Servlet Login Logout Register Application MVC Approach - Part 2

Hello everybody!

Welcome to the second part of the post! You can see the Part 1 here. Let's get on with the project.

We can now create all the jsp pages. Some of these pages will be page templates and some of them will be sending form information to the Servlets that we created in the previous post.

Friday, 7 October 2016

JSP Servlet Login Logout Register Application MVC Approach - Part 1

Hello everybody,

I recently developed a basic login logout register application using JSP and Servlets. This time I wanted to use MVC in the project structure. So that the project is easy to handle, extend and change. This will be relatively long post, so I will try to divide it into two or more parts.

Monday, 5 September 2016

Servlet Login Logout Example Using Session

Hello everybody!

Here is the second version of the "Servlet Login Logout Example". This time I used session instead of cookies. The code and the appearance of the pages are pretty such the same with the first version. I will still add everything here to provide an easy flow for you.

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.


Sunday, 24 July 2016

Getting Started With JSF - Preparing The Environent and Creating the First JSF Application

Hello everybody!

This post will be something like "Introduction to JSF" :) So if you are new to JSF, I think this is a good place for you to start.