i'm having trouble populating tag attributes from request parameters. The
code below generates an error "Attribute name is not specified".
However, when i remove the pcard tag the other request parameter outputs
function correctly, so i know that the request parameter is being populated.
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/pnstruts.tld" prefix="pcard" %>
<html>
<head><title>Postcard</title>
</head>
<body>
<h1><%= request.getParameter("name") %></h1>
<p align="center">
<pcard:pcard name="<%= request.getParameter("name") %>">
<%= request.getParameter("name") %></pcard:pcard>
</p>
</body>
</html>
I've also enclosed the tag definition from the .tld (and have set rtexprvalue
to true).
<tag>
<name>pcard</name>
<tagclass>pnstruts.tags.pcardTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>PCARD tag for celeb info</info>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
Any ideas?
--
Martin Samm
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>