aspose file tools*
The moose likes Portals and Portlets and the fly likes executing a javascript function from a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "executing a javascript function from a servlet" Watch "executing a javascript function from a servlet" New topic
Author

executing a javascript function from a servlet

laura mccord
Ranch Hand

Joined: Feb 10, 2009
Posts: 108
I have a portlet that performs a file-upload that uses ajax. The form is in a jsp page and the action executes a servlet and the form also executes a javascript function onsubmit()



My servlet uploads the file correctly but I need to execute the killUpdate() function in order to stop the update listener, though I don't know how to do it. The example code that I obtained has the function being called like below but this won't work within the portal. Here is a snippet of my servlet that tries to call the javascript function



Any suggestions?

Thanks.




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: executing a javascript function from a servlet