• 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
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

is there any possibility to use JSP without java script?

 
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is there any possibility to use JSP without java script?.

I do not want to use Java script in JSP but whatever javascript doing ,should be implemeted in JSP either scriplet or tag? ,
 
Sheriff
Posts: 9711
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
javascript and JSP are two different things. How can scriptlets replace javascript??
 
jacob deiter
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ankit Garg wrote:javascript and JSP are two different things. How can scriptlets replace javascript??



Yes I do agree that both are different,but my expectation is to drop javascript code from JSP page and functionality such getting data of input box,browser-side-validation etc are done using Javascript .So I want to know how these functionality can be implemented in JSP???
 
Ankit Garg
Sheriff
Posts: 9711
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jacob deiter wrote:my expectation is to drop javascript code from JSP page and functionality such getting data of input box,browser-side-validation etc are done using Javascript. So I want to know how these functionality can be implemented in JSP???



Well client side functionality CANNOT be done in JSP. JSP code runs in the web server. So you can't expect to validate your form in the browser using JSP...
 
jacob deiter
Ranch Hand
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I familiar with JSp but I do not want to Javascript.Without java script ,how a presentation layer can be designed ??, or I have to drop both HTML and javascript and choose some other technology to design presentation layer??.If it is so then write the name of those technologies???

please suggest me ??

 
Ankit Garg
Sheriff
Posts: 9711
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Apart from HTML, you can render your page in Flash (which I think is more complicated than HTML). And javascript is not mandatory if you want to design user interface. It is only needed to do dynamic processing on the client browser. You can design an application without using javascript too...
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I familiar with JSp but I do not want to Javascript.Without java script ,how a presentation layer can be designed ??, or I have to drop both HTML and javascript and choose some other technology to design presentation layer??.


It sounds as if you're quite confused about the various technologies involved in creating web apps. JSPs have nothing to do with JavaScript. If you don't want a JSP to create JavaScript, then don't have it create JavaScript. JavaScript is not required to create an HTML interface (which is what JSPs are generally used for).
 
Sheriff
Posts: 67762
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As already pointed out, it's entirely possible to write JSp without JavaScript, just as it is possible to write HTML without javaScript.

But, you cannot use JSP as a substitute for JavaScript. JSP runs on the server to format the HTML page to send to the client. It's involvement finishes when the page leaves the server. Perhaps this article will be helpful.

 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jacob deiter wrote:Yes I do agree that both are different,but my expectation is to drop javascript code from JSP page and functionality such getting data of input box,browser-side-validation etc are done using Javascript .So I want to know how these functionality can be implemented in JSP???


Certainly it can. Just submit the form to the server and do your validation/prepopulation/etc things there using a servlet.
 
reply
    Bookmark Topic Watch Topic
  • New Topic