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

Executing Jsp with JavaScript.

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is in reference to my earlier post "http://www.coderanch.com/t/437140/JSP/java/setting-session-data-with-javascript"

where i was said it was not possible to do server side work with Javascript , which i wrong .



which is possible.

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's this got to do with the server? HTML and embedded JavaScript are used and executed in the browser.

"Server-side JavaScript" means that the script is executed on the server; that is possible only if you use a library like Rhino in the web app.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ulf , did you go through my earlier post ??

and session is part of container know.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't. If by "do server side work with Javascript" you mean that the JavaScript is generated on the server, then you are correct. But everything that's served to a browser is generated by the server, so that's kind of a trivial statement. Of course you can use whatever means a Java web app provides to generate that script code, including customizations based on a user's session. But in terms of execution, JSPs and JavaScript are completely separate from one another.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript is generated on the server, then you are correct.


I never meant this .


 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic