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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]



---------------------------------------------------------------------

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]






__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to