In my JSP
, I jave a jnlp
tag:
在我的JSP中,我jave了一个jnlp标签:
<jnlp spec="1.0+" codebase="%{jnlpCodebase}" >
In the action class, I do have a public String getJnlpCodebase()
. The method never gets invoked (I know because I debug) which other JSP variable methods from the struts
action do (but are not in the jnlp tag itself).
在action类中,我有一个公共String getJnlpCodebase()。永远不会调用该方法(我知道,因为我调试)struts动作中的其他JSP变量方法(但不在jnlp标记本身中)。
Is there something that prevents the jnlp tag from using action methods to set this (or other) values dynamically? How do I enable a dynamic generation of the jnlp codebase? I need it because the URL in the codebase varies by environment and I can't hardcode it.
是否存在阻止jnlp标记使用操作方法动态设置此(或其他)值的内容?如何启用动态生成jnlp代码库?我需要它,因为代码库中的URL因环境而异,我无法对其进行硬编码。
1 个解决方案
#1
1
User Struts property tag like below
User Struts属性标记如下所示
<jnlp spec="1.0+" codebase="<s:property value="jnlpCodebase" />" >
#1
1
User Struts property tag like below
User Struts属性标记如下所示
<jnlp spec="1.0+" codebase="<s:property value="jnlpCodebase" />" >