Hi All,
I'm using model 2 architecture, i.e. request comes to servlet, servlet does
the process and creates the bean and forwards it to JSP. Finally, jsp sends
the response to the client.
But, I've a question about the content-type. My bean, should set the
content-type on jsp and I don't want jsp to set the default content-type.
I'm doing something like this:
<%@ page language="java" %>
<jsp:useBean id="controller" scope="request"
class="apps.test.LoginController" ></jsp:useBean>
<% response.setContentType("text/html;charset=" + controller.getCharset());
%>
But, looks like jsp is ignoring the content-type set by me because jsp by
itself sets the default content-type as I didn't provide any contentType
parameter with "<%@ page " tag.
Do you've any idea, how to overcome this situation??
Thanks,
-Ratnakar