PDA

View Full Version : need help with EXTJS Grid



sivam1256
18 Feb 2010, 11:56 AM
Hello Every One,

I am trying to get data in to ExtJs grid from my jsp . Can any body help me out?

I dont have any idea of getting my data from the object in jsp into the array in ExtJs.

I am ataching my code part of my jsp where I am getting data.

<c:forEach var="bmsUserDetail1" items="${bmsUserDetail1}">
<tr>

<td><c:out value="${bmsUserDetail1.userId} "/></td>
<td ><c:out value="${bmsUserDetail1.firstName}"/></td>
<td ><c:out value="${bmsUserDetail1.lastName}"/></td>
<td ><c:out value="${bmsUserDetail1.emailId}"/></td>
<td ><c:out value="${bmsUserDetail1.address}"/></td>
<td ><c:out value="${bmsUserDetail1.city}"/></td>
<td ><c:out value="${bmsUserDetail1.state}"/></td>
<td ><c:out value="${bmsUserDetail1.country}"/></td>
<td><c:out value="${bmsUserDetail1.zipCode}"/></td>
<td ><c:out value="${bmsUserDetail1.phoneNo}"/></td>
<td ><c:out value="${bmsUserDetail1.password}"/></td>
<td ><c:out value="${bmsUserDetail1.roleId}"/></td>
<td ><c:out value="${bmsUserDetail1.departmentId}"/></td>
</tr>

</c:forEach>


Now I need to get this data in to EXTJS grid .

Thanks in advance.

tryanDLS
18 Feb 2010, 2:09 PM
You have to write server code to generate the correct JSON data string.


http://extjs.com/learn/Ext_FAQ_Grid

sivam1256
18 Feb 2010, 4:26 PM
Thanks for the quick response ....I will check that out and hope it will work for me ..

Thanks for helping a newbie out ...keep rocking :)