aspose file tools*
The moose likes JSP and the fly likes Executing Jsp with JavaScript. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Executing Jsp with JavaScript." Watch "Executing Jsp with JavaScript." New topic
Author

Executing Jsp with JavaScript.

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528

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.


If you want something you never had do something which you had never done
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42646
    
  65
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.


Ping & DNS - my free Android networking tools app
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
ulf , did you go through my earlier post ??

and session is part of container know.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42646
    
  65
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

Joined: Jan 30, 2009
Posts: 528
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
 
subject: Executing Jsp with JavaScript.