Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to deal with this type of ActionForm  RSS feed

 
Rajeev Ja
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
class DepositData extends ActionForm
{
private Patient patient=null;
//contains getters and setters
}
class Patient
{
private String patientId;
}

can any one tell how to deal with action class and how to retrieve
patientId in JSP
Thanks and Regards
Rajeev
 
James Ward
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the execute method of your action class, you have access to the request and response objects! So you can add whatever you like to them and access them in your JSP!
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The general form using html tags is property="patient.patientId". This assumes that you have matching get methods: getPatient().getPatientId().

- Brent
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!