Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Eric Sweeney

Greenhorn
+ Follow
since Dec 16, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Eric Sweeney

I have a JSP page running from an IE browser that open Java Web Start and downloads JNLP page. The code used is: response.setContentType("application/x-java-jnlp-file");
The problem I am having is that the JSP page caches itself in the Temporary Internet File (TIF)Directory on the user machines. On some machines (25%), the file will return an "Unable to Launch Application" error, due to some corruption in the Users TIF directory. The obvious solution is to delete the temporary internet file directory, but since we have a large user base, this is not a good solution.
I have added the following code to my header:
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.addHeader("Cache-Control","no-cache");
response.setHeader("Pragma", "no-cache"); //HTTP 1.0
response.setIntHeader ("Expires", -1); //prevents caching at the proxy server
response.addHeader("cache-Control", "no-cache"); //IE5.x only;
which doesn't cache to the TIF directory, but I get this error when trying to launch the page (http page, not a https page):
"Internet Explorer is unable to launch <jsp page> from <web-server>."
Which I believe is being caused by the "application/x-java-jnlp-file"..
Does anyone have a solution where I can launch this JSP page and not cache to the IE browser?
Thanks,
Eric
14 years ago
Hello all,
I have a JSP page running from an IE browser that open Java Web Start and downloads JNLP page. The code used is: response.setContentType("application/x-java-jnlp-file");
The problem I am having is that the JSP page caches itself in the Temporary Internet File (TIF)Directory on the user machines. On some machines (25%), the file will return an "Unable to Launch Application" error, due to some corruption in the Users TIF directory. The obvious solution is to delete the temporary internet file directory, but since we have a large user base, this is not a good solution.
I have added the following code to my header:
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.addHeader("Cache-Control","no-cache");
response.setHeader("Pragma", "no-cache"); //HTTP 1.0
response.setIntHeader ("Expires", -1); //prevents caching at the proxy server
response.addHeader("cache-Control", "no-cache"); //IE5.x only;
which doesn't cache to the TIF directory, but I get this error when trying to launch the page (http page, not a https page):
"Internet Explorer is unable to launch <jsp page> from <web-server>."
Which I believe is being caused by the "application/x-java-jnlp-file"..
Does anyone have a solution where I can launch this JSP page and not cache to the IE browser?
Thanks,
Eric
14 years ago
JSP
Thanks for the response Eric,
So there is no way to bind:
"<input type="hidden" name="field1" value='<extn_doc_print:getElement bob="loginUser" name="userLogin"/>'>"
to a variable to use in an JSP 'IF' statement, even if both are in JSP and not in Javascript?
Thanks
Eric,
The Javascript variable is only a test I added for a javascript function I created, Not part of this problem. The code is only a snippet of the total JSP page.
I want the IF statement to compare the <field1> name value on the '<input type' statement to <field2> name value of the '<input type' statement, and if they are equal, do the <jsp:include page="/docApprove.jsp" flush="true"/> statement.
Can I do that?
Thanks
posted December 16, 2003 10:09 AM
--------------------------------------------------------------------------------
Hello everyone,
I am pretty new to JSP and Javascript, and I am trying to modify a delivered JSP page.
Is there anyway to get this to work:
<input type="hidden" name="field1" value='<extn_doc_print:getElement bob="loginUser" name="userLogin"/>'>
<input type="hidden" name="field2" value='<extn_doc_print:getElement bob="docCreator" name="userLogin"/>'>
<input type="hidden" name="field3" value='<extn_doc_print:getElement bob="docCreator" name="userLogin"/>'>

<script language="javascript">
alert(displayappl());
</script>
<%

if (('<extn_doc_print:getElement bob="loginUser" name="userLogin"/>' )== '<extn_doc_print:getElement bob="docCreator" name="userLogin"/>') { %>
<jsp:include page="/docApprove.jsp" flush="true"/>
<% } %>
Hello everyone,
I am pretty new to JSP and Javascript, and I am trying to modify a delivered JSP page.
Is there anyway to get this to work:
<input type="hidden" name="field1" value='<extn_doc_print:getElement bob="loginUser" name="userLogin"/>'>
<input type="hidden" name="field2" value='<extn_doc_print:getElement bob="docCreator" name="userLogin"/>'>
<input type="hidden" name="field3" value='<extn_doc_print:getElement bob="docCreator" name="userLogin"/>'>

<script language="javascript">
alert(displayappl());
</script>
<%

if (('<extn_doc_print:getElement bob="loginUser" name="userLogin"/>' )== '<extn_doc_print:getElement bob="docCreator" name="userLogin"/>') { %>

<jsp:include page="/docApprove.jsp" flush="true"/>
<% } %>

Any help will be appreciated.