This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes jsp javascript funtionality Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jsp javascript funtionality" Watch "jsp javascript funtionality" New topic
Author

jsp javascript funtionality

Odd Kjaerran
Greenhorn

Joined: Sep 04, 2008
Posts: 1
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

Joined: Jan 10, 2002
Posts: 63208
    
  69

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: jsp javascript funtionality
 
It's not a secret anymore!