Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set and get attributes in servlet.  RSS feed

 
shekar march chandra
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

I am new to web technology, I went through servlets.I have one doubt.

How to set and get attributes in a servlet using

1. page scope

2. request scope

3. session scope

4. application scope

Thanks,
Chandra
 
Satish SN
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chandra,

first go through servlet-api of HTTPServlet package u will find various mehtods defined to set variables for request,session,page,application scope

I think u first come up with some code and then it is for all of them here to answer ur questions.

cheers
 
Adeel Ansari
Ranch Hand
Posts: 2874
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!