Home  >  Q&A  >  body text

java - When the form action in jsp or aspx submits the form, why is it submitted to itself or to another jsp or aspx instead of to the server?

Submitting a form is to submit the data entered by the user on the page. Logically speaking, these data should be submitted to the server. Why is it submitted to its own page?
Is it possible that this jsp file or aspx file has been bound to the background java file or c# file in a certain configuration file?
But I see that there is an aspx file with nothing else in it except html code. . . It has received the data submitted by itself and knows how to process it?
jsp servlet and asp.net should have the same principle, so everyone can just talk about one of them, thank you

To be honest, I am a product developer, but I want to understand web development. I have programming experience in C and python before, but none of them involve web. Now that I have started, I feel that web development is really difficult. Yes, mainly because there are many concepts that need to be understood. Maybe it won’t be difficult after you understand them

怪我咯怪我咯2711 days ago620

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-18 10:46:57

    To be precise, it is sent to the Web container, and then the request is forwarded through the Web container, and finally the Form data is transmitted to the background servlet

    reply
    0
  • Cancelreply