This week's book giveaway is in the Open Source forum.
We're giving away four copies of RabbitMQ in Depth and have Gavin Roy on-line!
See this thread for details.
The moose likes Servlets and the fly likes Can we convert a Servlet into a Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can we convert a Servlet into a Bean" Watch "Can we convert a Servlet into a Bean" New topic

Can we convert a Servlet into a Bean

Amit Roy
Ranch Hand

Joined: Oct 10, 2000
Posts: 132
Is there any way in which we can convert a servlet into a Javabean so that it can be used with a JSP page Eg is there a way in which i can convert a File Upload servlet into a Bean

<I>Chance Favours the Prepared minds"</I>
Shama Khan
Ranch Hand

Joined: Aug 14, 2000
Posts: 185
Well, usually we write information from a servlet into a bean. And access the bean from the jsp. I hope that helps.

Max Rahder
Ranch Hand

Joined: Nov 06, 2000
Posts: 177
If you have a servlet and want to use its output in a JSP you would probably want to include the servlet output directly in the JSP rather than convert the servlet to a bean. See the syntax for "<jsp:include " for details.
I agree. Here's the link:
subject: Can we convert a Servlet into a Bean