what is request.setattribute doing here
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 :