Re: Ajax using XMLHttpRequest and Struts

2007-09-11 Thread Van Riper
On 9/11/07, aarthy <[EMAIL PROTECTED]> wrote: > > I am stuckup in this issue for a week.Please somebody help me on this please. > > > Frank W. Zammetti wrote: > > > > Something is wrong in your JSP... looks like that stack trace was cut off, > > but your beyond the AJAX parts at this point, you nee

Re: Ajax using XMLHttpRequest and Struts

2007-09-11 Thread Dave Newton
--- aarthy wrote: > I am stuckup in this issue for a week.Please > somebody help me on this please. <% int i = 0; ArrayList ch = (ArrayList) request.getSession().getAttribute("characters"); String[] s = new String[ch.size()]; ch.toArray(s); for (Iterator it = s.length; it.hasNext(); ) {

Re: Ajax using XMLHttpRequest and Struts

2007-09-11 Thread aarthy
I am stuckup in this issue for a week.Please help me with someone on this please. Frank W. Zammetti wrote: > > Something is wrong in your JSP... looks like that stack trace was cut off, > but your beyond the AJAX parts at this point, you need to find the error > in your JSP. > > -- > Frank W.

Re: Ajax using XMLHttpRequest and Struts

2007-09-11 Thread Frank W. Zammetti
Something is wrong in your JSP... looks like that stack trace was cut off, but your beyond the AJAX parts at this point, you need to find the error in your JSP. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL P

Re: Ajax using XMLHttpRequest and Struts

2007-09-11 Thread aarthy
Frank, I tried forwarding it to a jsp page ShowCharacters.jsp <%int i = 0; ArrayList ch = (ArrayList) request.getSession().getAttribute("characters"); String[] s = new String[ch.size()]; ch.toArray(s); for (Iterator it = s.len

Re: Ajax using XMLHttpRequest and Struts

2007-09-11 Thread Frank W. Zammetti
Simply forward to a JSP and render your output there, same as any Struts Action. It can be XML, JSON, HTML, some custom format, whatever. I wish I had written that article showing that in the first place since this is a question that gets asked all the time, but I thought this was simpler (one le