struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harden ZHU" <hzh...@gmail.com>
Subject struts2 jsp s:set question
Date Tue, 15 Jul 2008 07:23:35 GMT
Hi,

I have a "Company" object as follow and setAttribute("company",
company) in action. When do follow in jsp

<s:set name="company" value="%{#application.company}"/>
<%=company.formartName("aa")%>

And company.formartName("aa") in jsp throw exception. Do I did something wrong?

Thanks


Here is Company.java
==========================
public class Company  {

    private Long id;
    private String name;
    private String description;

    public Company() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

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

    public String getDescription() {
        return description;
    }


    public String formartName(String formart){
        ....
        .....
        return formatName
    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message