Hi Kartikeyan,
Have you debugged and checked the HTML data table. This HTML data table must be containing the tags data i.e First name and Last name in your case.
CALL METHOD gr_html->load_data(
Alternatively also check table WWWDATA for the object ID. Also the demo program that Manish Kumar has mentioned is a good example for it. You can check subroutine LOAD_HOME_PAGE where the data is populated.
Hope this helps.
Thanks,
Tooshar Bendale