Hello All!
I have prepared a custom tag library (a tld) to display a datagrid. The input to the datagrid is a custom object. The tag looks like the following:
<prefix
atagrid input="<%=customObject%>" />
The customObject is filled in the Action class that forwards the request to this page. Currently I am putting the customObject into HttpServletRequest object in the Action class:
(Action class): request.setAttribute("customObject",customObject);
and retrieving the same in the
JSP page.
(JSP):
request.getAttribute("customObject");
Now, I want this to be done automatically like any
struts object(textbox, check box etc).I want to put the customObject inside the form bean and the TLD should be able to retrieve it based on the property by using the getters and setters of the form bean. Could anyone please enlighten me how to do it.
Thanks,
Phani