on 2004 Jan 05 6:18 PM
Hello,
Is it possible to have an external web-page to "post" something on a MVC page?
I would like to have some fields dynamically prefilled from an external page when on that page a button is pressed and my MVC page is called.
It works with a BSP-page with flow logic, but I want to use a MVC-page.
Best regards,
Jacco
Jacco:
Easiest way to do this is to define a global attribute in your controller class, and set the value in the do_request() method (or wherever else is appropriate). Then you can transfer the global attribute value to the specific page attribute that relates to your field.
Regards,
D.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Dorian,
The problem was how to fill this global attribute when you come from an external page that fills fields on your page with POST.
I solved it with putting a page-with-flow-logic inbetween. I can POST fields on this page and then fill my global controller attributes with these fields in the OnInitialization event.
In the body of this page I call my MVC page with <bsp:call url="main.do" /> that then calls sub controllers where I now have my fields available as global attributes.
User | Count |
---|---|
73 | |
10 | |
9 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.