Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we convert a Servlet into a Bean

 
Amit Roy
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
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
 
Shama Khan
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, usually we write information from a servlet into a bean. And access the bean from the jsp. I hope that helps.
Shama
 
Max Rahder
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic