You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2003/05/06 06:34:21 UTC

DO NOT REPLY [Bug 19689] - res.setContentType(application/vnd.ms-excel)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19689>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19689

res.setContentType(application/vnd.ms-excel)

nathan@esha.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
            Summary|res.setContentType(applicati|res.setContentType(applicati
                   |on/vnd.ms-excel)            |on/vnd.ms-excel)



------- Additional Comments From nathan@esha.com  2003-05-06 04:34 -------
First off, when and how are you making that call?  You should be either setting
the default.contentType property in your velocity.properties or overriding
VelocityServlet's setContentType(request, response) method (if you want to
customize the content-type based on request params or whatnot).  If you are
making the res.setContentType() call in your template (as i suspect), then i
think that is too late according to the servlet spec (since velocity would have
already called getOutputStream)

Second, is there a reason you are still using the 1.0 release?  If nothing is
preventing you from doing so, you should upgrade to the 1.3.1 release.

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org