HI Kevin, Thanks for the intrest.
I am attaching the jsp and config file . Thanks kirusshna -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 1:54 PM To: Struts Users Mailing List Subject: Re: Error Can you reply with your struts-config.xml settings for the 'lesson1/logon' action? "kirusshna" <[EMAIL PROTECTED]> on 10/08/2002 04:55:28 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: (bcc: Kevin Bedell/Systems/USHO/SunLife) Subject: Error Hi, I am new to struts and I have problem in getting the jsp up. In a form I have three buttons, <html:form action="lesson1/logon1.do"> <SCRIPT> function set(target){ document.forms[0].dispatch.value=target; } </SCRIPT> <html:hidden property="dispatch" value="error"/> <html:submit onclick="set('save');">SAVE</html:submit> <html:submit onclick="set('create');">CREATE</html:submit> <html:submit onclick="set('delete);">DELETE</html:submit> </html:form> and in the struts-config, <action path="/lesson1/logon4" type="com.jspinsider.struts.lesson1.buttonaction" name="lesson1" scope="request" validate="false" parameter="dispatch"/> <forward name="create" path="/lesson1/home2.jsp?y=1"/> <forward name="save" path="/lesson1/home2.jsp?y=2"/> <forward name="delete" path="/lesson1/home2.jsp?y=3"/> </action> and the lesson1 form has get and set for Dispatch. I am getting the error Cannot find ActionMappings or ActionFormBeans collection at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481) at jrun__lesson1__logon12ejsp13. _jspService(jrun__lesson1__logon12ejsp13.java:9 7) at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunNamedDispatcher.forward (../servlet/JRunNamedDispatc her.java:34) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunRequestDispatcher.forward (../servlet/JRunRequestDis patcher.java:88) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131) at allaire.jrun.servlet.JvmContext.dispatch (../servlet/JvmContext.java:330) at allaire.jrun.jrpp.ProxyEndpoint.run(../jrpp/ProxyEndpoint.java:382) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) while accessing the jsp. And one more thing, when I try to use a radio button or check box, I am getting No getter method available for property selection for bean under name org.apache.struts.taglib.html.BEAN at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:471) at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:1015) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet error. Can anyone help on this ? Thanks in advance kirusshna -- To unsubscribe, e-mail: < mailto:[EMAIL PROTECTED]> For additional commands, e-mail: < mailto:[EMAIL PROTECTED]> --------------------------------------------------------------------------- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --------------------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
logon1.jsp
Description: Binary data
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> <struts-config> <!-- ========== Form Bean Definitions =================================== --> <form-beans> <form-bean name="lesson1" type="com.jspinsider.struts.lesson1.logonform"/> </form-beans> <form-beans> <form-bean name="hyp" type="com.jspinsider.struts.lesson1.hypform"/> </form-beans> <!-- ========== Global Forward Definitions ============================== --> <global-forwards> <forward name="start" path="/index.jsp"/> </global-forwards> <!-- ========== Action Mapping Definitions ============================== --> <action-mappings> <!-- lesson1 action --> <action path="/lesson1/logon1" type="com.jspinsider.struts.lesson1.logonaction" name="lesson1" input="/lesson1/logon.jsp"> <forward name="home" path="/lesson1/home.jsp"/> <forward name="logon" path="/lesson1/logon.jsp"/> </action> <action path="/lesson1/logon2" type="com.jspinsider.struts.lesson1.logonaction" name="lesson1" input="/lesson1/logon.jsp"> <forward name="home" path="/lesson1/home1.jsp?y=2"/> <forward name="logon" path="/lesson1/logon.jsp?y=2"/> </action> <action input="/lesson1/logon.jsp" name="hyp" path="/lesson1/logon3" type="com.jspinsider.struts.lesson1.hypaction" validate="false"> <forward name="success" path="/lesson1/home2.jsp?y=2"/> </action> <action path="/lesson1/logon4" type="com.jspinsider.struts.lesson1.buttonaction" name="lesson1" scope="request" validate="false" parameter="dispatch"/> <forward name="create" path="/lesson1/home2.jsp?y=1"/> <forward name="save" path="/lesson1/home2.jsp?y=2"/> <forward name="delete" path="/lesson1/home2.jsp?y=3"/> </action> </action-mappings> </struts-config>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>