• Post Reply Bookmark Topic Watch Topic
  • New Topic

Running Servlets in WebLogic6.1  RSS feed

 
Doshi Milan
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
I am using WebLogic6.1. I am creating new servlets and storing the same in the myDomain\Applications\DefaultwebApp\web-inf\classes.
Am I supposed to register every entry of the servlet in the web.xml.
I am unable to run them . Canm someone please guide me what should I do?
Thanks in advance,
Milan Doshi
 
Riaz Mohamed
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
yes u gotto register u'r servlets . if u have a servlet under web-inf/classes then u gotto make the following changes to u'r web.xml file
Here is an example of how u have to reister if u have a HelloWorldServlet
<servlet>
<servlet-name>
HelloWorldServlet
</servlet-name>
<servlet-class>
HelloWorldServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
HelloWorldServlet
</servlet-name>
<url-pattern>
servlets/HelloWorldServlet
</url-pattern>
</servlet-mapping>
regards
riaz
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!