struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin.Bed...@sunlife.com
Subject Re: Error
Date Tue, 08 Oct 2002 20:54:25 GMT



Can you reply with your struts-config.xml settings for the 'lesson1/logon'
action?







"kirusshna" <kirusshna@cyberpros-us.com> on 10/08/2002 04:55:28 PM

Please respond to "Struts Users Mailing List"
       <struts-user@jakarta.apache.org>

To:    "Struts Users Mailing List" <struts-user@jakarta.apache.org>
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <
mailto:struts-user-help@jakarta.apache.org>







---------------------------------------------------------------------------
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message