cancel
Showing results for 
Search instead for 
Did you mean: 

[Resolved] Java-backed Webscript GET/POST

christophes
Champ in-the-making
Champ in-the-making
Hi,

I'm realising a Java-backed WebScript GET/POST. I have already coded the GET part and I'd like to know how to get in POST the values introduced in the HTML form displayed by the GET. Is it always necessary to extend the same class (DeclarativeWebScript) or another? Which method must I use to get parameters from the form?

Thanks,

Christophe
2 REPLIES 2

rogier_oudshoor
Champ in-the-making
Champ in-the-making
Processing a POST webscript works exactly like processing the GET webscript, you use the exact same inherit class and the extact same Java calls to retrieve the parameters. However, you can not access binary parameters from multi-part posts due to a bug in the webscript code … which means that for file uploads, you may have to use a javascript controller.

christophes
Champ in-the-making
Champ in-the-making
Thanks a lot for your answer. In my case, I had a multi-part post but I think isn't necessary here.

Christophe