Sunday, 15 February 2015

html - Jsp Page Shows some unwanted Charater in browser? -



html - Jsp Page Shows some unwanted Charater in browser? -

i have problem while using custom portlet in liferay dont know how when deploy war file other machines liferay server shows me 1 page unwated charater while there no character in jsp page.i have tried everythng..but there no error of javascript or html tag used in jsp page..can help me out should problem here.

here image of jsp page.

my code of jsp page follows

<%@ include file="/init.jsp"%> <%@page import="com.liferay.portal.kernel.util.propsutil"%> <%@page import="com.liferay.util.portlet.portletprops"%> <%@page import="emenu.advertise.emailnotification.emailnotification"%> <%@page import="com.liferay.portal.model.role"%> <%@page import="com.liferay.portal.model.organization"%> <%@page import="com.liferay.portal.util.portalutil"%> <%@page import="emenu.advertise.portlet.restaurantportlet"%> <%@page import="com.liferay.portal.kernel.util.getterutil"%> <%@page import="com.liferay.util.portlet.portletprops"%>; <%@ page import="javax.portlet.portletconfig"%> <%@ page import="com.liferay.util.mail.mailengine"%> <portlet:renderurl var="editadvertiseurl"> <portlet:param name="jsppage" value="/jsps/advertise/editadvertise.jsp" /> </portlet:renderurl> <portlet:renderurl var="addadvertiseurl"> <portlet:param name="jsppage" value="/jsps/advertise/newadvertise.jsp" /> </portlet:renderurl> <portlet:renderurl var="advertiselisturl"> <portlet:param name="jsppage" value="/jsps/advertise/advertiselist.jsp" /> </portlet:renderurl> <% if(!themedisplay.issignedin()) { %> <script type="text/javascript"> window.location="<%=themedisplay.geturlsignin()%>"; </script> <%} %> <% string loading_img_path = request.getcontextpath() + "/img/ajax_loader.gif"; %> <script src="<%=request.getcontextpath()%>/js/jquery.min.js"></script> <script src="<%=request.getcontextpath()%>/lib/datatables/jquery.datatables.min.js"></script> <script src="<%=request.getcontextpath()%>/lib/datatables/jquery.datatables.sorting.js"></script> <script src="<%=request.getcontextpath()%>/js/gebo_tables.js"></script> <% string srolename=null; boolean isreseller= common.checkisreseller(themedisplay); if(isreseller){ srolename="reseller"; } else{ srolename="advertiser"; } %> <nav> <div id="jcrumbs" class="breadcrumb module"> <ul> <li><a href="#"><i class="icon-home"></i></a></li> <li><a href="#"><%=srolename%></a></li> <li>ads</li> </ul> </div> </nav>

now problem comes somewhere before tag of

<nav> <div id="jcrumbs" class="breadcrumb module">

let me give u image of mozila firebug

i dont know problem..i have searched evrything did not find anythng.can please help me.. in machine server worked perfectly.but dont know happens when seek export war or seek deploy eclipse..its showing unwanted character in jsp page

replace

<%@page import="com.liferay.util.portlet.portletprops"%>;

with

<%@page import="com.liferay.util.portlet.portletprops"%>

html jsp liferay portlet liferay-6

No comments:

Post a Comment