Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet class in Jsp  RSS feed

 
rejieve alexander
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Could someone tell me ,how to and where to include a
servlet class in Jsp,how to call a method from a servlet
class and how to get an output from a servlewt class if
the code is in the post method .Is bean and a servlet class the same?eg:if i use<jsp:usebean id = "help" class ="Servletclass.class" is this the same as including u'r servletclass..
Plz help
 
ray bond
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to include servlet in jsp declare it like ,
<%!ServletClass servletclass;%>
and you can create instance of the servlet class to use its method
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!