This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Why is Server Side Scripting needed?  RSS feed

 
Ranch Hand
Posts: 1025
2
  • Mark post as helpful
  • send pies
  • Report post to moderator
I understand that server side scripting can be done using NodeJS and other ways. I want to understand why is server side scripting needed?

thanks.
 
Bartender
Posts: 1868
81
Android Chrome IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
If you wanted to use any server resources then you would use probably use server languages especially if you are using a web browser. It could be PHP, ASP, Java, JavaScript, etc
 
Monica Shiralkar
Ranch Hand
Posts: 1025
2
  • Mark post as helpful
  • send pies
  • Report post to moderator
What is an example of using server resources ? If doing database operations is an example of that then I can do that in java instead.

thanks
 
Pete Letkeman
Bartender
Posts: 1868
81
Android Chrome IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
Examples of server resources include:
- file system (storing images, music)
- emailing
- Internet of Things (IoT)


Yes you can use Java to access these. In doing so, Java has become a server side language as it's a language which run on the server which reports the result back to you usually as HTML with CSS.
You could use any other server side language such as PHP, Perl, ASP.Net, Ruby,  Go, Kotlin,  Scala, Perl, C, C++, JavaScript, Bash, Java, etc to access resources on the server and return the results as HTML.
In theory, anything that can be done with a server side language such as NodeJS can be done with any other server side language. However not all languages are setup on the web server and each language has it's own pros and cons.
 
Marshal
Posts: 67191
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is like the 3rd time you've asked variations of this same question, and the answer remains "when you want to".

And it's misleading to continue to refer to it as server-side "scripting". JavaScript running in NodeJS (or any other JS environment) is full-on "programming", so it's properly referred to as server-side programming.

Let's leave the term "scripting" for true scripting such as bash shell scripts.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!