File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 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: 8713
    
    6

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: 8713
    
    6

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
Sent collection through URL
dynamic drop down list values
Connecting two actions to the same ActionForm
saving session variable in drop down list
Drop Downs