This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41124
    
  45
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: 41124
    
  45
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.
 
Similar Threads
How can i print selected radio button value
How to remove Textbox Element using DOM in HTML
Handling button events
loss the focus on radio button
form submit