[Gambas-user] Use gb.web.form in a web project with not only web forms
Tobias Boege
taboege at ...626...
Mon Aug 8 21:25:12 CEST 2016
On Mon, 08 Aug 2016, Benoît Minisini wrote:
> Le 26/07/2016 18:26, Tobias Boege a écrit :
> > Hi Benoit,
> >
> > I have some projects using gb.web.form now and in every of these I have the
> > requirement not only to load webforms but also a webpage or to implement
> > some other URL schema to generate or serve a ressource.
> >
> > As I see it, gb.web.form wants to take complete control over the project's
> > Main() routine (correct me if I'm wrong here), whereas my projects require
> > some analysis of the request path in their Main() such as:
> >
> > [snip]
> >
> > I have to serve data from a preconfigured server directory, generate some
> > data on-the-fly, send project-internal data or serve webforms. As you may
> > be able to tell, the Default case handles gb.web.form integration into the
> > control flow and it's not pretty.
> >
> > Do you have any idea?
> >
> > Regards,
> > Tobi
> >
>
> Yes, the idea of gb.web.form requires taking entire control of the URL
> at the moment.
>
> Maybe adding a call to a "HandleRequest" (or another name) public method
> during the Main function would be enough for you?
>
That would suffice, I presume.
Regards,
Tobi
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list