This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.




 
 
subject: executing a javascript function from a servlet
 
Similar Threads
Javascript function trying to access Scriptlet value
Session in HTTPServlet
Dynamically created {input type=file}
A Javascript function is said as "Not a function"
How to get client machine java-version using java,javascript