Thank you for prompt response Wim.
I sow --docroot option before, but it didn't work because I was using IE and
trying access CSS files which has some errors (for IE). And maybe there was
problem with backslash in path string. Anyhow now everything work perfectly.
I have two more questions:
how to define http header fields (ie. no-cache)?
and
does Wt support some kind of templates?
Regards,
marin.
"Wim Dumon" <[email protected]> wrote in message
news:[email protected]...
Hello Marin,
2009/7/8 Marin Lukovic <[email protected]>:
> Hello,
>
> I'm running wt inside Windows Service (using PJ Naughte's CNTService and
> boost::tread). Web server works fine, but I have problem with accessing
> resource files (images, CSS,
).
>
> Does anybody knows where and how I can set exact location for my resource
> files (i.e. folder where is my bin)?
>
Use the --docroot startup option to point to the directory that
contains your resources directory. The docroot startup option is the
root directory where wt serves static files from (images, css files,
favicon, ...). Additionally, you can set the name of the resources
folder (that is, if you want it to have a different name than
'resources') in the wt_config.xml file.
> When Im not running wt within win service, default location for resource
> files is folder where is project file. In case of running within win
> service, it seem there is no rule. Sometimes it loads resource from that
> location, sometimes not.
>
Your browser may cache these static files. Clear your cache if you
absolutely want the browser to reload them (shift-reload may also
work).
> The second problem is that when I finally successfully load CSS file,
> styles
> are correctly shown in Firefox, but not in Explorer.
>
Browsers have different opinions wrt how CSS should be rendered. Wt's
CSS files should be cross-browser compatible, but it is not clear from
your mail if you have problems with Wt's or with other CSS files. Can
you be more specific?
Regards,
Wim.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest