All Examples  All WebLogic Enterprise Connectivity Examples This Package  

Class examples.wlec.servlets.simpapp.SimpappServlet

examples.wlec.servlets.simpapp.SimpappServlet

public class SimpappServlet
This example demonstrates how a WebLogic Servlet can connect to WebLogic Enterprise and invoke an operation on a CORBA object. It should be invoked from the Simpapp.html file.


Constructor Index

 o SimpappServlet()

Method Index

 o getServletInfo()
Basic servlet info.
 o init(ServletConfig)
Initializes the servlet.
 o service(HttpServletRequest, HttpServletResponse)
A simple implementation of the service method, in which we get the IOR for Simple object, invoke the tolower or toupper method (as requested by the user), construct a servlet page, and print the user string in uppercase or lowercase.

Constructors

 o SimpappServlet
 public SimpappServlet()

Methods

 o init
 public void init(ServletConfig config) throws ServletException
Initializes the servlet. Here, we get the Bootstrap object, the Factory Finder and the Simple factory during the startup.

Parameters:
config - Servlet configuration
Throws: ServletException
if the servlet fails
 o service
 public void service(HttpServletRequest req,
                     HttpServletResponse res) throws ServletException, IOException
A simple implementation of the service method, in which we get the IOR for Simple object, invoke the tolower or toupper method (as requested by the user), construct a servlet page, and print the user string in uppercase or lowercase. See the provided Simpapp.html for the HTML form used to submit the data.

 o getServletInfo
 public String getServletInfo()
Basic servlet info.


All Examples  All WebLogic Enterprise Connectivity Examples This Package