• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

will it possible to use action.do in normal form tag of html language

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry i didn't understand what u mean i.e, here what is /myApp/
[ December 19, 2005: Message edited by: sumanth divvela ]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:


Hope this helps.

Dan
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the Struts forum.
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
sumanth divvela
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry i am new to this forum that's i have done mistake ....

i will try with ur answer. I'll give reply soon ..ok

thank you
 
sumanth divvela
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
sumanth divvela
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you sir that problem is solved with your answer. Ok

Bye
 
Can't .... do .... plaid .... So I did this tiny ad instead:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic