Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alias of a servlet ?

 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I read that a server knows a servlet by the alias name.
On Allaire Jrun, How do I define alias for the servlet: Specifically,
1)If my servlet class file (Eg. HelloServlet.class) resides in this directory
c:\Program Files\Allaire\JRun\servers\default\default-app\web-inf\classes, then what should be my fully qualified servlet class name ? can servlet name and display name be the same ?
2)What should be my address in the web-browser for running this alias servlet ?
Currently, I run it with this address:
http://localhost:8100/servlet/HelloServlet
I can run with class name, but just don't know how to refer it with an alias name ?
Please help.
Thankyou,
Vishakha
 
Kiran Kumar
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the def-app directory there is a web.xml file which u have to edit to access ur servlet. like the following
servlet-name snoop
description snoop servlet
servlet-class SnoopServlet
servlet-mapping
servlet-name snoop
url-pattern /servlet/snoop2/*
servlet-mapping
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.
However JRun gives a GUI to make these changes and they are autimatically reflected in the xml.
I tried changing this xml file, and my default-server wouldn't start "error: exited abnormally, check event log file"
When I restored the xml to its original state, server started alright. Now, I'm back to square one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic