java - What does this error means in JSP? (Unknown element (rtexpvalue) in attribute) -


i getting error when running application on line 3 of jsp file.is tld file or jsp file?

org.apache.jasper.jasperexception: /displayallorders.jsp(3,62) pwc6106: unknown element (rtexpvalue) in attribute.

the tld file:

 <?xml version="1.0" encoding="utf-8"?>  <taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee"    lns:xsi="http://www.w3.org/2001/xmlschema-instance"      xsi:schemalocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd">  <tlib-version>1.0</tlib-version>  <short-name>week07_portfolio</short-name>  <uri>/web-inf/tlds/week07_portfolio</uri> <tag> <name>displayorders</name> <tag-class>tags.displayorders</tag-class> <body-content>jsp</body-content> <variable>     <name-given>order</name-given>     <variable-class>beans.order</variable-class>     <declare>true</declare>     <scope>nested</scope> </variable>        <attribute>       <name>orderslistname</name>       <required>true</required>       <rtexpvalue>false</rtexpvalue> </attribute>    </tag>    <tag>    <name>displayorderlines</name>    <tag-class>tags.displayorderlines</tag-class>    <body-content>jsp</body-content> <variable>     <name-given>orderline</name-given>     <variable-class>beans.orderline</variable-class>     <declare>true</declare>     <scope>nested</scope> </variable>       <attribute>       <name>lineslistname</name>       <required>true</required>       <rtexpvalue>false</rtexpvalue>   </attribute>       </tag>  </taglib> 

the jsp file:

<%@page contenttype="text/html" pageencoding="utf-8"%> <%@ page import="java.util.*, java.text.*, beans.*" %> <%@ taglib uri="/web-inf/tlds/week07_portfolio" prefix="wk07" %> <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd">  <%  if (session.getattribute("orderlist") == null) {     throw new servletexception("no order list available"); }  int ctr = 0; simpledateformat df = new simpledateformat("dd-mmm-yyyy"); 

%>

<html> <head>     <meta http-equiv="content-type" content="text/html; charset=utf-8">     <title>week 07, portfolio exercise</title>     <link rel="stylesheet" type="text/css" href="week07_portfolio.css">     </head>     <body>     <h1>week 07, portfolio exercise</h1>     <h2>order list</h2>      <wk07:displayorders orderslistname="orderlist">         <table>             <tr class="header">                 <td>order num: <%= order.getordernum() %></td>                 <td>customer: <%= order.getname() %></td>                 <td>date: <%= df.format(order.getorderdate()) %></td>             </tr>         </table>          <% pagecontext.setattribute("orderlines", order.getorderlines());             ctr = 0;         %>         <table>             <tr>                 <th>ref. code</th>                 <th>item</th>                 <th>qty</th>             </tr>         <wk07:displayorderlines lineslistname="orderlines">             <tr<%= ctr++ % 2 == 0 ? " class=\"shaded\"" : ""%>>                 <td><%= orderline.getitem().getrefcode()%></td>                 <td><%= orderline.getitem().getname()%></td>                 <td><%= orderline.getquantity()%></td>             </tr>         </wk07:displayorderlines>         </table>         <p>&nbsp;</p>     </wk07:displayorders>         </body> 

it should <rtexprvalue>.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -