struts1 + datatable + json ??

struts1 + datatable + json ??

mlotfimlotfi Posts: 60Questions: 5Answers: 0
edited December 2013 in General
Hi,

I have used struts1 with datatable by sending an array from action to jsp the iterate through it, but now the action send a json string, my jsp is like this :

[code]






[/code]

The action :

[code]
......
protected ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
ActionErrors errors = new ActionErrors();
List vAuditLogEntryList = new ArrayList();
AuditLogEntry vAuditLogEntry = null;
org.json.JSONObject vJSonMQFTEAgentStatus = new JSONObject();

......
request.setAttribute("mqFTEAgentStatusDetail", vJSonMQFTEAgentStatus);
return mapping.findForward(SUCCESS);
[/code]


But when I run the code I got :

2013-12-16 13:33:54,668 [http-apr-8080-exec-18] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/Monitoring].[action] - Servlet.service() for servlet [action] in context with path [/Monitoring] threw exception [javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/jsp/mqFteAgentStatusDetailPage.jsp': javax.servlet.jsp.JspException: Cannot find bean: "mqFTEAgentStatusDetail " in any scope] with root cause
javax.servlet.jsp.JspException: Cannot find bean: "mqFTEAgentStatusDetail " in any scope


Thanks, your help is appreciated.
This discussion has been closed.