This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 23890 - Unclear behavior of Content Language property for servlets
Summary: Unclear behavior of Content Language property for servlets
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on: 31856
Blocks:
  Show dependency tree
 
Reported: 2002-05-23 11:08 UTC by Alexei Mokeev
Modified: 2004-08-13 12:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexei Mokeev 2002-05-23 11:08:19 UTC
Open properties for some servlet, switch to Execution tab.
By default Content Language property is set to text/html
In help, in "Setting Servlet Properties" article written:
"Content Language. This property requires no argument 
in the case of a servlet."
So, remove value of this property and try to execute servlet:
Servlet not executed and Warning window: "There is no browser for 
MIME type ."
Or for example you have servlet, that generates 
images (response.setContentType("image/gif" is set.);
If this property is set to text/html, then servlet works well.
If you'll try to set Content Type property to image/gif,
then warning message "There is no browser for 
MIME type image/gif." appears and nothing more.

How I can configure browser for mime types ?

The role of this property must be clarified.

Well reproduced with FFJ4.0 RC5 under Win2K
Comment 1 Marek Grummich 2002-07-22 12:05:10 UTC
Set target milestone to TBD
Comment 2 Marek Grummich 2002-07-22 12:11:41 UTC
Set target milestone to TBD
Comment 3 capSS 2004-02-04 13:52:45 UTC
There is no warnings or exceptions when you execute servlet with any 
value of Content-Language propety from current trunk on WinXP.

But http response content-type header have no connection to this 
servlet property.

So this property seems unusable.

You can see the same issue for JSP: 39315

Priority probably should be raised to P3 as for 39315
Comment 4 Petr Jiricka 2004-07-26 18:48:02 UTC
The property in question does not exist any more - marking as fixed.