• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do such methods exist?

 
Rich Smyth
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote two trivial convenience methods to use in my servlets. I'm wondering now if they already exist. I can't find anything similar in the Servlet API doc.
1) getAttributeFromAnyScope(String name) searches
for the attribute in request scope then in session scope then in application scope. Returns the first one it finds.
2) getAtttributeInScope(String name, String scope) returns the attribute from the specified scope.

Rich
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont thinkso - jsp offers those kind of methods but not servlets.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic