Re: [Simpleweb-Support] Problem of trying simple
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2005-10-04 21:35:10
|
Hi Carfield,
--- Carfield Yim <car...@ca...> wrote:
> Nearly done, thx for support, still have some minor
> issue
>
> > You can create your own Mapper object to return
> the
> > name of your ActionService implementation. For
> > example:
> >
> After I do that, at the constructor, it complaint
> system is null, thus
> instead of
>
> core.Context temp =
> (core.Context)system.get("core");
> if(temp == null) {
> final File file = new
> File("WEB-INF/data/");
> temp = new
> core.Context(file);
> system.put("core",
> temp);
> }
> ctx = temp;
>
> At constructor, now I just use static variable to
> held core.Context
Not sure what your problem is here. But if it works
then great!
> The other problem is
> context.getMimeType(location.getName()) always
> return "application/octetstream" for unknown type,
> which is not very
> handle for me.
This is a requirement of the HTTP/1.1 specification.
Just edit simple/http/serve/Mime.properties to map
file extensions to types.
Niall
Niall Gallagher
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
|