Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display dto value in jsp using struts

Status
Not open for further replies.

usercsc

Programmer
Oct 1, 2004
2
0
0
US
Hi,
I have a text field in my jsp and want to use struts html tags, I am not able to define it as below.. Is there a workaround to this as to how to print the dto value in jsp?

<html:text property="${myForm.dto.id}" />

myForm is the formbean. I have the below defined in my formbean:
private AddNewRecordDTO dto;
public AddNewRecordDTO getDto() {
return dto;
}

public void setDto(AddNewRecordDTO dto) {
this.dto = dto;
}

And my AddNewRecordDTO has the following defined:
private String id;
public String getId() {
return id;
}
public void setId(String Id) {
this.id=Id;
}

Thanks a lot. appreciate any help.
 
Is your formBean a DynaActionForms?

I think you can only have dynamic form field with DynaActionForms.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top