There is a difference between request parameter and attribute. Don't confuse between both.
If you are talking about query string then its passed as request parameter not attribute.
What JspContext#findAttribute() states:
Searches for the named attribute in page, request, session (if valid), and application scope(s) in order and returns the value associated or null
.
What ServletRequest#getParameter() states:
Returns the value of a request parameter as a String, or null if the parameter does not exist. Request parameters are extra information sent with the request. For HTTP servlets, parameters are contained in the query string or posted form data.
You can try in this way if needed:
request.setAttribute("name", request.getParameter("name"));
Note:
I suggest you to use JavaServer Pages Standard Tag Library or Expression Language instead of Scriplet
that is more easy to use and less error prone.