Although it's a Struts question I will answer it here:
Yes, you can use struts actions in normal html <form>s, just be sure to specify the whole path to the action, something like /myApp/myAction.do Example:
Ok, so you have your form ... This form points to a certain action within the application context. This action has a specific url. Let's say you application has the following url:
In the above case the server will call something like
when you submit the form. When you use <html:form action="/myAction"> struts automatically translates "/myAction" to "/myApplication/myAction.do". Since you don't want to use struts' <html:form> tag you will have to do this yourself, like this:
Since you want the code to be portable (i.e. not to depend on the application name) you may want to put
instead of /myApplication (so you can change the name to /myOtherApplication and still use the form).
Hope it's clear now.
Dan
PS: Try not to edit your original post when you answer. Post a reply instead. [ December 19, 2005: Message edited by: Daniel Platon ]
ok i tried with ur suggestions but still i am getting same error. i have posted the same question today also sir in that i have mentioned everything with code my intension. please check the posted question sir.