Can you be more specific about what you are trying to do. From your other post I know you are trying to access the Request object from your own class. Previously you wanted to get it from the JSP, but now you have a 'handler' you want to use. What handler are you talking about?
Joined: Jun 22, 2012
well I was trying to get my URL from my *.jsp using a scriptlet like this:
and finally it worked well. But now instead of use a scriptlet I need clean my *.jsp from scriptlets. Then I would need get my request and send it to my class immediately before the *.jsp is displayed. I mean I want remove the scriptlet, and continue getting the request and sending it to my class.
I have talked with an architect he has told that there is a "handler", but I don't know more. I have searched in the internet and I have found things like "RequestHandler". But I have not figure out nothing about what way do the process.
Joined: Jun 22, 2012
I am trying send my request without the need of using scriplets, as I told you before. Now I am trying the next approach:
In my jsp:
and the method is in the class FetchingAuthToken I have included it this way:
And after that what way could I retrieve my request from my class? Maybe using getAttribute?
No, as Seetharaman said, you need a setter method to receive the value, and a getter method to get the results.
I think you need to re-think the strategy here. I don't think you clearly understand the technology or tools you are using. JEE is not the same as JSE, there is a lot to learn. I suggest going through a good tutorial (such as this one) or a good book so that you understand what you are doing.
I am not just pointing you to other resources to be short (I hope it doesn't come off as rude) I am doing so because these are big topics that have a lot of moving parts. If you don't learn them properly then you will have a lot of trouble. The forums are great for answering questions but they aren't the best place to learn things like this from scratch (it would take too long and require too much investment in time).