Hi,
I am calling a jsp page, from the below hello.jsp page, by clicking on a dropdown menu link “Honda” which refers to a struts action.
|
In struts-config.xml I have put the reference for “Honda.do” as below:-
The action class, i.e. HondaAction is passing the value “hondaPage” as
return (mapping.findForward(“hondaPage”));
hondaCars.jsp is opening fine with all the images, however the content for the dhtmlxGrid is not being displayed. below is the code for my hondaCars.jsp.
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix=“html” %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix=“bean” %>
<script>
var mygrid;
function doInitGrid() {
//init grid and set its parameters (this part as always)
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("../dhtmlx/dhtmlxGrid/codebase/imgs/");
mygrid.setHeader("Model,Qty,Hello");
mygrid.setInitWidths("*,150,150");
mygrid.setColAlign("left,right,right");
mygrid.setSkin("light");
mygrid.init();
}
</script>
<%@ include file="../carimages.jsp"%> |
[u][b]
| [/b][/u]
</html:form>
When I give the direct path, i.e. localhost:8080/Car/Honda.do. Only the code within the div tag for displaying the grid is not working. Please help.
Got a bit close by putting alert statements in function doInitGrid() after every line. Okay so the first line of the function, i.e. mygrid = new dhtmlXGridObject(‘gridbox’); does not executes and the grid is not displayed.
Please help if someone has any idea on it. 
Hi,
I am having same issue like yours using dhtmlxgridtable through Struts 2.0 action.
If you already found solutions. Please share.