Session Tracking in Servlet/JSP

What is Session?

Answer : A specific time span that user interact with the website, is persistent through out that time span.

Servlet serves the request made by the client and generates the dynamic output. But servlet is not capable enough to remember the last client who made the request by own, because it uses the HTTP protocol, which is a stateless protocol.

To make a session a persist, various approaches could be adapted by servlet like…

  • URL Rewriting (Query String) : Session information is persist by modifying query string. (client side)
  • Hidden Fields : Session information is persist using Hidden Fields in form. (client side)
  • Cookies : Session information is persist using Cookies in via browser in client’s computer. (client side)
  • Http Session : Session inormation is persist using Http Seesion object on server .(server side)

– Ravi Oza

 

Important Tag in web.xml

Web.xml file is a configuration file in Java web application, it is used to define application wide and servlet/jsp wide settings.

It is a file referred by container on the server to identify Java resources available when requested by client.

Following is the list routine tags available in web.xml file.

  • <web-app>
  • <servlet>
  • <servlet-mapping>
  • <welcome-file-list>

<web-app> : It is the root tag of all the other tags in web.xml file

<servlet> : It is a sub tag of <web-app> tag, use to define servlets name and class, it has two more sub tags which are <servlet-name> and <servlet-class>

It is also used to declare parameter for the respective servlets, using <init-param> followed by two more sub tags, <param-nam> and <param-value>

<servlet-mapping>

It is use to describes a pattern used to resolve URLs. This tag is to be written inside <web-app> tag and outside of any <servlet> tag.

It is uses two more sub tags such as <servlet-name> and <url-pattern>

<welcome-file-list>

The optional <welcome-file-list> element contains an ordered list of welcome-file elements.

– Ravi Oza

 

Deployment Descriptor

deployment descriptor (DD) refers to a configuration file for an artifact that is deployed to some container/engine.

In the Java Enterprise Edition, a deployment descriptor describes how a component, module or application (such as a web application or enterprise application) should be deployed.

– Wikipedia

It also contains servlet/jsp wide settings as well as application wide settings for enterprise app of Java.

Another name of deployment decriptor is web.xml, resides in WEB-INF folder in the project hierarchy of Eclipse/NetBeans IDE.

Web.xml is a customized tag file. It allows to configure all the the settings in tag format. Such as, Initialization Parameter, Wel come file list for app, Cookies and Session tags etc.,

-Ravi Oza

વેકેશન

– વેકેશન એટલે લાંબી રજાઓ –
અને રજા એટલે રોજિંદા જીવન માં થી લેવાતો બ્રેક મારા અવલોકન પ્રમાણે વેકેશન
1. મામા નું ઘર ભાણેજ થી છલકાતું અને મામા ભાણેજ વચ્ચે છલકાતી લાગણી.
2. દીકરી ને પોતાનું બચપણ જ્યાં વિતાવ્યું તે જગ્યા (પિયર) જવાની ઉતાવળ અને સાસરા ના કામ ની થોડા દિવસ ની નિરાંત.
3. દાદા દાદી ને પોતાના પૌત્ર પૌત્રી થી અલગ રહી પસાર કરવો પડતો લાંબો સમય.
4. નાના નાની માટે દીકરી અને તેના સંતાનો સાથે રહેવાનો ટૂંકો સમય.
5. બાળકો માટે ભણતર નો બોજ (આજ ના યુગ માં) સહન કરી ત્યાર બાદ મરજી પડે એ કરવાનો સમય.
6. અને મારા જેવા નવા નિશાળિયા (કંઈક લખવા) માટે નો પ્રયત્ન કરનાર ને મળતો સમય.

MCA admission

Hello to all dear students.

Congratulation on becoming Graduate in Computers, but as they say “well beginning is half done”. All of you have just entered in and feel the wast opportunity in the field of computers, to grab it with both hands, one should also have the Master Degree in Computers (MCA) in order to have more chances in Industry.

Those who are eager to study “MCA” in Jamnagar .

Admission for MCA has started in Jamnagar based MCA Institute.

Regards

R.O.

for more information contact : Mr. Bipin Rupadiya   |  M. 92285 82425

 

BCA SEM-06 Practical Exam Date

BCA SEM-06 March-2018

Today University has declared the time table for your practical examination of BCA semester 6 for practical/project viva.

College : H. J. Doshi IT Institute, Jamnagar

Exam Date : 23-02-2018

——————————

College : DKV Arts & Science College, Jamnagar

Exam Date : 24-02-2018

-x-

All the very best to all students.

R.O.

 

Superb article by JV

Some say love, It is a river, that drowns the tender reed Some say love, It is a razor, that leaves your soul to bleed Some say love, It is a hunger, an endless aching need I say love, It is a flower, and you, Its only seed Its the heart of afraid of breaking, […]

via જે નિખાલસપણે કહેવું છે, જરા કહી તો શકાય… પ્રેમમાં એક દિન એવો કોઈ કજીયો નીકળે ! — planetJV

All the Best

Though, the exams has started yesterday and is going to finish tomorrow, still the a teachers wishes are always desirable and welcomed by students (was in our time for sure).

I wish all the very best to my dear students (BCA semester 5).

Exams are merely the test of your writing skill in the examination hall in two and half hours, those who writes better with respect to question with precise definitions, explanation, merits and demerits, etc., and conclusion. Better you write more marks you will get, “better” is not about writing more but about writing precisely and neatly.

As a developer I believe that technical skill matter more, but still report card (mark sheet) is an entry card for the industry, though one do have a better programming skill, need to be a better writer too.

All the very best for last paper, writer best answers with best hand writing and proper question sequences.

best

Happy Dussera

Almost more than a week since last post, professionally busy as preliminary and practical exams at college, more over SUCEAT exam just completed yesterday. Dealing with several clients for GST software updates, therefore not having free time at office too. Personally  busy as Navratris (Festival of Dance & Dandiya) are here, worshiping Goddess Aadhya Shakti, paying special tribute to maa Jagdamba by chanting Prachin & Arvachin Garbas, which is our family tradition.

Today is the last day of Navratri which Dussera, so wishing all of you a very Happy Dussera.