Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Originally posted by Paul Clapham:
Would it work to change your servlet so that it requires POST requests?
Originally posted by joseph corner:
Hi Bear,
Yes, the distinction is made between GET and POST, so passing the variable on the end of the url doesn't work.
D Rog, I didn't understand your solution. I have found examples of sending POST requests from JAVA and handling the return, but (perhaps I'm confused here) I actually want to direct the user to the page expecting the POST request.
Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
You can use relative references, but you or somebody else here teached me to put
why aren't you still satisfied?
Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Originally posted by D Rog:
I know you are trying to tell it isn't a trivial task, however it's quite possible.
First, why are you sure that PHP doesn't use <BASE HREF> already?
Second, you can add <BASE HREF> in response taken from PHP.
Originally posted by joseph corner:
Hi,
I have a servlet which uses a requestdespatcher to forward the user to various pages according to the action they have chosen in a webapp.
In one case I want to forward them to the login page of a php blog software package. I want to fill the username field on the login page with their username, which I have in the servlet.
I can see how to do this - I need to pass the username as a [_POST] variable for the php page to read. I can do this from an html web form, but how do I do it from a java servlet?
Originally posted by Bear Bibeault:
That will not help in the least. The response created after the PHP is submitted has nothing to do with how the browser will interpret the URLs within the PHP page.
I'm sorry that my pointing out the problems with your scheme strikes you as unfriendly; but that doesn't change its non-viability.
The only way that such a scheme would work was if the PHP page was changable. And in that case, then it could be re-written to remove to POST problem to begin with and none of this would be germaine.
Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
The glass is neither half full or half empty. It is too big. But this tiny ad is just right:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|