Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Execute a Javascript in JSP on server

 
John King
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My JSP contains a Javascript that is executed
with onClick function. When user clicks, this
script is executed on client side. Is there a way
I can execute this script on the web server side
before it is sent to client? Thanks.
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post your code as that will help in knowing what you want to achieve !!!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript can be executed on the server side using BSF - the Bean Scripting Framework. If that is really what you intend.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic