Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use javascript in servlet?

 
kuni patel
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to use javascript in servlet?



Plz, give me solution .......
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't use Javascript in a servlet.
To a servlet, Javascript is nothing more than text (just as HTML is).
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
You don't use Javascript in a servlet.
To a servlet, Javascript is nothing more than text (just as HTML is).


Quite right.
It means you can write javascript in your response like HTML. And it will get executed at client-side.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're talking about executing a JavaScript script in a servlet (as opposed to executing it in the web browser), have a look at Rhino. It is a JavaScript engine written in Java, and thus embeddable into a servlet.
 
Hetal Thakkar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Comments removed, sorry]
[ September 26, 2005: Message edited by: David O'Meara ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are unable to moderate posts that are not in English.
My apologies for removing you post, please post it again.

thanks,
Dave.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic