Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Attribute Problem

 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • 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?
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic