• Post Reply 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URGENT---- running javasscript on server side

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using IBM Websphere App server 3,5 advanced edition and IBM Http server.
I want to run the javascript code on the server side to use the jsp objects like request,response,session. But i am not able to do so. I have tried the following 2 options.
<script language ="javascript" runat="server">....</script>
<server>...</server>
CAN ANYONE HELP
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
manchandap,
I hope someone can answer your question. Myself I have never used javascript on the server side.
I hate to say this but, your name does not comply with the Javaranch naming guidelines which can be found at http://www.javaranch.com/name.jsp
In particular you need both a first and last name.
please register again with a valid name.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If what you are looking for is the ability to execute code on the server then you should probably look at Servlet/JSPs or some other mechanism for generating server side code (CGI, PERL, J2EE application servers, ASP, TCL, JHTML etc etc).
If it is really Javascript that you want to execute, I think a previous version of the BroadVision Application server once had a Javascript engine in the back end, but as to where they got it from I can't remember. It was slow as a dog anyways.
Help much?
Dave
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To access the request and response parameters you need to be running a servlet or a JSP.
The JSP spec does actually allow for JSPs to be programmed in any language, even though most implementations only support JSPs in Java. I know that the Resin web server from http://www.resin.com/ supports JSPs written in JavaScript, but you will need to check your documentation to see if your server supports this.
 
Prince Manchanda
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which Web servers support server side javascript.
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know that micro$ofts active server pages can be doen in their vb script or in their version of javascript - they call it jscript. Is that what your thinking of?

Dave
 
Prince Manchanda
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the reply.
i know that microsoft ASP and IIS allow this. But I have to do that in IBM websphere/http--java/jsp environment.
 
reply
    Bookmark Topic Watch Topic
  • New Topic