Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

getAttribute and findAttribute differences on pageContext of jsp

Hi,
i wonder getAttribute and findAttribute differences on pageContext of jsp.please advise
Avatar of mccarl
mccarl
Flag of Australia image

Did you read the appropriate Javadoc? It gives a pretty good summary itself.

abstract  java.lang.Object      findAttribute(java.lang.String name)
          Searches for the named attribute in page, request, session (if valid), and application scope(s) in order and returns the value associated or null.

abstract  java.lang.Object      getAttribute(java.lang.String name)
          Returns the object associated with the name in the page scope or null if not found.
Avatar of gudii9

ASKER

for page scope is it advisable to use findAttribute or getAttribute?
please advise
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial