suppose there's a bean file (.java) consisting of SQL query, and a servlet (.java) used to show an image, and lastly a jsp page when clicked shows the image.............can you please explain how does this function,how the logic flows,what happens step by step.......... I really need to understand this, thankz.

moved

What EXACTLY don't you understand?
You already have the program flow, all you have to do is figure out what happens during each step.
And we're not here to write your homework papers for you, so we're not going to write that all out for you to copy and turn in as your own.
It's all well explained in openly available sources, so you should have no problem figuring it all out with a bit of effort.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.