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]
