Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
页面上的Href链接未显示在jsp中_Jsp_Href - Fatal编程技术网

页面上的Href链接未显示在jsp中

页面上的Href链接未显示在jsp中,jsp,href,Jsp,Href,我的jsp页面中有一个url,其格式如下: <% if (policyInfoViewBean.hasValuableArticlesCoverage()) { %> <tr> <td height="25" valign="top" align="right">&nbsp;</td> <td height="25" valign="top" align="right" class="rightNav

我的jsp页面中有一个url,其格式如下:

 <% if (policyInfoViewBean.hasValuableArticlesCoverage()) { %>
    <tr>
      <td height="25" valign="top" align="right">&nbsp;</td>
      <td height="25" valign="top" align="right" class="rightNav" background="<%= imagePath %>/r_fill.gif">&nbsp;</td>
      <td class="rightNav" background="<%= imagePath %>/r_fill.gif">
            <% if (policyInfoViewBean.isPersonalArticlesFloater()) { %>
                    <a href="<%= actionString %>POL11&<%=SessionKeys.CPI_POLICY_NUMBER%>=<%= policy.getPolicyNumber()%>" class="rightNav">Personal Articles Floater</a></td>
            <% } else { %>
                    <a href="<%= actionString %>POL11&<%=SessionKeys.CPI_POLICY_NUMBER%>=<%= policy.getPolicyNumber()%>" class="rightNav">Valuable Articles</a></td>
            <% } %>
      <td class="rightNav" background="<%= imagePath %>/r_fill.gif">&nbsp;</td>
    </tr>
    <% } %>

满足此条件后,它将进入else部分,但在本地计算机上运行时,它不会显示url


请提供建议。

我建议您将url的值打印到日志中,以确保它们包含有效值,并检查日志中是否存在异常

<% System.out.println(actionString+"POL11&"+SessionKeys.CPI_POLICY_NUMBER+"="+policy.getPolicyNumber());
%>


你能告诉我预期的url是什么吗?什么是actionString,什么是SessionKeys.CPI\u POLICY\u NUMBER,POLICY.getPolicyNumber()results inIt只是从策略Bean中获取策略号如果你把你的后端代码放出来,我会设法弄清楚