UC Davis Interview Question: How do you pass variables bet... | Glassdoor

Interview Question

Lead Java Applications Developer Interview Davis, CA

How do you pass variables between two JSP pages and how do

  you do it between a controller servlet and a JSP page?
Answer

Interview Answer

1 Answer

1

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.

Anonymous on Apr 4, 2013

Add Answers or Comments

To comment on this, Sign In or Sign Up.