Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Servlets and the fly likes Passing parameters from Servlet to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Passing parameters from Servlet to JSP " Watch "Passing parameters from Servlet to JSP " New topic

Passing parameters from Servlet to JSP

krisy krisy

Joined: Apr 07, 2005
Posts: 4
How to Pass the parameters from Servlet to JSP..

krishna chaitanya
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Bind the object to either request, session, or context scope, forward to the JSP and have the JSP look for the object in the proper scope.

If you want an example of this, get SimpleMVC from

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

"krisy krisy"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it


Thanks! and welcome to the JavaRanch!


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Passing parameters from Servlet to JSP
It's not a secret anymore!