Hi All,
Is that possible to use Request and Response under same OnAction event in WebModule in
WebBroker?
I think so! But it never works if I using Request.ContentFields in one of the
OnAction event, and the request data is from a web page that was send from another
OnAction event with the same Delphi exe file.
The statements are show as follow:
procedure TWebModule1.WebModule1Item1Action(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
Response.Content := PageProducer1.Content;
end;
procedure TWebModule1.WebModule1Item2Action(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
Begin
//Checking ContentFields whether contains data or not,
//the data is returned from the web page in PageProducer1.Content
if Request.ContentFields.Count > 0 then
Response.SendRedirect(URL + '/delphi')
else
Response.SendRedirect(URL + '/java');
End;
After click Submit button in the web page (from PageProducer1.Content), the new page
never coming back. It looks like there is a loop.
Does anyone know why these not working?
Thanks at advance.
J.
___________________________________________________
Communicate with others using Lycos Mail for FREE!
http://mail.lycos.com
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/