DIGIT-ARC read-only archive · snapshot: July 23, 2026

request.setAttribute() in jsp

3 posts · originally from https://geek.digit.in/community/threads/request-setattribute-in-jsp.107403/

M
mani.gparas Original post #1
Jan 26, 2009 at 4:51 PM
I want to process verious request from various jsp pages in a single jservlet(controller),how can i do it??

how can i do it using request.setAttribute() in various jsp pages
Leonidus06
Feb 10, 2009 at 1:12 PM
I want to process verious request from various jsp pages in a single jservlet(controller),how can i do it??

how can i do it using request.setAttribute() in various jsp pages



Can you please brief me about the exact problem ..
I did not get what exactly you wanted to know
Garbage
Garbage #3
Feb 10, 2009 at 2:57 PM
I want to process verious request from various jsp pages in a single jservlet(controller),how can i do it??

how can i do it using request.setAttribute() in various jsp pages
From request you can only getAttributes. You can setAttribute to response. Isn't it ?

And if you want to check from which page this request originated, just include a hidden field in every page and set it's value with something unique to that page (page name?).
And in servlet, check the value of that hidden field.