Richard,

Wthttp is well suited to serve static HTML pages, you don't even have
to abuse it. Files will be served from the 'docroot' directory, i.e.
the directory that you provide with the '--docroot=/opt/myapp/docroot'
command line parameter. All files inside this directory will be
statically served by Wt. http://foobar/blah will correspond to
/opt/myapp/docroot/blah.

Regards,
Wim.

2009/10/9 Richard Ulrich <[email protected]>:
> Hi Zhimin,
>
> I looked at your code, and adapted it to my problem.
> It works with InternetExplorer, but Firefox and Chrome refuse to render
> a local "file://..." page inside a page that was received through http
> from witty.
>
> So, is installing a webserver to serve these few static html files
> really the only solution, or is there something internal in witty?
> I also experimented with WFileResource, but that would break the
> relative links.
> Can the WtHttp be abused to server static html pages?
>
> Rgds
> Richard
>
> On Fri, 2009-10-09 at 13:01 +0800, Zhimin Song wrote:
>> hi, Richard:
>>
>>         I don't know if WText("<iframe ...   is a viable approach, but
>>         I hope
>>         for something more straight.
>>
>>
>>
>> sure, it works, you can see my app sample in OneSite class of CxServer
>> (download from  sf).
>> Regards
>> zhimin
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to