Hi all,
I have seen some of the queries on this. I still could not find the
reason why I am not able to get request parameters in Post.
Because, I need to write both StringPart and Objects using RequestEntities.
I have used the example given in the API,
PostMethod filePost = new PostMethod(url);
try{
Part[] parts = { new StringPart("sheetal", "sheetalPassword") };
filePost.setRequestEntity(
new MultipartRequestEntity( parts,
filePost.getParams()) );
HttpClient client = new HttpClient();
int status = client.executeMethod(filePost);
System.out.println("The status code is
"+client.executeMethod(filePost));
StatusCode returns properly, But When I get the parameter in JSP.
<% System.out.println(request.getParameter("sheetal"))%>
It will print null, Could anybody tell me what mistake I am making.
Thanks,
Sheetal
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.