struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Penrose" <>
Subject Type Conversion Issue
Date Mon, 23 Apr 2007 18:00:09 GMT
Hi Guys,

I have an ArrayList of say Car models which we are displaying on a page.
The status field of the model sets the default value of a select
dropdown using a <s:select> tag on the page. When I go to update the
status we can't seem to get type conversion working.....the id of the
collection object returned is always null...and when we try the below
with %{}) it gives us a null error on the setProperty for status.

<s:select list="#{'ok':'ok',

Our bean has the following with apprropriate getters and setters:
@Table(name = "tblCar")
public class Car extends BaseObject implements Serializable {

    protected long id=-1; protected String status;.

Our Action class has a list called carList:

public class MyCarAction extends BaseAction {

    private List <Car>carList = new ArrayList();

    public List<Car> getCarList() {
        return this.carList;

   public void setCarList(List<Car> carList) {
        this.carList = carList;


Our conversion file contains:



Our iterator in jsp page is:

<s:iterator value="carList" id="carBean">

                       <td><s:property value="dateApplied"/></td>
                        <td><s:property value="job.jobTitle"/></td>
                            <s:select list="#{'Submitted':'Submitted',
'Reply Received':'Reply


Any help appreciated,



Yours Sincerely,



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message