|
Re: POST request loosing data with incomplete URL: msg#00120java.enhydra.general
On Út, 2002-10-29 at 17:11, Terry Steichen wrote: > Petr, > > Not sure I fully understand what you're trying to do, but I use POST > operation in my application just fine. OK. Try to POST to an incomplete URL (to the main URL of your application). Example: <FORM ACTION="http://www.net-frame.com/YourEnhydraApplication/" METHOD="POST"> Note that the URL is incomplete - it should be "/YourEnhydraApplication/YourDefaultUrl.po". But Enhydra is able to redirect the request to the DefaultUrl automatically so we save a couple of chars and get a bit more flexibility. Unfortunately it loses the POST data during the internal redirection. > Here's a snippet of PO code I use to > handle getting the parameters when using POST operations: That's not relevant since Enhydra hides the difference between GET and POST parameters from the application programmer. > With regards to ServerPageRedirectException, I use them fairly extensively. > The only 'tricks' that I've found are (a) you can't change the Request, and > (b) you must usually pass the a modified path (set to, as I recall, the > value of your application root). I'll try to patch the Enhydra source then. Petr
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Cactus4Enhydra: New Documents., MIYACHI Yasuhiko |
|---|---|
| Next by Date: | Re: Aonyx and Catalina, busch |
| Previous by Thread: | Re: POST request loosing data with incomplete URL, Terry Steichen |
| Next by Thread: | Re: POST request loosing data with incomplete URL, Petr Stehlik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |