You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "alex pan (JIRA)" <ji...@apache.org> on 2008/04/06 16:14:58 UTC
[jira] Created: (WW-2578) can't get ModelDriven property bean from
stack
can't get ModelDriven property bean from stack
----------------------------------------------
Key: WW-2578
URL: https://issues.apache.org/struts/browse/WW-2578
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.0.11.1
Reporter: alex pan
Priority: Minor
hi all,
i am a beginner of struts2.
i added a new struts2 project. below is the code.
property in JSP page
bike name <stl:textfield name="bike.name" />
color<stl:textfield name="bike.color" />
size<stl:textfield name="bike.size" />
Java code,
public class Bike {
private String name;
private String color;
private String size;
public Bike() {
System.out.print("creating a new bike");
}
**getter and setter methode**
}
public class AddBikeAction extends ActionSupport implements ModelDriven {
private Bike bike
public AddBikeAction() {
}
public void setBike(Bike bike) {
this.bike =bike;
}
public String execute() {
System.out.print(bike.getName);
System.out.print(bike.getColor);
System.out.print(bike.getSize);
return SUCCESS;
}
public People getModel() {
return bike;
}
}
when i access AddBikeAction, this log is
creating a new bike
creating a new bike
creating a new bike
null
null
67(i input in JSP page)
i am confused why it always create a new Bike object when each time setting the property. so i only can get a Bike object with one not null property.
i want to know what's wrong in my code or i was missing some config. so i got this issue.
thanks,
Alex
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (WW-2578) can't get ModelDriven property bean from
stack
Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Newton closed WW-2578.
---------------------------
Resolution: Fixed
Please ask questions on the struts-user mailing list [1], JIRA is specifically for bugs and issues in Struts code.
Thanks :)
[1] http://struts.apache.org/mail.html
> can't get ModelDriven property bean from stack
> ----------------------------------------------
>
> Key: WW-2578
> URL: https://issues.apache.org/struts/browse/WW-2578
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.1
> Reporter: alex pan
> Priority: Minor
>
> hi all,
> i am a beginner of struts2.
> i added a new struts2 project. below is the code.
> property in JSP page
>
> bike name <stl:textfield name="bike.name" />
> color<stl:textfield name="bike.color" />
> size<stl:textfield name="bike.size" />
> Java code,
> public class Bike {
> private String name;
> private String color;
> private String size;
>
> public Bike() {
> System.out.print("creating a new bike");
> }
> **getter and setter methode**
> }
> public class AddBikeAction extends ActionSupport implements ModelDriven {
>
> private Bike bike
>
> public AddBikeAction() {
>
> }
> public void setBike(Bike bike) {
> this.bike =bike;
> }
> public String execute() {
> System.out.print(bike.getName);
> System.out.print(bike.getColor);
> System.out.print(bike.getSize);
> return SUCCESS;
> }
> public People getModel() {
> return bike;
> }
> }
> when i access AddBikeAction, this console log is
> creating a new bike
> creating a new bike
> creating a new bike
> null
> null
> 67(i input in JSP page)
> i am confused why it always create a new Bike object when each time setting the property. so i only can get a Bike object with one not null property.
> i want to know what's wrong in my code or i was missing some config. so i got this issue.
> thanks,
> Alex
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2578) can't get ModelDriven property bean from
stack
Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Newton updated WW-2578:
----------------------------
Resolution: Not A Problem (was: Fixed)
Status: Resolved (was: Closed)
> can't get ModelDriven property bean from stack
> ----------------------------------------------
>
> Key: WW-2578
> URL: https://issues.apache.org/struts/browse/WW-2578
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.1
> Reporter: alex pan
> Priority: Minor
>
> hi all,
> i am a beginner of struts2.
> i added a new struts2 project. below is the code.
> property in JSP page
>
> bike name <stl:textfield name="bike.name" />
> color<stl:textfield name="bike.color" />
> size<stl:textfield name="bike.size" />
> Java code,
> public class Bike {
> private String name;
> private String color;
> private String size;
>
> public Bike() {
> System.out.print("creating a new bike");
> }
> **getter and setter methode**
> }
> public class AddBikeAction extends ActionSupport implements ModelDriven {
>
> private Bike bike
>
> public AddBikeAction() {
>
> }
> public void setBike(Bike bike) {
> this.bike =bike;
> }
> public String execute() {
> System.out.print(bike.getName);
> System.out.print(bike.getColor);
> System.out.print(bike.getSize);
> return SUCCESS;
> }
> public People getModel() {
> return bike;
> }
> }
> when i access AddBikeAction, this console log is
> creating a new bike
> creating a new bike
> creating a new bike
> null
> null
> 67(i input in JSP page)
> i am confused why it always create a new Bike object when each time setting the property. so i only can get a Bike object with one not null property.
> i want to know what's wrong in my code or i was missing some config. so i got this issue.
> thanks,
> Alex
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2578) can't get ModelDriven property bean from
stack
Posted by "alex pan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
alex pan updated WW-2578:
-------------------------
Description:
hi all,
i am a beginner of struts2.
i added a new struts2 project. below is the code.
property in JSP page
<s:form action="addBike">
bike name <s:textfield name="bike.name" />
color<s:textfield name="bike.color" />
size<s:textfield name="bike.size" />
</s:form>
Java code,
public class Bike {
private String name;
private String color;
private String size;
public Bike() {
System.out.print("creating a new bike");
}
**getter and setter methode**
}
public class AddBikeAction extends ActionSupport implements ModelDriven {
private Bike bike
public AddBikeAction() {
}
public void setBike(Bike bike) {
this.bike = bike;
}
public String execute() {
System.out.print(bike.getName);
System.out.print(bike.getColor);
System.out.print(bike.getSize);
return SUCCESS;
}
public People getModel() {
return bike;
}
}
when i submit this JSP page with
bike name = 'bike name',
color = 'red',
size = '67'
this console log is
creating a new bike
creating a new bike
creating a new bike
null
null
67
i am confused why it always create a new Bike object when each time setting the property. so i only can get a Bike object with one not null property.
i want to know what's wrong in my code or i was missing some config. so i got this issue.
thanks,
Alex
was:
hi all,
i am a beginner of struts2.
i added a new struts2 project. below is the code.
property in JSP page
bike name <stl:textfield name="bike.name" />
color<stl:textfield name="bike.color" />
size<stl:textfield name="bike.size" />
Java code,
public class Bike {
private String name;
private String color;
private String size;
public Bike() {
System.out.print("creating a new bike");
}
**getter and setter methode**
}
public class AddBikeAction extends ActionSupport implements ModelDriven {
private Bike bike
public AddBikeAction() {
}
public void setBike(Bike bike) {
this.bike =bike;
}
public String execute() {
System.out.print(bike.getName);
System.out.print(bike.getColor);
System.out.print(bike.getSize);
return SUCCESS;
}
public People getModel() {
return bike;
}
}
when i access AddBikeAction, this console log is
creating a new bike
creating a new bike
creating a new bike
null
null
67(i input in JSP page)
i am confused why it always create a new Bike object when each time setting the property. so i only can get a Bike object with one not null property.
i want to know what's wrong in my code or i was missing some config. so i got this issue.
thanks,
Alex
> can't get ModelDriven property bean from stack
> ----------------------------------------------
>
> Key: WW-2578
> URL: https://issues.apache.org/struts/browse/WW-2578
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.1
> Reporter: alex pan
> Priority: Minor
>
> hi all,
> i am a beginner of struts2.
> i added a new struts2 project. below is the code.
> property in JSP page
> <s:form action="addBike">
> bike name <s:textfield name="bike.name" />
> color<s:textfield name="bike.color" />
> size<s:textfield name="bike.size" />
> </s:form>
> Java code,
> public class Bike {
> private String name;
> private String color;
> private String size;
> public Bike() {
> System.out.print("creating a new bike");
> }
>
> **getter and setter methode**
> }
> public class AddBikeAction extends ActionSupport implements ModelDriven {
>
> private Bike bike
> public AddBikeAction() {
> }
> public void setBike(Bike bike) {
> this.bike = bike;
> }
> public String execute() {
> System.out.print(bike.getName);
> System.out.print(bike.getColor);
> System.out.print(bike.getSize);
> return SUCCESS;
> }
>
> public People getModel() {
> return bike;
> }
> }
> when i submit this JSP page with
> bike name = 'bike name',
> color = 'red',
> size = '67'
> this console log is
> creating a new bike
> creating a new bike
> creating a new bike
> null
> null
> 67
> i am confused why it always create a new Bike object when each time setting the property. so i only can get a Bike object with one not null property.
> i want to know what's wrong in my code or i was missing some config. so i got this issue.
> thanks,
> Alex
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (WW-2578) can't get ModelDriven property bean from
stack
Posted by "Rainer Hermanns (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rainer Hermanns closed WW-2578.
-------------------------------
> can't get ModelDriven property bean from stack
> ----------------------------------------------
>
> Key: WW-2578
> URL: https://issues.apache.org/struts/browse/WW-2578
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.1
> Reporter: alex pan
> Priority: Minor
>
> hi all,
> i am a beginner of struts2.
> i added a new struts2 project. below is the code.
> property in JSP page
> <s:form action="addBike">
> bike name <s:textfield name="bike.name" />
> color<s:textfield name="bike.color" />
> size<s:textfield name="bike.size" />
> </s:form>
> Java code,
> public class Bike {
> private String name;
> private String color;
> private String size;
> public Bike() {
> System.out.print("creating a new bike");
> }
>
> **getter and setter methode**
> }
> public class AddBikeAction extends ActionSupport implements ModelDriven {
>
> private Bike bike
> public AddBikeAction() {
> }
> public void setBike(Bike bike) {
> this.bike = bike;
> }
> public String execute() {
> System.out.print(bike.getName);
> System.out.print(bike.getColor);
> System.out.print(bike.getSize);
> return SUCCESS;
> }
>
> public People getModel() {
> return bike;
> }
> }
> when i submit this JSP page with
> bike name = 'bike name',
> color = 'red',
> size = '67'
> this console log is
> creating a new bike
> creating a new bike
> creating a new bike
> null
> null
> 67
> i am confused why it always create a new Bike object when each time setting the property. so i only can get a Bike object with one not null property.
> i want to know what's wrong in my code or i was missing some config. so i got this issue.
> thanks,
> Alex
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2578) can't get ModelDriven property bean from
stack
Posted by "alex pan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
alex pan updated WW-2578:
-------------------------
Description:
hi all,
i am a beginner of struts2.
i added a new struts2 project. below is the code.
property in JSP page
bike name <stl:textfield name="bike.name" />
color<stl:textfield name="bike.color" />
size<stl:textfield name="bike.size" />
Java code,
public class Bike {
private String name;
private String color;
private String size;
public Bike() {
System.out.print("creating a new bike");
}
**getter and setter methode**
}
public class AddBikeAction extends ActionSupport implements ModelDriven {
private Bike bike
public AddBikeAction() {
}
public void setBike(Bike bike) {
this.bike =bike;
}
public String execute() {
System.out.print(bike.getName);
System.out.print(bike.getColor);
System.out.print(bike.getSize);
return SUCCESS;
}
public People getModel() {
return bike;
}
}
when i access AddBikeAction, this console log is
creating a new bike
creating a new bike
creating a new bike
null
null
67(i input in JSP page)
i am confused why it always create a new Bike object when each time setting the property. so i only can get a Bike object with one not null property.
i want to know what's wrong in my code or i was missing some config. so i got this issue.
thanks,
Alex
was:
hi all,
i am a beginner of struts2.
i added a new struts2 project. below is the code.
property in JSP page
bike name <stl:textfield name="bike.name" />
color<stl:textfield name="bike.color" />
size<stl:textfield name="bike.size" />
Java code,
public class Bike {
private String name;
private String color;
private String size;
public Bike() {
System.out.print("creating a new bike");
}
**getter and setter methode**
}
public class AddBikeAction extends ActionSupport implements ModelDriven {
private Bike bike
public AddBikeAction() {
}
public void setBike(Bike bike) {
this.bike =bike;
}
public String execute() {
System.out.print(bike.getName);
System.out.print(bike.getColor);
System.out.print(bike.getSize);
return SUCCESS;
}
public People getModel() {
return bike;
}
}
when i access AddBikeAction, this log is
creating a new bike
creating a new bike
creating a new bike
null
null
67(i input in JSP page)
i am confused why it always create a new Bike object when each time setting the property. so i only can get a Bike object with one not null property.
i want to know what's wrong in my code or i was missing some config. so i got this issue.
thanks,
Alex
> can't get ModelDriven property bean from stack
> ----------------------------------------------
>
> Key: WW-2578
> URL: https://issues.apache.org/struts/browse/WW-2578
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.1
> Reporter: alex pan
> Priority: Minor
>
> hi all,
> i am a beginner of struts2.
> i added a new struts2 project. below is the code.
> property in JSP page
>
> bike name <stl:textfield name="bike.name" />
> color<stl:textfield name="bike.color" />
> size<stl:textfield name="bike.size" />
> Java code,
> public class Bike {
> private String name;
> private String color;
> private String size;
>
> public Bike() {
> System.out.print("creating a new bike");
> }
> **getter and setter methode**
> }
> public class AddBikeAction extends ActionSupport implements ModelDriven {
>
> private Bike bike
>
> public AddBikeAction() {
>
> }
> public void setBike(Bike bike) {
> this.bike =bike;
> }
> public String execute() {
> System.out.print(bike.getName);
> System.out.print(bike.getColor);
> System.out.print(bike.getSize);
> return SUCCESS;
> }
> public People getModel() {
> return bike;
> }
> }
> when i access AddBikeAction, this console log is
> creating a new bike
> creating a new bike
> creating a new bike
> null
> null
> 67(i input in JSP page)
> i am confused why it always create a new Bike object when each time setting the property. so i only can get a Bike object with one not null property.
> i want to know what's wrong in my code or i was missing some config. so i got this issue.
> thanks,
> Alex
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.