You are setting an attribute called "psaaword" in request scope. The attribute "param" of jsp:setProperty is not referring to request attributes, but to request parameters, and there is no request parameter called "psaaword". In this case, if the param is not set in the Request object, or if it has the value of "", the jsp:setProperty action has no effect.
If its not setting value in attribute then what is request.setattribute doing here . Please give me some way to use param and hence request attribute in my jsp so that the output comes out to be 12345 not priyanka
I'm the one asking this You didn't write this code ?
Please give me some way to use param and hence request attribute in my jsp so that the output comes out to be 12345 not priyanka
You either use request parameters or request attributes. You cannot say "hence request attributes".
If you want to use request parameters, you can add their values at the end of the url. For example, if you are trying to access bean.jsp, you can add "?psaaword=12345" after it : http://localhost:8080/myapp/bean.jsp?psaaword=12345. setAttribute is no use in this case.
You could use request attributes with EL, without the "param" attribute :