Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

absolute uri error

Status
Not open for further replies.

jaggiebunnet

Programmer
Jun 10, 2004
95
EU
Hi there,

I am new to struts and java and so was working through an example on setting up a basic struts application with a book from Wrox called Beginning JSP 2.0

Everything is fine and compiles etc but when I try to run the index.jsp page I get the error:

org.apache.jasper.JasperException: This absolute uri ( cannot be resolved in either web.xml or the jar files deployed with this application

I have reread the book and there are no jarsI am missing when I copy them from struts and there is no mention of putting anything in the web.xml as i have seen in other examples.

Can anyone help - the full code of index.jsp is below:


<%@page contentType="text/html"%>
<%@taglib prefix="template" uri="<%@taglib prefix="bean" uri="
<template:insert template="/templates/default.jsp">
<template:put name="title">
<bean:message key="home.page.title"/>
</template:put>
<template:put name="content">
<template:insert template="/templates/portal.jsp">

<template:put name="title[1]">
<bean:message key="home.booksinprogress.title"/>
</template:put>
<template:put name="portlet[1]"
content="/content/pagelist.jsp?status=I"/>

<template:put name="title[2]">
<bean:message key="home.plannedbooks.title"/>
</template:put>
<template:put name="portlet[2]"
content="/content/booklist.jsp?status=P"/>

<template:put name="title[3]">
<bean:message key="home.booknews.title"/>
</template:put>
<template:put name="portlet[3]"
content="/content/booknewslist.jsp"/>

</template:insert>
</template:put>
</template:insert>

Thanks
Jaggie
 
The taglib uri should be local to your system.

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

Etc etc. You are using that URI to load the tag, you can't load it across the internet.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top