yes i know.
The web.xml is full of it. But i want to read it in for myself
So that i can look up the mine-type for any extention i have.
Setting in the web.xml doesn't help me.

all of our Resources are static. And we are sending out the contenttype and contentlengt.
For images this goes fine because the URLHandler has those in its map
but for CSS or JS files it returns unknown or null.
So for those files/resources the url doesn't return anything usefull and i want to lookup the content type based on the url's file extention. But as far as i see now i have to build the map myself But i don't want to do that and maintain that because it's all already defined in the default web.xml file....

johan


Jan Bares wrote:
mime-mapping was part of servlet API 2.3 too.

Jan

"Juergen Donnerstag"
<[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
That is what I found (Google). I know I'vw written something about in
our Wiki (where I do not get access to right now). Unfortunately I
don't remember the details. Might be that it is servlet spec 2.4 only

web.xml
<mime-mapping>
 <extension>wml</extension>
 <mime-type>text/vnd.wap.wml</mime-type>
</mime-mapping>

Juergen


On 8/4/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
Does anybody know if you can access or ask something of the
webcontainer/context to give me the right content type for a specific
extentions
that is specified in the web.xml?

Because .css and .js are in the web.xml. So for every content/unknown
that i get i want to query something to get the right content type
But i have no idea how to access that info of the web.xml file.



SourceForge.net wrote:
Bugs item #1251710, was opened at 2005-08-04 09:19
Message generated for change (Tracker Item Submitted) made by Item
Submitter
You can respond by visiting:

https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1251710&group_id=119783
Please note that this message will contain a full copy of the comment
thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Herkule9s (herkule9s)
Assigned to: Nobody/Anonymous (nobody)
Summary: Conent type of static resources is content/unknown

Initial Comment:
The content type of *.css should be test/css, but it
seems that the problem applies to all static content (*.js
for example).
Steps to reproduce: run forminput example and look into
Firefox Javascript console. When the browser is in
stnards compliant mode, it will refuse to use the CSS
file, in quirks mode it issues only warning.
It seems that UrlResourceStream is always initalized to
contentType="content/unknown", at least for *.js and
*.css resources.

----------------------------------------------------------------------

You can respond by visiting:

https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1251710&group_id=119783
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to