struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Reumann <strut...@reumann.net>
Subject Re: URGENT: unspecified() method is having null form
Date Mon, 28 Mar 2005 18:01:28 GMT
You didn't provide your unspecified method code below. Provide that please.

nitin dubey wrote the following on 3/28/2005 9:35 AM:
> Thanks Saulo for your reply,  here is the code for
> config and html:form
> 
> struts-config.xml
> ~~~~~~~~~~~~~~~~~
> <form-beans>
> 		<form-bean name="commonForm"
> type="com.imc.startec.web.form.CommonForm" />
> 		<form-bean name="dummyForm"
> type="com.imc.startec.web.form.DummyForm" />
> </form-beans>
> 
> <action-mappings>
>       <action path="/admin/main"
>          name="commonForm"
>          parameter="dispatch"	
>          scope="session"
>          input="/admin/Main.jsp" 
>         
> type="com.imc.startec.web.processor.MainAction" >
>          <forward name="self" path="/admin/Main.jsp"
> />
>       </action>
> 
> </action-mappings>
> 
> Main.jsp
> ~~~~~~~~
> <html:form action="/admin/main.do" name="commonForm"
> type="com.imc.startec.web.form.CommonForm"> 
> 	  <html:hidden property="dispatch" value="refresh" />
> </html:form>
> 
> 
> Regards,
> 
> 
> Nitin Dubey
> 
> --- EugĂȘnio Saulo <esaulo@gmail.com> wrote:
> 
>>Check your <action path="/name" ...> definition and
>>the definition of
>>the <form-bean> it uses.
>>Maybe if you paste it here we could help you.
>>
>>Regards,
>>EugĂȘnio Saulo
>>
>>
>>On Mon, 28 Mar 2005 01:39:21 -0800 (PST), nitin
>>dubey
>><nitz_tech@yahoo.com> wrote:
>>
>>>Hello,
>>>
>>>I am using DispatchAction for my application. 
>>
>>When I
>>
>>>use the URL
>>>"http://localhost:8080/myapp/admin/main.do" it
>>>directly hits the unspecified() method first where
>>
>>I
>>
>>>am trying to populate the action form.  The
>>
>>ActionForm
>>
>>>object I am getting in the unspecified() method is
>>>null always.
>>>
>>>Anyone who can tell me why is this happening ? 
>>
>>And
>>
>>>can I use the action form itself to store some
>>>different values that are NOT the controls in HTML
>>
>>and
>>
>>>access them in the JSP to display the contents ? 
>>
>>OR
>>
>>>do I have to go for something like domain objects
>>
>>that
>>
>>>I have to put in the session scope and access them
>>
>>in
>>
>>>JSP ?
>>>
>>>Please suggest..
>>>
>>>Regards,
>>>
>>>Nitin Dubey
>>>
>>>__________________________________
>>>Do you Yahoo!?
>>>Yahoo! Mail - 250MB free storage. Do more. Manage
>>
>>less.
>>
>>>http://info.mail.yahoo.com/mail_250
>>>
>>>
>>
> ---------------------------------------------------------------------
> 
>>>To unsubscribe, e-mail:
>>
>>user-unsubscribe@struts.apache.org
>>
>>>For additional commands, e-mail:
>>
>>user-help@struts.apache.org
>>
>>>
>>
> ---------------------------------------------------------------------
> 
>>To unsubscribe, e-mail:
>>user-unsubscribe@struts.apache.org
>>For additional commands, e-mail:
>>user-help@struts.apache.org
>>
>>
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/ 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


-- 
Rick

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


Mime
View raw message