You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dola Woolfe <do...@yahoo.com> on 2008/07/18 04:51:00 UTC
Changing content type on reload
Hi,
I'm going to attempt asking a question by giving incomplete information but I am still hoping to get an answer. The complete story would be too cumbersome to describe.
Basically here's a snippet of my code:
<%@page errorPage="ErrorPage.jsp" contentType="application/x-java-jnlp-file"%>
<%@include file="InitializePage.jsp"%>
<%
if (user == null)
throw new servlets.Authentication.Exception("User is null");
else if (!user.belongsTo(1L)) {
throw new servlets.Authentication.Exception("Insufficient access");
}
%>
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.5+" codebase="http://<%= pmg.IOUtilities.gGetLocalIPAddress() %>/infoflow" >
<information>
<title>Info Flow System Application</title>
// ETC
WHen the exception is fielded by the error page, the user is presented with a login form and when he/she logs in, the page is reloaded (with javascript). The problem is that the xml code, rather than invoking jnlp, is displayed as if it were HTML and jnlp kicks in only when the user reloads. This is with IExplorer.
Anything I can do about this from the tomcat point of view?
Thanks much in advance!
Dola
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Changing content type on reload
Posted by Dola Woolfe <do...@yahoo.com>.
Just as a quick follow up, this works in Firefox, but not in IE.
--- On Thu, 7/17/08, Dola Woolfe <do...@yahoo.com> wrote:
> From: Dola Woolfe <do...@yahoo.com>
> Subject: Changing content type on reload
> To: "Tom Cat" <to...@jakarta.apache.org>
> Date: Thursday, July 17, 2008, 10:51 PM
> Hi,
>
> I'm going to attempt asking a question by giving
> incomplete information but I am still hoping to get an
> answer. The complete story would be too cumbersome to
> describe.
>
> Basically here's a snippet of my code:
>
> <%@page errorPage="ErrorPage.jsp"
> contentType="application/x-java-jnlp-file"%>
> <%@include file="InitializePage.jsp"%>
> <%
> if (user == null)
> throw new servlets.Authentication.Exception("User
> is null");
> else if (!user.belongsTo(1L)) {
> throw new
> servlets.Authentication.Exception("Insufficient
> access");
> }
> %>
>
> <?xml version="1.0"
> encoding="utf-8"?>
>
> <jnlp spec="1.5+" codebase="http://<%=
> pmg.IOUtilities.gGetLocalIPAddress() %>/infoflow"
> >
> <information>
> <title>Info Flow System Application</title>
>
>
> // ETC
>
> WHen the exception is fielded by the error page, the user
> is presented with a login form and when he/she logs in, the
> page is reloaded (with javascript). The problem is that the
> xml code, rather than invoking jnlp, is displayed as if it
> were HTML and jnlp kicks in only when the user reloads.
> This is with IExplorer.
>
> Anything I can do about this from the tomcat point of view?
>
> Thanks much in advance!
>
> Dola
>
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org