问题描述
我使用 TOMCAT 服务器部署了我们的应用程序,我们配置了 SSL 证书,我们的域完全从 HTTP 更改为 HTTPS。问题是我们在应用程序中使用 dojo.js 搜索 当我们发布时,它会自动在根文件夹中创建一个包含图像和“XSL”文件的搜索文件夹。问题是图像没有显示在网站上,我们在浏览器的检查元素中被识别,图像路径正在使用我们的服务器 IP 获取 HTTP。怎么需要改文件夹和里面的所有文件都需要改HTTPS?
这是XSL文件中的代码
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan"
exclude-result-prefixes="xalan">
<xsl:output method="html" xalan:omit-meta-tag="yes" xalan:use-url-escaping="no"/>
<xsl:template match="/SearchResult">
<xsl:variable name="initPageNum" select="@initPageNum"/>
<xsl:variable name="maxPageNum" select="@maxPageNum"/>
<xsl:variable name="nextEnabled" select="@nextEnabled"/>
<xsl:variable name="prevEnabled" select="@prevEnabled"/>
<xsl:variable name="nextText" select="@nextText"/>
<xsl:variable name="prevText" select="@prevText"/>
<xsl:variable name="imagePath" select="@imagePath"/>
<xsl:variable name="searchString" select="@searchString"/>
<xsl:variable name="nextHref" select="@nextHref"/>
<xsl:variable name="prevHref" select="@prevHref"/>
<xsl:variable name="icon" select="@icon"/>
<div class="searchResultPane">
<table border="0" cellpadding="0" cellspacing="0" width="100%" >
<tr align="top">
<td align="right" nowrap="nowrap">
(<b><xsl:value-of select="@initPageNum"/> - <xsl:value-of select="@maxPageNum"/></b><xsl:text> / </xsl:text><xsl:value-of select="@totalHits"/>)
<xsl:choose>
<xsl:when test="$prevEnabled = 'true'">
<xsl:choose>
<xsl:when test="@prevHref != ''">
<img onclick="theApp.searchWidget.getServerPrevNextPage('{$prevHref}'); return false;" onmouseover="style.cursor='pointer';" alt="{$prevText}" src="{$imagePath}previous.gif"/><xsl:text> </xsl:text>
</xsl:when>
<xsl:otherwise>
<img onclick="theApp.searchWidget.getAppletPrevPage(); return false;" onmouseover="style.cursor='pointer';" alt="{$prevText}" src="{$imagePath}previous.gif"/><xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<img onclick="" onmouseover="style.cursor='pointer';" alt="{$prevText}" src="{$imagePath}no_previous.gif"/><xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$nextEnabled = 'true'">
<xsl:choose>
<xsl:when test="@nextHref != ''">
<img onclick="theApp.searchWidget.getServerPrevNextPage('{$nextHref}'); return false;" onmouseover="style.cursor='pointer';" alt="{$nextText}" src="{$imagePath}next.gif"/>
</xsl:when>
<xsl:otherwise>
<img onclick="theApp.searchWidget.getAppletNextPage(); return false;" onmouseover="style.cursor='pointer';" alt="{$nextText}" src="{$imagePath}next.gif"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<img onclick="" onmouseover="style.cursor='pointer';" alt="{$nextText}" src="{$imagePath}no_next.gif"/><xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
   
</td>
</tr>
</table>
</div><br />
<xsl:for-each select="SearchHit">
<xsl:variable name="url" select="@url"/>
<div class="searchHit">
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td align="right">
<xsl:choose>
<xsl:when test="@icon != ''">
<img src="{$imagePath}{@icon}" alt=""/>
</xsl:when>
<xsl:otherwise>
<img src="{$imagePath}searchrecord.gif" alt=""/>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="left">
<a href="{$url}"><xsl:value-of select="@title"/></a>
</td>
</tr>
<tr>
<td align="right"></td>
<td align="left"><xsl:value-of select="@summary"/></td>
</tr>
</table>
</div>
</xsl:for-each>
<br/>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="middle">
<td align="right" nowrap="nowrap">
<xsl:choose>
<xsl:when test="$prevEnabled = 'true'">
<xsl:choose>
<xsl:when test="@prevHref != ''">
<img onclick="theApp.searchWidget.getServerPrevNextPage('{$prevHref}'); return false;" onmouseover="style.cursor='pointer';" alt="{$prevText}" src="{$imagePath}previous.gif"/><xsl:text> </xsl:text>
</xsl:when>
<xsl:otherwise>
<img onclick="theApp.searchWidget.getAppletPrevPage(); return false;" onmouseover="style.cursor='pointer';" alt="{$prevText}" src="{$imagePath}previous.gif"/><xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<img onclick="" onmouseover="style.cursor='pointer';" alt="{$prevText}" src="{$imagePath}no_previous.gif"/><xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$nextEnabled = 'true'">
<xsl:choose>
<xsl:when test="@nextHref != ''">
<img onclick="theApp.searchWidget.getServerPrevNextPage('{$nextHref}'); return false;" onmouseover="style.cursor='pointer';" alt="{$nextText}" src="{$imagePath}next.gif"/>
</xsl:when>
<xsl:otherwise>
<img onclick="theApp.searchWidget.getAppletNextPage(); return false;" onmouseover="style.cursor='pointer';" alt="{$nextText}" src="{$imagePath}next.gif"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<img onclick="" onmouseover="style.cursor='pointer';" alt="{$nextText}" src="{$imagePath}no_next.gif"/><xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
   
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
请帮助我如何解决tomcat或IIS中的问题或SSL中的任何权限。
并且此域 URL 仅适用于我们的组织。
谢谢
普拉迪普
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)