Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

unknown symbol on jsp page  RSS feed

Mr Anil Kumar Pandey
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Please see the for audiogallary.jsp(a line is bold) :

<%@ page contentType="text/html;charset=windows-1252"
language="java" errorPage="/error1.jsp" %>
String strparam = "";
String strfile="";
String strquery="";
String srccategory="";
int flag = 0;
response.setDateHeader ("Expires", 0);%>
if(strparam !=null){
if(strparam.contains(">") || strparam.contains("<") || strparam.equals("") || strparam.contains("%3C") || strparam.contains("%3E") ){
else if((strparam.equalsIgnoreCase("contactus")) || (strparam.equalsIgnoreCase("disclaimer")) || (strparam.equalsIgnoreCase("sitemap")) || (strparam.equalsIgnoreCase("feedback")) || (strparam.equalsIgnoreCase("overview")) || (strparam.equalsIgnoreCase("functions")) || (strparam.equalsIgnoreCase("offices")) || (strparam.equalsIgnoreCase("directors")) ){
strparam = null;

<%@ include file="header.jsp"%>

<div id="container">
<!-- start of content on home page -->
<div id="content">
<%@ include file="leftBar.jsp"%>
<script language='JavaScript1.2' src='images/newmenu.js'></script>
<!-- start of rightpanel_search -->

<!-- end of rightpanel_search -->
<% if(strparam==null){
strquery= request.getParameter("query");
<%@ include file="middlelinks.html"%>
<div id="content_middle_noright">

<%@ include file="gallery/videogallery/audio1.html"%>

<!-- end of middle -->
<div class="clear"></div>

if(strquery.contains(">") || strquery.contains("<") || strquery.equals("") || strquery.contains("%3C") || strquery.contains("%3E") || strquery.contains("%3D") || strquery.contains("=") || strquery.contains("%27") || strquery.contains("'") || strquery.contains("%22") || strquery.contains("\"") ){
<jsp:include page="rightBar.jsp">
<jsp:param name="pagename" value="notifications.jsp"/>
<jsp:include page="searchresults.jsp">
<jsp:param name="pagename" value="notifications.jsp"/>
else{%><jsp:include page="<%=strfile%>" /><%}%>

<!-- end of content on home page -->
<div class="clear"></div>
<%@ include file="footer.jsp"%>
<!-- end of page-->


in the above code the line
<%@ include file="gallery/videogallery/audio1.html"%
includes audio1.html page

Code for audio1.html page...

<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
#main { background: #fff; margin: 20px; text-align: center} { display: block;} { font-size: small; margin: 25px; width: 100% !important} div, div.iframe_caption { font-style: italic; color: #888;}
.navs{font-size:12px; font-family:Arial, Helvetica, sans-serif; font-weight:bold; color:#000;}
#lr { border: 1px solid #eee; margin: auto}
div.example { padding: 20px; margin: 15px 0px; background: #ffe; clear:left; border: 1px dashed #ccc; text-align: left}

<script type="text/javascript" src="gallery/videogallery/videos/jquery.min.js"></script>
<script type="text/javascript" src="gallery/videogallery/videos/jquery.jqplugin.1.0.2.min.js"></script>
<script type="text/javascript" src="gallery/videogallery/videos/chili-1.7.pack.js"></script>
<script type="text/javascript" src="gallery/videogallery/videos/jquery.metadata.v2.js"></script>
<script type="text/javascript" src="gallery/videogallery/videos/"></script>
<script type="text/javascript" src="gallery/videogallery/videos/swfobject.js"></script>

<script type="text/javascript">
$('').media( {width:320, height:20});

<body style="background: url(../images/demobg.gif) center -80px no-repeat; margin: 0px;
padding: 0px; text-align: center;">
<h>Hello I m here</h>
<div class="navs"><a href="publicity_campaigns.jsp"> < Back to Main Page</a></div>
Audio Gallery
<div id="flashcontent" style="width: 640px; margin: 0px auto; background: none; display: none;">
Please update your version of the free Adobe Flash Player by <a href="">
Downloading here</a></p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<td align="center"><a class="media" href="gallery/videogallery/videos/TDS_11_H.mp3">TDS Radio Hindi</a> </td>
<td align="center"><a class="media" href="gallery/videogallery/videos/tds_jan.mp3">TDS</a></td>
<td align="center"><a class="media" href="gallery/videogallery/videos/TDS_radio_English.mp3">TDS Radio English</a> </td>
<td align="center"><a class="media" href="gallery/videogallery/videos/20-Seconds(31 March)-Option-I.mp3">TDS Radio Hindi</a></td>




When audiogallary.jsp (above first file) is called it shows a kind of unknown symbol (ii>>? something like this) just above '< Back to Main'
now when the same code of file audio1.jsp is paste into another file and audio1.html is replaced by that file(suppose abc.html having the same code) then this unknown symbol
is not seen.
what the problem sir ...
thanks for kind effort

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!