• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

findAttribute(String name) in JspContext

 
Sharath
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
It is written in the specification that the method
"Object findAttribute(String name)" searches for the named attribute in page, request, session (if valid), and application
scope(s) in order.

Suppose i have one attribute set in request and one more in session with the same String name. So if i use the above method i wil get the attribute set in the request.

If i want to get the attribute set in session then i hav to use
"Object getAttribute(String name, int scope)".

is this rt ?

if its wrong someone correct me.

thnx in advance.

Sharath
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you're right
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic