Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsp and java script  RSS feed

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

JSP pages reside in the server and the java script is used for client site validations.

What does it do if i put javascript(client side validations) into JSP page.

does it mean when client access a perticular JSP page, javascript get loaded onto client's system and does the validation work?

please correct me if i'm worng.

regards,
rahul
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65828
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP is just a server-side templating engine that dynamically creates HTML pages to send the client. From the browser point of view, it doesn't know the difference between a JSP page and an HTML page.

Given that knowledge, how does it affect your question?

You can also read this article for greater detail.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!