This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Herez my understanding about two methods to access request parameters.
apart from .getAttribute() gives us an OBJ & .getParameter() gives a String.
This is the main difference between both methods. setAttribute and getAttribute is provided to pass and retrive an java Object between servlets and jsps. where as getParameter is usee to fetch the parameters submited by user either by submiting form or by query string.
Now coming to your problem as you have set parameter using setAttribute you MUST fetch it using getAttribute.
Hope this helps Cheers Praful [ October 15, 2004: Message edited by: Praful Thakare ]
All desirable things in life are either illegal, banned, expensive or married to someone else !!!
Joined: Feb 26, 2004
I think that is it! Thx!
But just in case, if anyone else thinks there may be more to this, please enlighten me!!