sevlet

Ads
 

sevlet

View Answers

October 23, 2008 at 11:22 AM

Hi friend,


Your code having error in "web.xml" .
Correct the code and AboutUs

In Servlet "AboutUs.java" having action "Aboutus"

res.sendRedirect("Aboutus");


In web.xml <url-pattern> "/AboutUs"

<servlet>
<servlet-name> aboutus </servlet-name>
<servlet-class> AboutUs </servlet-class>
</servlet>


<servlet-mapping>
<servlet-name> aboutus </servlet-name>
<url-pattern> /AboutUs </url-pattern>
</servlet-mapping>

action and url-pattern not matching then mapping of action

with same action then "AboutUs.java" call.

For more information on Servlet visit to :

http://www.roseindia.net/servlets

Thanks




Ads









Related Tutorials/Questions & Answers:
jsp -sevlet connecting to database using dropdown
jsp -sevlet connecting to database using dropdown  How can I get my dropdown list from oracle database and then submit it to another table in JSP. I am thinking of a form that links to a servlet and the servlet connects
java sevlet
Advertisements
Cart Quantity
Cart Quantity  How to increase and decrease quantity from a cart using session in jsp and sevlet
Deployment on Server that can be used simultaneously by more than one user
Deployment on Server that can be used simultaneously by more than one user  Sir, I have deployed my web application developed using JSP & sevlet. how could i access it on the network using xp os. I have deployed it on Tomcat
username and password in servlet
username and password in servlet  i'm usng eclipse luna(java programming) Sevlet and apache tomcat8.0 i need to do a login page then after login it must display either invalid user or valid user here is what i done for login
Java Servlet - JSP-Servlet
Java Servlet   Hello Sir Could you help me in understanding directory Structure for servlet page in eclipse (IDE). I save my Sevlet in WEB-INF but it is not displaying, it is displaying code of servlet. Process used
servlets
for service. Servlet creates seperate threads for each request. The sevlet
email verification in e commerce application
to the checkout page.The code should be written in sevlet using session bean. I have
email verification in e commerce application
to the checkout page.The code should be written in sevlet using session bean. I have
Session Tracking Servlet Example
;Sevlet Session Example</h2>"); if(count==0 || count==1
Servlet hello world example
;<html>"); pw.println("<head><title>Sevlet Hello
request.setAttribute
. In the Sevlet example I will use the HttpServletRequest reference to set the attribute
request.getParameter
will use JSP. In the Sevlet example I will use the HttpServletRequest reference

Ads