This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes How to set action of form through javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to set action of form through javascript" Watch "How to set action of form through javascript" New topic
Author

How to set action of form through javascript

Satyajit Bhadange
Ranch Hand

Joined: May 13, 2010
Posts: 104
hi.

I have drop down on my page.

Different action should be called based on drop down value.
Is it possible to achieve ?

Don't want to go through dispatch action way.

Thank you


Thanks
user101
Problems And Solutions - Algorithms
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Satyajit Bhadange wrote:
Is it possible to achieve ?


Certainly. Have you tried to do it? What does your code look like?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Satyajit Bhadange
Ranch Hand

Joined: May 13, 2010
Posts: 104


on chage of dropdown i am setting values like this
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Satyajit Bhadange wrote:


I sure hope that's a typo.

Satyajit Bhadange wrote:


I've never tried document.all. I have used

with success.
Satyajit Bhadange
Ranch Hand

Joined: May 13, 2010
Posts: 104
Hey

thanks for reply.

I tried it with



It worked.Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set action of form through javascript
 
Similar Threads
Drop Downs
dynamic drop down list values
Sent collection through URL
saving session variable in drop down list
Connecting two actions to the same ActionForm