Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=2860701
By: srcfrguser

Hi,
 I am trying to use DisplayTag for the first time and deploying in iPlanet 6.0.
below are my VO and

---------------------------------------

public class InvoiceItems implements Serializable {

    private String name;
    private int recordId;
    private BigDecimal amount;
     
    public InvoiceItems(String name, int recordId, BigDecimal amount) {
        this.name = name;
        this.recordId = recordId;
        this.amount = amount;
    }

    public InvoiceItems() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRecordId() {
        return recordId;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
}
-------------------------------------------

and in JSP 
<%
//Create here some value ObjectsdiplayTag
     List vo = new ArrayList();
     vo.add(new InvoiceItems ("Items1",1,new BigDecimal(100.00));
     vo.add(new InvoiceItems ("Items2",2,new BigDecimal(200.00));
     vo.add(new InvoiceItems ("Items3",3,new BigDecimal(300.00));
    
    request.setAttribute("test",vo);
%>

<display:table name="test">
  <display:column property="name" />
  <display:column property="recordId" />
  <display:column property="amount" />
</display:table>

------------------------------

when I run this in iplanet I get error saying
org.apache.jasper.compiler.CompileException:  Unable to convert a String to
java.lang.Object for attribute name

where I am going wrong here?
Please help.

Regards
JH

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249318


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to