Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJWCD
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Component Certification (OCEJWCD)
about getMimeType(String File)
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
pw.println(context.getMimeType("contextlistenr.java"));
Now this code sniplet returns me text/plain even though there is no file named contextlistenr.java ..... Can anyone explain this behaviour to me ??
Thanks
Paul Clapham
Marshal
Posts: 28193
95
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Well, it's simple. The content type just depends on the name of the file.
Sudarshan Sreenivasan
Ranch Hand
Posts: 188
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks .. Sorry i sent the same post thrice ... did it because i could not see the post in the topics list !! ... So i thought that it just has not gotten through.
Christophe Verré
Sheriff
Posts: 14691
16
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can remove threads yourself by clicking
on your post. This time, I've done it for you
[ September 07, 2007: Message edited by: Christophe Verre ]
[My Blog]
All roads lead to JavaRanch
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
core java communicates with servlet or jsp?
code for uploading file
a file in your Jar, How do I access it in code?
Error to execute an applet?
rtf2Text
More...