It's not a secret anymore!
The moose likes Servlets and the fly likes One Interview Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "One Interview Question" Watch "One Interview Question" New topic

One Interview Question

Asha Pathik
Ranch Hand

Joined: Feb 08, 2006
Posts: 143
Hi All,

There are four JSPs forming a chain of requests and request is forwarded from 1st-2nd-3rd-4th.

The question is: Is there any way to set some attributes in the 1st JSP which will be visible only in the last JSP not in the 2nd and the 3rd JSPs?

Please help.

SCJP 1.5
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

What's your answer and why?

[Asking smart questions] [About Bear] [Books by Bear]
Prasad Tamirisa
Ranch Hand

Joined: Mar 26, 2007
Posts: 130
Interesting Question Asha.
But how are you forwarding the request from one jsp to other..?? Reqeust dispatcher..??

Durga Prasad
I agree. Here's the link:
subject: One Interview Question
It's not a secret anymore!