File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript in jsp

 
Deepanjali Reddy
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If a jsp has javascript code embedded in it, What happens to the javascript code at the time of tranformation of that jsp into servlet?

I mean when the jsp gets converted into a servlet, how the javascript code managed?

Thanks.
Deepa.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64204
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepanjali Reddy wrote:I mean when the jsp gets converted into a servlet, how the javascript code managed?

It doesn't get managed in any special way. It's just template text like everything else that's not JSP mechanisms. The JSP engine could care less that it's JavaScript.
 
Deepanjali Reddy
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear Bibeault.

I understood that The javascript code won't be a part of the servlet.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64204
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course it will be. But it will just be template text.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic