Changing content type on reload

View: New views
2 Messages — Rating Filter:   Alert me  

Changing content type on reload

by Dola Woolfe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Changing content type on reload

by Dola Woolfe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Just as a quick follow up, this works in Firefox, but not in IE.


--- On Thu, 7/17/08, Dola Woolfe <dolachin@...> wrote:

> From: Dola Woolfe <dolachin@...>
> Subject: Changing content type on reload
> To: "Tom Cat" <tomcat-user@...>
> 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@...
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail:
> users-help@...


     

---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price!