Showing posts with label Servlet. Show all posts
Showing posts with label Servlet. 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.

Friday, 15 July 2016

Servlet and JSP Q&A - Part 2

Hello everybody!

Here is the second part of the Q&A post. You can view the Part 1 from here.

Q17)What are advantages of using JSP?

Wednesday, 13 July 2016

Servlet and JSP Q&A - Part 1

Hello everybody!

I have been working on Servlets and Jsp recently. I have developed a few projects to get familiar with these subjects. While working on my projects, I read quite a few books, watched videos and often had some search on forums to understand what I have been doing better and also to find some answers to my questions. As a result, I now have good(but not perfect of course) knowledge base related to Servlet and Jsp. So I thought creating a Q&A post about Servlet and Jsp would be very useful to keep this information on record and also to help those who are trying to get a little bit more into these subjects. So I hope you benefit from this post too!

Friday, 27 May 2016

Very Simple Example to a Servlet - Hello World Servlet

Hello everybody!

I am going to show you how to write your very first servlet code. So if you are new and looking for a easy yet useful start, you are in the right place.This is the code I wrote a few months ago when I started to get familiar with servlets, jsp, jsf and database operations. So a couple of more posts related to these subjects will be posted probably not too far from now. Let's get started.