RE: Error 500: Cannot retrieve definition for form bean null
Set u r form bean in either request r in session.The session r request key should be u r name of u r formbean Ex: request.setAttribute(UpdateOrderForm,objectrefernce); Thanks, Nadeem, Wipro Technologies,Chennai Tel - 91-44-4500200 X : 2111 Mobile : 98401 47663 -Original Message- From: MarwanSalam [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 6:42 AM To: [EMAIL PROTECTED] Subject: Error 500: Cannot retrieve definition for form bean null Hi, I am getting Error 500: Cannot retrieve definition for form bean null when I use the form tag html:form action=/updateOrder.do. However, if I use form action=updateOrder.do method=post, I don't get that error. Is there something wrong I am doing? Here is the action-mapping from struts-config: actionpath=/updateOrder type=mypackage.UpdateOrdersAction name=updateOrderForm scope=session validate=false input=/updateorder.jsp forward name=update path=/showorderdetails.jsp/ forward name=edit path=/updateorder.jsp/ /action Here is my form-bean definition from struts-config: form-bean name=updateOrderForm type=mypackage.UpdateOrderForm/ Thanks, Marwan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] **Disclaimer** Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error 500: Cannot retrieve definition for form bean null
Ignore if you already fixed this, but the tag usage should be: html:form action=/updateOrder not: html:form action=/updateOrder.do The reason for this is so Struts can append the extension that you defined in the servlet mapping (e.g. .do)--this way you can change the servlet mapping later without changing any of your html:form tags in your jsps. :) --joe -Original Message- From: MarwanSalam [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 5:12 PM To: [EMAIL PROTECTED] Subject: Error 500: Cannot retrieve definition for form bean null Hi, I am getting Error 500: Cannot retrieve definition for form bean null when I use the form tag html:form action=/updateOrder.do. However, if I use form action=updateOrder.do method=post, I don't get that error. Is there something wrong I am doing? Here is the action-mapping from struts-config: actionpath=/updateOrder type=mypackage.UpdateOrdersAction name=updateOrderForm scope=session validate=false input=/updateorder.jsp forward name=update path=/showorderdetails.jsp/ forward name=edit path=/updateorder.jsp/ /action Here is my form-bean definition from struts-config: form-bean name=updateOrderForm type=mypackage.UpdateOrderForm/ Thanks, Marwan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error 500: Cannot retrieve definition for form bean null
Are you sure fields of bean UpdateOrderForm.java match (get/set) fields in your html form. jim MarwanSalam wrote: Hi, I am getting Error 500: Cannot retrieve definition for form bean null when I use the form tag html:form action=/updateOrder.do. However, if I use form action=updateOrder.do method=post, I don't get that error. Is there something wrong I am doing? Here is the action-mapping from struts-config: actionpath=/updateOrder type=mypackage.UpdateOrdersAction name=updateOrderForm scope=session validate=false input=/updateorder.jsp forward name=update path=/showorderdetails.jsp/ forward name=edit path=/updateorder.jsp/ /action Here is my form-bean definition from struts-config: form-bean name=updateOrderForm type=mypackage.UpdateOrderForm/ Thanks, Marwan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]