AJAX :Servlet to handle POST

Posted on 2008-06-19
Last Modified: 2013-11-24
Hi can someone tell me servlet code to get parameter from a POST request done by AJAX. Please do not say to directly use request.getParameter() as it is not working.

A humble request is that plz new ppl without experience do not reply if u dont know and let the question escalated by EE to experienced experts
Question by:sam_coer
  • 3
  • 2
LVL 86

Expert Comment

ID: 21821267
Does request.getParameterNames() anything?
LVL 86

Accepted Solution

CEHJ earned 250 total points
ID: 21821273
Sorry, that of course should have been:

Does request.getParameterNames() return anything?
LVL 11

Assisted Solution

Manish earned 250 total points
ID: 21845239
How you are sending parameters using post?
Can you post that portion of code?
and request.getParameter code?
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.


Author Comment

ID: 22007852
Sorry for troubling experts.
The problem was there within the code in sending the request.
As few experts showed will to help, I am distributing points evenly

LVL 86

Expert Comment

ID: 22008091
LVL 11

Expert Comment

ID: 22013462

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what is the difference between "sudo su" and "su - root" 6 106
maven example error 3 52
maven project error 5 48
tomcat administrtor 12 29
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now