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 Android Security Essentials Live Lessons this week in the Android 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: http://aspose.com/file-tools
subject: Can we convert a Servlet into a Bean
Similar Threads
Returning the different type from the Servlet Filter
Convert Http request to https in servlet/jsp ?
WAS 4.0 MDB faker conversion to WAS 5.0
Convert struts' Action class into stateless session bean ?