Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What happens in background when user clicks on button on jsp?  RSS feed

 
sarita chaudhary
Ranch Hand
Posts: 39
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What happens in background when user clicks on button on jsp?How the request goes?
Can anyone will tell me the steps how it works in detail.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code that is setting behind the click of a button gets executed. In your case, it could be a form submit which means that all the data that the user has inputted is sent to the server which is serving your jsp page.

I would recommend you reading through the Head First Servlets & JSP book.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66200
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It actually has nothing at all to do with JSP. The page, once it is sent to the browser, is just an HTML page like any other. So what happens when you click the button is whatever the semantics of the HTML and JavaScript on the page determine it should be. JSP does not enter in the equation one iota.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!