Re: newbie alert: forward to a php script

2007-04-18 Thread Chris Pat
Hi Laurie Thank you for continuing to help my naivete. I saw two problems: one I didnt know how to format and send a forward out of the struts framework, two the response will only come back on the port and without any context so I cant direct it to an Action(possibly even the same as the

Re: newbie alert: forward to a php script

2007-04-18 Thread Laurie Harper
I'm not really clear on what you're trying to achieve, but it sounds like you just need to read the HTTP response from the request you make through HttpClient. Since you're making that request from your action and, therefore, will have the response available there too, you don't need to

Re: newbie alert: forward to a php script

2007-04-17 Thread Chris Pat
Hello Sorry for the persistence/naivete of this, however can someone tell me if this is possible and how? It will be a learning experience for me and I appreciate any insight. Chris Pat [EMAIL PROTECTED] wrote: Hi Laurie Thanks. All I need is to send a HTTP Post request to the php script

Re: newbie alert: forward to a php script

2007-04-17 Thread Information Guzzler
Hi Chris, HttpClient would be an alternative to generate HTTP POST request. For info. refer http://jakarta.apache.org/commons/httpclient/ /I On 4/17/07, Chris Pat [EMAIL PROTECTED] wrote: Hello Sorry for the persistence/naivete of this, however can someone tell me if this is possible and

Re: newbie alert: forward to a php script

2007-04-17 Thread Chris Pat
Hi IG That looks like the object. Thanks. Information Guzzler [EMAIL PROTECTED] wrote: Hi Chris, HttpClient would be an alternative to generate HTTP POST request. For info. refer http://jakarta.apache.org/commons/httpclient/ /I On 4/17/07, Chris Pat wrote: Hello Sorry for the

Re: newbie alert: forward to a php script

2007-04-17 Thread Laurie Harper
I'm still not clear why you need the PHP script at all; why not call out to the remote server directly from your Java webapp? That would seem to be a simpler route. However, if you really do need the PHP script in there something like HttpClient, as suggested by another poster, would probably

Re: newbie alert: forward to a php script

2007-04-16 Thread Laurie Harper
Chris Pat wrote: Hello Is it possible to have an Action that processes some data and then posts to a url completely out of control of the framework? I want to process and write to a db first and then using the same parameters and any added session variables post to a php script, initially

Re: newbie alert: forward to a php script

2007-04-16 Thread Chris Pat
Hi Laurie Thanks. All I need is to send a HTTP Post request to the php script with the parameters that the Action received, but having done some processing in the Action. At this point I dont care if the client sees the results of the php output. I dont see how to generate something like a