You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nandkumar Jawale <na...@mahindrabt.com> on 2002/12/05 12:23:43 UTC

[newbie]html:form does not generates proper html

Hi,

I am new to struts. Currently I am using struts 1.0.2. I am showing some
settings for which I have a settings form to store the values and two
actions. One to "edit" and one to "save". My JSP contains:
<html:form action="/save.action">
...
</html:form>

I find the html does not contain the action that I specified. What I get
in html is:
<form name="settingsForm" method="POST" action="">

Am I doing something wrong? Can't find any doc/link that addresses this
problem. Please help!

Best Regards,
Nandkumar Jawale

*********************************************************
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [newbie]html:form does not generates proper html

Posted by Nandkumar Jawale <na...@mahindrabt.com>.
Hi,

Here are contents of my structs-config.xml:

<form-bean name="settingsForm"
           type="ahf.model.SettingsForm"/>
......
......
<action path     ="/edit"
        type     ="EditAction"
        name     ="settingsForm"
        input    ="/settings.jsp"
        validate ="false">
</action>
<action path     ="/save"
        type     ="SaveAction"
        name     ="settingsForm"
        input    ="/settings.jsp">
</action>

"*.action" is mapped to ActionServlet. Tried changing from
"/save.action" to "/save" in JSP but no use.

Thanks,
Nandu

Mark wrote:
>
> Your form action should be firing up your action defined in your
> struts-config.xml.
>
> I think stuts-config.xml is what you have to look at..
>
> Cheers mark
>
> On 5-12-2002 12:23, "Nandkumar Jawale" <na...@mahindrabt.com> wrote:
>
> > Hi,
> >
> > I am new to struts. Currently I am using struts 1.0.2. I am showing some
> > settings for which I have a settings form to store the values and two
> > actions. One to "edit" and one to "save". My JSP contains:
> > <html:form action="/save.action">
> > ...
> > </html:form>
> >
> > I find the html does not contain the action that I specified. What I get
> > in html is:
> > <form name="settingsForm" method="POST" action="">
> >
> > Am I doing something wrong? Can't find any doc/link that addresses this
> > problem. Please help!
> >
> > Best Regards,
> > Nandkumar Jawale
> >
> > *********************************************************
> > Disclaimer
> >
> > This message (including any attachments) contains
> > confidential information intended for a specific
> > individual and purpose, and is protected by law.
> > If you are not the intended recipient, you should
> > delete this message and are hereby notified that
> > any disclosure, copying, or distribution of this
> > message, or the taking of any action based on it,
> > is strictly prohibited.
> >
> > *********************************************************
> > Visit us at http://www.mahindrabt.com
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: <ma...@jakarta.apache.org>
> >
> >
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

*********************************************************
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [newbie]html:form does not generates proper html

Posted by Mark <ma...@libero.it>.
Your form action should be firing up your action defined in your
struts-config.xml. 

I think stuts-config.xml is what you have to look at..

Cheers mark

On 5-12-2002 12:23, "Nandkumar Jawale" <na...@mahindrabt.com> wrote:

> Hi,
> 
> I am new to struts. Currently I am using struts 1.0.2. I am showing some
> settings for which I have a settings form to store the values and two
> actions. One to "edit" and one to "save". My JSP contains:
> <html:form action="/save.action">
> ...
> </html:form>
> 
> I find the html does not contain the action that I specified. What I get
> in html is:
> <form name="settingsForm" method="POST" action="">
> 
> Am I doing something wrong? Can't find any doc/link that addresses this
> problem. Please help!
> 
> Best Regards,
> Nandkumar Jawale
> 
> *********************************************************
> Disclaimer
> 
> This message (including any attachments) contains
> confidential information intended for a specific
> individual and purpose, and is protected by law.
> If you are not the intended recipient, you should
> delete this message and are hereby notified that
> any disclosure, copying, or distribution of this
> message, or the taking of any action based on it,
> is strictly prohibited.
> 
> *********************************************************
> Visit us at http://www.mahindrabt.com
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>