Hi,

     I am new to struts and I need help for solving my problem. I have
created a weapplication project using NetBeans with struts framework.

    I am following the tutorial given 
http://www.javabeat.net/articles/21-ajax-support-in-struts-20-2.html HERE . 


    When I run my code I am getting StandardWrapperValve[jsp]: PWC1406:
Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: No getter method available for property
TVShowSelect for bean under name org.apache.struts.taglib.html.BEAN
        at
org.apache.struts.taglib.html.SelectTag.calculateMatchValues(SelectTag.java:266)
        at
org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:200)
        at
org.apache.jsp.tvshow_jsp._jspx_meth_html_select_0(tvshow_jsp.java from
:176)
        at org.apache.jsp.tvshow_jsp._jspx_meth_html_form_0(tvshow_jsp.java
from :147)
        at org.apache.jsp.tvshow_jsp._jspService(tvshow_jsp.java from :115)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
        at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
        at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
        at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
        at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
        at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
        at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
        at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
        at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
        at
com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
        at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
        at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)


Struts-config.xml

<form-beans>
        <form-bean name="emptyForm"
type="org.apache.struts.action.DynaActionForm"/>
</form-beans>
<action-mappings>
        <action path="/Welcome" forward="/welcomeStruts.jsp"/>
        <action path="/showCharacters" 
        name="emptyForm"
        type="ShowTVAction" 
        input="/tvshow.jsp"        
        validate="false" >
            <forward name="success" path="/ShowCharacters.jsp" />
        </action>
</action-mappings>

ShowCharacters.jsp

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>        
        <html:select property="TVShowSelect">
            <logic:present name="characters">
                <%ArrayList ch = (ArrayList)
request.getSession().getAttribute("characters");
            String[] s = new String[ch.size()];
            ch.toArray(s);
            for (int i = 0; i < s.length; i++) {%>
                <html:option value ="" ></html:option>
                <%}%>
            </logic:present>
        </html:select>
        
    </body>
</html>



I am attaching my entire project, please help me out in resolving the
problem.


Thanks in advance, http://www.nabble.com/file/p22867603/StrutsAjax.zip
StrutsAjax.zip 
-- 
View this message in context: 
http://www.nabble.com/No-getter-method-available-for-property-tp22867603p22867603.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to