Meaningless Drivel is fun!*
The moose likes Struts and the fly likes how to deal with this type of ActionForm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to deal with this type of ActionForm" Watch "how to deal with this type of ActionForm" New topic
Author

how to deal with this type of ActionForm

Rajeev Ja
Ranch Hand

Joined: May 06, 2007
Posts: 38
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

Joined: Apr 27, 2003
Posts: 263
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

Joined: Feb 08, 2006
Posts: 948
The general form using html tags is property="patient.patientId". This assumes that you have matching get methods: getPatient().getPatientId().

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to deal with this type of ActionForm