Hi,
   I also faced the same problem for a simple AJAX Call.

In case of Ajax request you should return null from your Action execute()
code;

Animesh


On 9/11/07, aarthy <[EMAIL PROTECTED]> wrote:
>
>
> HI,
> I am newbie to AJAX.I tried to run a sample code from the below link
>
> http://struts.javabeat.net/articles/2007/06/ajax-support-in-struts-2-0/2
> http://struts.javabeat.net/articles/2007/06/ajax-support-in-struts-2-0/2
>
> I'm getting this error message.
> Stacktrace:
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(
> JspServletWrapper.java:467)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :371)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:315)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
>
> root cause
>
> javax.servlet.ServletException: Cannot retrieve definition for form bean
> null on action ShowCharacters.do
>
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(
> PageContextImpl.java:846)
>
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImpl.java:779)
>         org.apache.jsp.WEB_002dINF.jsp.tvshow_jsp._jspService
> (tvshow_jsp.java:102)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :328)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:315)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
>
> root cause
>
> javax.servlet.jsp.JspException: Cannot retrieve definition for form bean
> null on action ShowCharacters.do
>         org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:761)
>         org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
>
> org.apache.jsp.WEB_002dINF.jsp.tvshow_jsp._jspx_meth_html_005fform_005f0
> (tvshow_jsp.java:118)
>         org.apache.jsp.WEB_002dINF.jsp.tvshow_jsp._jspService
> (tvshow_jsp.java:95)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :328)
>         org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:315)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> Please help.
>
> Thanks,
> Aarthy
> --
> View this message in context:
> http://www.nabble.com/AJAX-in-Struts-tf4420598.html#a12608944
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Animesh Saxena


http://inlovewithlinux.blogspot.com
http://ihateaspdotnet.blogspot.com

Reply via email to