• Post Reply Bookmark Topic Watch Topic
  • New Topic

is there any possibility to use JSP without java script?  RSS feed

 
jacob deiter
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • 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? ,
 
Ankit Garg
Sheriff
Posts: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javascript and JSP are two different things. How can scriptlets replace javascript??
 
jacob deiter
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • 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: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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: 585
  • Mark post as helpful
  • send pies
  • 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: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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...
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • 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).
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!