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 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
A Javascript function is said as "Not a function"
How to get client machine java-version using java,javascript
Session in HTTPServlet
Javascript function trying to access Scriptlet value
Dynamically created {input type=file}