Jasper error
843838Sep 12 2006 — edited May 31 2008Hi,
I have upgraded tomcat4 to tomcat 5.5.17 & i get the following error:
org.apache.jasper.JasperException: /jsp/pageLocator.jsp(8,0) /jsp/inc/common.inc(3,64) The prefix html specified in this tag directive has been previously used by an action in file /jsp/pageLocator.jsp line 7.
i followed everything thats specified in this link:
http://forum.java.sun.com/thread.jspa?threadID=462990&messageID=2126657
but it doesn't help me.
my pageLocator.jsp code is:
<HTML>
<HEAD>
<META NAME="Author" CONTENT="Creative Team: TheClass.org">
<META NAME="keywords" CONTENT="volunteer opportunities, volunteer activities, non-profit, consultants, nonprofit, NPO, charity, bay area volunteering, silicon valley volunteers, public service, public interest, civic contribution, contribute, management consultancy, community leaders, philanthrophy">
<META NAME="description" CONTENT="To institutionalize the process of knowledge sharing and transfer to reduce wastages, improve impact, increase accountability and try to ensure that right people with right skills can serve the community at the right time.">
<!--<TITLE>CLASS: <%=request.getParameter("URL")%></TITLE>-->
<link rel="stylesheet" href='<html:rewrite page="/styles/styles.css"/>' type="text/css">
<%@ include file="/jsp/inc/common.inc" %>
<%@ include file="/jsp/inc/scriptsrc.inc" %>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</HEAD>
<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" onLoad="MM_preloadImages('../images/communitysupporters1.JPG','../images/communityleaders1.JPG','../images/communitypartners1.JPG')">
<%@ include file="/jsp/inc/menu_data.inc" %>
<table width="885" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="main">
<tr>
<td colspan="4"><div align="left"><%@ include file="/html/headerFlash.htm" %></div></td>
</tr>
<tr>
<td colspan="4" width="887" align="right">
<%@ include file="/jsp/inc/main_menu.inc" %>
</td>
</tr>
<tr>
<td height="23" colspan="3"> </td>
</tr>
<tr>
<td width="885" valign="top">
<% String url = request.getParameter("URL");
String fileType = request.getParameter("fileType");
if("jsp".equals(fileType))
url = url + ".jsp";
else
if("do".equals(fileType))
url = url;
else
if(fileType==null)
url = "../html/"+ url + ".htm";
%>
<jsp:include page="<%=url%>"></jsp:include>
</td>
<!--<td width="17" bgcolor="#FFFFFF"> </td>-->
<td width="130" height="100%">
<table width="100%" height="100%" border="0" cellspacing=0 cellpadding=0 marginwidth=0 marginheight=0>
<tr height="80" bgcolor="#EBE7EB"> <td><%@ include file="/html/rightpanel.htm" %></td></tr>
<tr height="100%" bgcolor="#EBE7EB"><td></td></tr>
</table>
</td>
</tr>
<tr>
<td height="25"colspan="4"> </td>
</tr>
<tr>
<td height="25" colspan="4"><%@ include file="../html/footer.htm" %></td>
</tr>
</table>
</BODY>
</HTML>
file jsp/inc/commom.inc is:
<%@ taglib uri="/WEB-INF/tlds/app.tld" prefix="app" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
well, even when i change the uri to "http://java.sun.com/jstl/core_rt" i get the same error.
Please let me know what the problem. I need to get this working immediately.
Thanks