tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PGibbo...@aol.com
Subject taglibs problem within war file
Date Tue, 12 Apr 2005 06:06:50 GMT
Hi There,
i have a strange problem.  I have created a jsp page which uses tag  libs, 
and this works fine.  However, when i place the web app in a war  file, the tag 
libs dont seem to work.
 
ie example jsp page code:
 
<%@ taglib prefix="c" uri="_http://java.sun.com/jsp/jstl/core_ 
(http://java.sun.com/jsp/jstl/core) "  %>
<jsp:useBean id="nc" class="hall.Check" scope="page"  />
<jsp:setProperty name="nc" property="phone"  value="${param['phone']}" />
 
Within a war file the bean receives the value of '${param['phone']}' and  not 
the number itself, ie 01213822222.  Outside of the war file placed in  the 
root directory the bean gets the value of the number.  Both sets of  code are 
exactly the same and the web.xml file is as follows:
 
why the difference, and what do i have to do to get things to work within a  
war file?
 
<?xml version="1.0" encoding="ISO-8859-1"?>
 
<web-app xmlns="_http://java.sun.com/xml/ns/j2ee_ 
(http://java.sun.com/xml/ns/j2ee) "
xmlns:xsi="_http://www.w3.org/2001/XMLSchema-instance_ 
(http://www.w3.org/2001/XMLSchema-instance) "
xsi:schemaLocation="
_http://java.sun.com/xml/ns/j2ee_ (http://java.sun.com/xml/ns/j2ee)   
_http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd_ 
(http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd) "
version="2.4">
    
<!-- The Usual Welcome File List  -->
<welcome-file-list>
<welcome-file>non_retail_numchk.jsp</welcome-file>
</welcome-file-list>
 
</web-app>
 
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message