• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp javascript funtionality

 
Odd Kjaerran
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
i've added a javascript in � jsp page.

this is a simple document.write

in the document i use window.print() function
but i cannot seem to call it...
i mean the button work and in the window i can ctrl-p to call the dialog but not from the button.

so i wonder:
is there a conflict between jsp and the javascript?
and how can i solve it?





thanks guys and girls
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Odd Kjaerran:
is there a conflict between jsp and the javascript?
No. In fact, they have nothing to do with each other. JSP executes on the server in order to format the HTML page to be sent to the browser. Once at the browser, the HTML page (including its JavaScript) is interpreted by the browser.

Perhaps this article will help with your JSP misconceptions.

If your script isn't working correctly, it's not anything to do with the JSP if the correct HTML/JavaScript is being sent to the browser.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic