Dossani, Yes, it is possible to invoke methods in a servlet class from a jsp page. You need to import the servlet's class if it is in a package. What method do you want to invoke? You shouldn't invoke any of the methods defined by the HttpServlet interface. You would treat the servlet just like any other class whose method's you want to invoke. You would need to create an instance of the class unless the method is static. This would all be done in a scriptlet.
Now just because you can do it, doesn't mean you should. A better approach would be to put the method in its own class which would then be imported and instantiated by the servlet or JSP as a bean. Regards, Richard At 05:08 PM 6/26/2002 -0600, you wrote: >hello, >is it possible to invoke methods in a servlet class from a jsp page ? >thanks for your help. > >___________________________________________________________________________ >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff SERVLET-INTEREST". > >Archives: http://archives.java.sun.com/archives/servlet-interest.html >Resources: http://java.sun.com/products/servlet/external-resources.html >LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
