This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This isn't something that someone on a list of forum can help you with. This is basic debugging.
If getAttribute is returning null, then you need to examine the code that binds "result" to request scope. Also, remember, that request, as its name suggests, is only good for one request/response cycle. If you bind something to request scope and then try to retrieve it in another request, you will get a null result.