tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Sushkin <>
Subject Re: frustrated trying to pass parameters into jsp to create jnlp
Date Wed, 12 Sep 2007 20:41:48 GMT
On Wednesday 12 September 2007 16:03, Eric J Kaplan wrote: 

> Hi
> I am using Java Web Start with Tomcat 6 and have been banging my head
> against a wall all day. I don't think the issue is necessarily a Web
> Start issue but rather an issue with jsp and processing of parameters.

The following style worked for me for quite a while.

 xmlns:c="" version="1.2">
        String requestPath = request.getRequestURL().toString();
        requestPath = 
           (requestPath == null) 
           ? "" 
           : requestPath.substring(0, requestPath.lastIndexOf('/'));
        response.setHeader("Cache-Control", "public");
  <jsp:element name="jnlp">
    <jsp:attribute name="spec">1.0+</jsp:attribute>
    <jsp:attribute name="codebase">
      <argument><c:out value="${param.arg1}"/></argument>

Nicholas Sushkin, Senior Software Engineer

View raw message