clear off memory in java -BufferedReader class

hi experts
I have three links in a jsp page
all the three links point to 3 different jsps before "operation DISPLAY DOCUMENT" . "operation DISPLAY DOCUMENT" is  displaying a crystal report document when submit button is clicked in from any of the three jsp files. After "operation DISPLAY DOCUMENT" all the three links do not point to the three different jsp pages instead they all point the crystal report document. I am just curious as to why this is hapenning. Do i have to clear off the memory or something in my java class which uses BurfferedReader class to display the crystal report document

I do have the statements

any sugessions greatly appreciated
LVL 10
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mick BarryJava DeveloperCommented:
Are you closing and reopeining the reader?
jaggernatAuthor Commented:
no i am just getting an instance of bufferedReader

like this
 ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);

BufferedReader in = new BufferedReader(new InputStreamReader(
Mick BarryJava DeveloperCommented:
that should be fine (make sure you close both once done).
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

jaggernatAuthor Commented:
whats strange is the three links are pointing to three different jsp pages(which is how its supposed to work) ,but once the crystal report is opened in a window it overrides every other window when something is clicked.

so i think it need to be released from memory or something

Mayank SAssociate Director - Product EngineeringCommented:
You should make sure you close it in finally blocks.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mayank SAssociate Director - Product EngineeringCommented:
Glad to help. Why the B-grade?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.