Java lead interview questions shared by candidates
How do you pass variables between two JSP pages and how do you do it between a controller servlet and a JSP page?
The request attribute is good when the parameters are meant to be passed to one page. If you want to pass the parameter across several pages, then it is much easier to set the parameters in the session scope instead of request scope. However, you must remember to clear the objects from the session scope once you are done with them.
See Interview Questions for Similar Jobs
- Sales Associate
- Social Worker
- Account Executive
- Mechanical Engineer
- Truck Driver
- Registered Nurse
- Security Guard