[En-Nut-Discussion] Sending dynamic HTML data to a JAVA applet
Thiago A. Corrêa
thiago.correa at gmail.com
Mon Oct 24 20:55:18 CEST 2005
Hi,
From what you said I guess the applet will plot something out of
the data it fetches from the static html file. Well, there is no
difference in there, just change the URL on the applet code or params
to the url you register to the NutRegisterCgi call.
As far as ethernut knows, your java files are just files that it
serves, no different than, say, a flash or image file. The applet
itself would have to open a socket connection to fetch the URL on the
server it came from. When the httpd thread calls NutHttpProcessRequest
it will internally handle the sending of the static data on the
filesystem or call the cgi function you registered if the URL matches.
Hope this helps.
Regards,
Thiago A. Corrêa
On 10/24/05, Ernst Stippl <ernst at stippl.org> wrote:
> Hi!
>
> I took the HTTPD example app and modified the "sample" directory to include
> an (example) .html and a JAVA .class file. Created a new UROM and compiled
> it together with httpserv.c
>
> Now I am able to execute the JAVA applet (which creates and displays a
> line-chart), which gets its data fed from the STATICALLY html web page.
> (comiled into urom)
>
> I want to dynamically create the data which will be fed to the JAVA applet.
> My understanding is that I need a registered cgi function to be able to
> create the HTML data stream dynamically.
> But how do I combine the sending of the JAVA .class file (which resided in
> the urom file system) AND the dynamic creation of the HTML data stream?
>
> Looking at the source of /pro/httpd.c I think I must combine parts of
> "NutHttpProcessFileRequest" and "NutCgiProcessRequest".
>
> Any experiences?
>
> Thanks & Regards
> Ernst
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
More information about the En-Nut-Discussion
mailing list