How do I create an alias in Java Web Server?

sree mam

In javawebserver documentation you can find how to create alias.Here i am giving the same from Documentation.

To Add a Servlet Alias:

  • 1.In the Administration Tool, go to the Service->Manage->Setup->Servlet Aliases panel.
  • 2.Click Add.
  • 3.In the Alias field, type the URL path name you want to use to invoke the servlet.
  • 4.In the Serlvet Invoked field, type the name of the servlet that will be run in response to the alias.

    To specify arguments, type the name of the servlet followed by a ? then the arguments. Server redirects can be performed by providing arguments in this fashion to RedirectServlet. For example, you could alias /oldlocation to /RedirectServlet?http://www.newcompanyname.com/newinformation.)

    To specify a servlet chain, type the name of each servlet, separated by commas but no spaces (for example: finger,snoop,date). A servlet chain is two or more servlets linked together so that each servlet in the chain is called in succession by the previous servlet. All of the servlets in a servlet chain can be aliased to one alias name. When a request arrives for that alias, all the servlets in the chain will be invoked.

  • 5.Enter the name of the servlet.
  • 6.Click Save.
To Delete a Servlet Alias:

1.In the Administration Tool, go to the Service->Manage->Setup->Servlet Aliases panel.
2.Select the alias from the list.
3.Click Remove.
4.Click Save.

To Edit a Servlet Alias:


1.In the Administration Tool, go to the Service->Manage->Setup->Servlet Aliases panel.
2.Select an alias from the list.
3.Click Modify.
4.Remove the existing text and type new text, or append text to the existing information.
5.Press Return.
6.Click Save.


Note: To move to a new field, click that field.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact