Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Content Type problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Content Type problem" Watch "Content Type problem" New topic
Author

Content Type problem

Steven Martin
Greenhorn

Joined: Dec 03, 2001
Posts: 25
We're using Websphere 6.2 and the standard security mechanism. For some reason the content type is being assigned as XML instead of html/text for the login error jsp. Accessed directly it's fine. This is the error we get in IE:

Use of default namespace declaration attribute in DTD not supported.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Are you explicitly setting the content type in that page?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Steven Martin
Greenhorn

Joined: Dec 03, 2001
Posts: 25
The JSP does but it's not being taken. It looks that prior to the JSP being included the content type is being set.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

This is starting to look like a Websphere specific issue.
Would you like this thread moved to the Websphere forum?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Content Type problem
 
Similar Threads
doPut method
mail with imges
Error?
JBoss-portal server
WSAD looking up a datasource from WAS 3.5