This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes servlet aliases are not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "servlet aliases are not working" Watch "servlet aliases are not working" New topic

servlet aliases are not working

rohit aggarwal

Joined: Jul 11, 2001
Posts: 21
i am using j2ee server.
I created a servlet and a html file.I created a war file,defined aliases,deployed properly.
when i run the application,the html form gets open but when i submit the form "no page display" error comes.
i could not find it where i am wrong.
I am also not cleared how to deploy application if there are more than two servlets.
in my application there are two servlets ,one html file and 8 javabeans.
do i have to create as many war files as servlets or one war file including all servlets and bean classes.
if i create one war file then deployment tool demands only one servlet.
if i create different war files then how i could come to know which beans and html files should i add into which war file.
please clear this confusion.
with regards,
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi, you have to configure all your servlets in the same web.xml file(i.e as many as you want), but if they are in different war files youre gonna have one web.xml for each war file ex with 2 servlets:
How does I turn the html off to post this correctly(I�ts taking all my tags out)
[This message has been edited by Marcos Maia (edited July 24, 2001).]
[This message has been edited by Marcos Maia (edited July 24, 2001).]
[This message has been edited by Marcos Maia (edited July 24, 2001).]
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Marcos, you can use [ code ] and [ /code ] tags to get UBB to ignore your HTML. (leave out the spaces in the code tags.. I had to put them in , our else they'd disappear.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: servlet aliases are not working
It's not a secret anymore!