Solved

Form with Post method not working whereas Form with Get method working

Posted on 2013-01-25
2
183 Views
Last Modified: 2013-01-25
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form method="post" action="xmlServletPath">
<input name="userName"/>
<input type="submit"/>
</form>
</body>
</html>


above form with Post method is not working. 

But below  form with Get method is working fine. 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form method="get" action="xmlServletPath">
<input name="userName"/>
<input type="submit"/>
</form>
</body>
</html>

Open in new window

please advise.
Any links resources, sample code, ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 250 total points
ID: 38819982
Do you have a doPost function in your xmlServletPath class?
http://www.jguru.com/faq/view.jsp?EID=34956
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 38819986
Make sure doPost is implemented by the servlet
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML5 storage and web apps 11 53
Java Inheritance super keyword use 8 40
Regular Expression needed 4 18
CSS question 4 28
Find out what you should include to make the best professional email signature for your organization.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question