Google Answers Logo
View Question
 
Q: Java function for accessing a PHP page that uses POST method ( No Answer,   2 Comments )
Question  
Subject: Java function for accessing a PHP page that uses POST method
Category: Computers > Programming
Asked by: naveen82-ga
List Price: $25.00
Posted: 25 May 2006 20:11 PDT
Expires: 13 Jun 2006 04:05 PDT
Question ID: 732471
I have a PHP page, Page1 built on web that uses POST method. I am
trying to write a JAVA function using Apache commons POST method.
There is one required field for the search word, a hidden field, the
submit button is of type image, which actually performs some JSP
function, which I dont see in the source code. (I send all these
through the java function and I get the result from page, Page2) I
need to see the result page when I send the query through the java
code. Can some one help me..to add what parameters in the java
function for method.addparameter("","") for the submit button? Because
I get only the static result page with no results when I dont send the
submit button(ie. of img type). I need to get access the result of
page2 . (When I write the same function for pages that use GET method
it works fine...) I am in kind of hurry..so any help regardign usage
of this would be of great help!
Answer  
There is no answer at this time.

Comments  
Subject: Re: Java function for accessing a PHP page that uses POST method
From: pik0-ga on 30 May 2006 16:14 PDT
 
Are Page1 and Page2 both php? Where does the JSP come in? Are you just
trying to capture the form contents and redisplay in Page2? Have you
considered doing it in Ajax form (form and results on same page)?

Piko
Subject: Re: Java function for accessing a PHP page that uses POST method
From: naveen82-ga on 11 Jun 2006 11:53 PDT
 
Page1 and Page 2 ae both php forms. And I have no control on them
except using them. I need to send the query strings to page2 directly
through my java code. The page1 has input strings which I am trying to
send through my program. But this is just accessing the static content
of the page.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy