I constantly have problems pointing to a servlet from a jsp, so I know I'm missing something fundamental. Can someone help me understand? Here is my directory structure: webapps FamilyViolence WebApplication1 build generated web images jsp Shelter_CheckIn.jsp META-INF WEB-INF classes FamilyViolence bus ValidateChildren.class src FamilyViolence ValidateChildren.java
I want to go from my Shelter_CheckIn.jsp to the ValidateChildren.Class
And finally, how I'm attempting to get there in my jsp
<form name="intake" action="/ValidateChildren">
If anyone can help me not only fix the problem, but understand I would be greatly appreciative!
Thanks!
Sheldon Fernandes
Ranch Hand
Joined: Aug 18, 2004
Posts: 157
posted
0
Match the form's action to the servlet's URL pattern. <form name="intake" action="/servlet/ValidateChildren">
In order to invoke your servlet, the URL used must match the </url-pattern> defined in the </servlet-mapping>. All requests matching the URL pattern provided will be sent to the servlet.
Sheldon
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.