*
The moose likes HTML, CSS and JavaScript and the fly likes call javascript function from a jsp page 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 » Engineering » HTML, CSS and JavaScript
Bookmark "call javascript function from a jsp page" Watch "call javascript function from a jsp page" New topic
Author

call javascript function from a jsp page

Pravin Shirke
Ranch Hand

Joined: Apr 05, 2008
Posts: 150

i have a jsp page say Login.jsp from that i am trying to call a function which is inline javascript code embeded inside the script tag inside the head tag now from that function i am trying to call a function from a javascript file say Common.js on click of a submit button but its not getting invoked!!! can anybody please help??


[Vipassana] - It is seeing the reality as it is, And not as you want it to be.!!!
SCJP1.5.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60761
    
  65

The fact that this is in a JSP is moot. An HTML file gets delivered to the browser no matter how it was generated on the server.

Originally posted by pravin shirke:
can anybody please help??
Not with what you've shown. Where's the code? (Be sure to use UBB code tags).


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Don't get me started about those stupid light bulbs.
 
subject: call javascript function from a jsp page
 
Similar Threads
jsp and javascript
Calling JSP method from within a javascript function?
response to JSP
jsp:forward issue
how to call javascript function of another jsp from one jsp