Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet wrapper

 
Ahmed Eid Faid
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
i have a .jar file contaning the source code of tow servlets the jar contaning the binary code of the servlet the servlets containing methods other than doGet and doPost and the calling chaining depands on some parameters sent to the servlet's doGet and doPost in XML format according to the servlet documentation the problem is that i want to make use of these servlets in my own application
so how can i invoke these servlets some said to put the jar in a .war file and invoke it as an wrapper but how can i do that ?
please aim waiting for suggestion
tnx
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To use the servlets , you do not have to write wrappers.You can straight away use those.

Create a web application template and put the jar containing the servlet binaries onto the WB-INF/lib.Create a mapping for the servlets that you want to use in web.xml and put the file (web.xml) in WEB-INF.
Deploy the application and hit the URL to which you have configured the servlets.

Now send the required request XML to the servlet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!