ask for help about the MIME type.

Submitted by taoying2008 on Mon, 2007-10-15 20:00.Troubleshooting

hello everyone, i'm new to DBSight.
I chose the XML template to return the search results, but when i tried to deal with the returned XML object, i found the MIME type of the response object was text/html instead of text/xml, can anyone tell me the reason and how to fix it?
thank very much~

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Submitted by will on Mon, 2007-10-15 22:51.

just add this line in the front of the generated main.vm

 #set($_dumy = $response.setContentType( "text/xml" ) )

Basically you can call the same java servlet objects like request, response, by $request, $response.

Submitted by will on Mon, 2007-10-15 23:08.

Seems a generic requirement, and we just simply added this line to DBSight also. So if you see this post, new downloads for the beta release, or official releases for 1.4.8 or later, should not worry about this any more.