on 03-01-2011 11:09 PM
Hi Everyone,
I need to include the !DOCTYPE sentence at the top of an iView output in order for customer's CSS to work correctly in IE. Has anyone accomplished this?
Best regards,
Andrés Acero
I just wrote the sentence to the servlet response in the doContent method like this:
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
{
try {
request.getServletResponse(false).getWriter().write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
} catch (IOException e) {
e.printStackTrace();
}
....
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.