• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Attribute Problem

 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

Is there any way to get all attributes in a specific scope like request.

We can get all paramerters, headers and cookies too. But I want to get all the attributes of a request. is this possible ?

Thanks all?
 
Bartender
Posts: 3778
40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Chaminda Amarasinghe:
Dear All,

Is there any way to get all attributes in a specific scope like request.

We can get all paramerters, headers and cookies too. But I want to get all the attributes of a request. is this possible ?

Thanks all?



Hi !

(It's offtopic here)

Yes, it's possible.

1-st you get names of all attributes which bound to the request object:



2-nd you retrieve all attributes in a loop



Note, these methods are defined in ServletRequest interface, not HttpServletRequest.

regards,
MZ
 
reply
    Bookmark Topic Watch Topic
  • New Topic