This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
In an effort to help you get the most from our forums, we've compiled a list of tips for asking questions here. You can find the list in our FAQ section here. In particular please see: UseAMeaningfulSubjectLine
"Help me please" tells us nothing about the nature of your question.
Again, welcome to JavaRanch and good luck with your question. -Ben [ August 02, 2006: Message edited by: Ben Souther ]
May be you would have checked this, but I dont see any link or forwarding to the other servlet from IndexServlet. One thing is you can include that in the action tag in the form.
What is the servlet-mapping for your LoginServlet. You just can't reference your servlet by using the servlet name. You need to use the servlet-mapping.
Post your web.xml
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Arun Somasundaram
Ranch Hand
Joined: Jul 25, 2006
Posts: 63
posted
0
Don't worry Here is the code for IndexServlet
and here is the code for LoginServlet
Add the following snippet to your web applications web.xml:
Try this and your browser will surely display the Username and Password submitted by you. [ August 03, 2006: Message edited by: Arun Somasundaram ]
Arun.V.Somasundaram
Ram Kas
Ranch Hand
Joined: Jul 26, 2006
Posts: 81
posted
0
I don't have web.xml at all. Even then it is working fine after altering the following snippet
Originally posted by rauhl roy: [CODE] I have one question if it works fine. Can we use servelet name from web browser to get the output, without using web.xml??
In older versions of the more popular servlet containers you could do this. This turned out to be a bad idea for a host of different reasons and the capability has been pulled back. So, in newer versions, the answer is no. With Tomcat, this was done with the "InvokerServlet". To learn more about the InvokerServlet, read: http://faq.javaranch.com/view?InvokerServlet
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.