Tuesday, April 26, 2011

JSP Basics

JavaServer Pages (JSP) and Servlets are complementary technologies for producing dynamic Web pages via Java. While Servlets are the foundation for serverside Java, they are not always the most efficient solution with respect to development time. Coding, deploying, and debugging a Servlet can be a tedious
task. Fixing a simple grammar or markup mistake requires wading through print() and  println() calls, recompiling the Servlet, and reloading a Web Application.Making a grammar or markup mistake is not hard, and the problem is compounded in complex Servlets. JSP complements Servlets by helping solve this problem and simplifying Servlet development.

JSP Life Cycle
Much like Servlets, understanding JSP requires understanding the simple life cycle that JSP follows. JSP follows a three-phase life cycle: initialization, service,and destruction, as shown in Figure This life cycle should seem familiar and is identical to the one described for Servlets .While a JSP does follow the Servlet  life cycle, the methods have different names. Initialization corresponds to the jspInit() method, service corresponds to the _jspService() method, and destruction corresponds to the jspDestroy() method. The three phases are all used the same as a Servlet and allow a JSP to
load resources, provide service to multiple client requests, and destroy loaded resources when the JSP is taken out of service.
JSP is designed specifically to simplify the task of creating text producing HttpServletobjects and does so by eliminating all the redundant parts of coding a Servlet. Unlike with Servlets there is no distinction between a normal JSP and one meant for use with HTTP. All JSP are designed to be used with HTTP and to generate dynamic content for the World Wide Web. The single JSP _jspService() method is also responsible for generating responses to all seven
of the HTTP methods. For most practical purposes a JSP developer does not need to know anything about HTTP, nor anything more than basic Java to code a dynamic JSP.




Sunday, January 23, 2011

My romance is not.........

My romance is not hard or odd.
Since I've got it to give.
It's here for you...
And ...it lives.

My romance is not a part time job.
Full time!
You-are-on-my-mind.

You've got to know...
My romance is not hard or odd.
You've got to know...
My romance is not a part time job.
You've got to know...
I'll sweat.
Because I can't let you go!

My romance is not a part time job.
And I'll sweat.
Because I can't let you go!

My romance is not hard or odd.
My romance is not a part time job.
My romance is coming from my heart.
And I'll sweat!
Since I can't let you go!

My romance is not hard or odd.
My romance is not a part time job.
My romance is coming from my heart.
And I'll sweat!
Since I can't let you go!

And I'll sweat!
Since I can't let you go!
Love You...♥♥

Saturday, January 8, 2011

Romentic quotes



Lastly, do I vow, that mine eyes desire you above all things

--Catherine of Aragon, 1535


Two souls, one heart.



Leave a kiss but in the cup, And I'll not look for wine.
 
--Ben Jonson, To Celia



A man had given all other bliss,And all his worldly worth for this, To waste his whole heart in one kiss Upon her perfect lips.
 
--Alfred, Lord Tennyson



My whole heart for my whole life. 



I but know that I love thee, whatever thou art.  


--Thomas Moore



Come live in my heart and pay no rent. 


--Samuel Lover



Her lips on his could tell him better than all her stumbling words. 


--Margaret Mitchell



Love is a smoke made with the fume of sighs. 


--William Shakespeare


As soon go kindle fire with snow, as seek to quench the fire of love with words.  


--William Shakespeare


Ah, lady, when I gave my heart to thee,It passed into thy lifelong regency.
 

--Gilbert Parker


 If our two loves be one, or thou and I Love so alike, that none doe slacken, none can die.
 

--John Donne


 For you see, each day I love you more Today more than yesterday and less than tomorrow.
 

Love me and the world is mine. 


--David Reed
A hundred hearts would be too fewTo carry all my love for you.


He felt now that he was not simply close to her, but that he did not know where he ended and she began.

--Leo Tolstoy