Hi
I am trying to run the iteration.war Custom JSP Taglib example at:

http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html

the first page index.jsp comes on well.
but i get a parsing error in list.jsp
-------------------------------------------------------
Parsing of JSP File '/list.jsp' failed:

/list.jsp(27): member is not defined as bean
probably occurred due to an error in /list.jsp line 27:
--------------------------------------------------------
the relevent lines in list.jsp are
...
<%-- List all department members --%>
<tlt:iteration name="member" type="com.sriram.Member" group="<%=
dept.getMembers()%>">
<tr>
<%-- Line number 27 is below --%>
<td><jsp:getProperty name="member" property="name"/></td>
...
---------------------------------------------------------
The extra info class is correct in my opinion...
...
public VariableInfo[] getVariableInfo(TagData data)
   {
    System.out.println("IterationTEI:getVarInfo..");
      VariableInfo info1
         = new VariableInfo(
            data.getAttributeString("name"),
            data.getAttributeString("type"),
            true,
            VariableInfo.NESTED);

System.out.println(data.getAttributeString("name")+"::"+data.getAttributeStr
ing("type"));
      VariableInfo [] info = { info1 };
      return info;
   }
....
---------------------------------------------------------
It works fine if i replace the 'jsp:setProperty' by direct member access
like member.getName()
Could u tell me how to make it work as it is?(using jsp:setProperty)
thank you
sriram


Cognizant Technology Solutions - Pune.

This e-mail and any files transmitted with it are for the sole use
of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message. Any unauthorised review, use, disclosure,
dissemination, forwarding, printing or copying of this email or any action taken in
reliance on this e-mail is strictly prohibited and may be unlawful.

                Visit us at http://www.cognizant.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to