Jim Theodoridis wrote:
In a normal HTTP request/response, the agent sends a request for a document and then *renders* what ever comes back in the response body, expecting it to be the document.Erik Weber wrote:
I want to sent a message with mobile phone to a MO number then the providor sents that message to my URL as parameters
Jim Theodoridis wrote:
Sorry it is a new message
In an action i am having the following path = "....."; a.setRedirect(true); a.setPath(path.toString()); ..........
at the path assing a URL as http://www.yahoo.com or http://www.google.com
I want my action to access some informations from a database using a parameter for example text
http://www.myportal.com/myaction.do?text=jim
and then to pass that informations to the URL When i test my application with a browser everything works fine
If I want someone to sent some informations to my action for example
http://www.myportal.com/myaction.do?text=jim
and then myaction using the parameter text to access a database and retrive some informations
and then to post those informations to a URL as assigned to variable path it doesnot work.
The redirect works only with a browser?
What other agent are you using besides a browser? Perhaps it doesn't understand how to follow a redirect response?
Erik
My action takes some information from a database according to parameters and then sents those informations to another URL of the providor to sent the information back to mobile phone.
When a redirect response is sent back to the agent, however, it has to be smart enough to understand that the response body does not contain the document but rather contains further instructions on how to obtain the document. If the agent doesn't understand how to interpret a redirect response, it might simply try to render the redirect response, thinking that the response body contains the document. The response body is going to be empty, however, so the agent will probably just render a blank screen.
Not sure if that's the problem but I just wanted to make sure you were aware of that.
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]