RE: Request, response and session.

2003-10-22 Thread Carlos Pereira
 JSP is built on top of Servlets. JSP pages are actually transformed into servlets. 
So, if you're serious about starting to program in JSP, i would recommend that you 
learn the basics of servlets before jumping into JSP.

http://java.sun.com/products/servlet/docs.html is the Java Servlet Documentation page 
and should have everything you need.

Starting out with "Servlet Essentials" is a good bet; it covers the very basics and 
you will learn very fast. Including the equivalent to Request and Response, and 
sessions.

Regards,
Carlos Pereira

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Request, response and session.

2003-10-22 Thread Tim Funk
1) get a good JSP book
2) Request and Response are 2 classes as defined by the Servlet API. A JSP is 
actually a servlet when all is said and done. Anyhoo - the Request and 
Response are the interfaces to get the data the user agent sent as well as 
send data back to the user agent.
3) To use sessions - there is HttpSession which is available in Jsp pages as 
a variable called session. In servlets, you have to get it via 
request.getSession() (or a variant).

There are many free resources about intro to servlets and Jsp on the web, I 
can't think of any right know since I am so dependent on Google.

-Tim

anunay ashish wrote:

Hi,
I have a good background of ASP but recently started programming in JSP.
Where does Request and Response object comes in JSP?
Can we define a session variable in JSP similar to ASP?
Thanks in advance.
Regards,
Anunay Ashish.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]