This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JSP and the fly likes ace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "ace" Watch "ace" New topic


vatsala ven

Joined: Feb 26, 2010
Posts: 6
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 650
Keep in mind that the JSP "code" is actually running on the server, while the JavaScript is running on the client (in the browser or whatever). This means that by the time the JavaScript is run, the Servlet container has already processed the JSP page and generated the result HTML page.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63333

jaavscript? Please take more care when posting.

What you are asking is not possible. You have a basic misunderstanding about how JSP works. Please read this article which will explain all.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: ace
jQuery in Action, 3rd edition