The servlet responds to both HTTP GET and HTTP POST requests. Therefore, the servlet derives from rwsf::HttpServlet and overrides the doGet() and doPost() functions of rwsf::HttpServlet. The header for the SessionExample servlet follows:
// SessionExample.h #include <rwsf/servlet/http/HttpServlet.h> #include <rwsf/servlet/http/HttpServletRequest.h> #include <rwsf/servlet/http/HttpServletResponse.h> class SessionExample : public rwsf::HttpServlet { public: virtual void doGet(rwsf::HttpServletRequest& request, rwsf::HttpServletResponse& response); virtual void doPost(rwsf::HttpServletRequest& request, rwsf::HttpServletResponse& response); };
©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.