Home > Back-end >  In the JSP Java small script for the value of the input value
In the JSP Java small script for the value of the input value

Time:10-01

Want to excuse me everybody a great god, and the small Java script in the Jsp can't use a request to obtain the value of the input value (request. The getParameter), I Buddha, is how to get

CodePudding user response:

Said post code, so we can only guess!

CodePudding user response:

reference response: 1/f friendship dream
post code, just say that we can only guess.

Come here, sorry oh, thoughtless

CodePudding user response:

You haven't reached the background in the controller, how is it possible to directly access to? You can use js to directly access!

CodePudding user response:

references reply: 3/f friendship dream
you haven't reached the background in the controller, how is it possible to directly access to? You can use js to directly access!
this page can't use the request object to obtain the value value, right

CodePudding user response:

reference how old this year, 4/f response:
Quote: refer to the third floor response: friendship dream

You haven't reached the background in the controller, how is it possible to directly access to? You can use js to directly access!
this page can't use a request object to obtain the value value on
can get, but must be through the background, and then in the JSP access to ah, you click on the button, for example, these parameters into the background, and then from the JSP can get access to the inside

CodePudding user response:

refer to fifth floor response: friendship dream
Quote: refer to how old this year, 4/f response:

Quote: refer to the third floor response: friendship dream

You haven't reached the background in the controller, how is it possible to directly access to? You can use js to directly access!
this page can't use a request object to obtain the value value on
can get, but must be through the background, and then in the JSP access to, for example, if you click on the button, the parameters in the background, and then get to obtain from a JSP to
but it will refresh the page, this and the original idea is a little differences

CodePudding user response:

Is that what you need?

CodePudding user response:

refer to 7th floor response: friendship dream
what is your demand?
I want to achieve after the click of a button, according to the button text query and retrieve data in the database, then displayed on the client side

CodePudding user response:

refer to 7th floor response: friendship dream
what is your demand?
and do not refresh the page of that kind of

CodePudding user response:

Ajax will use? To obtain the value of the button and then sent to the background, and then put the data back to the front end?

CodePudding user response:

The
references to the tenth floor response: friendship dream
ajax will use? To obtain the value of the button and then sent to the background, and then put the data back to the front end?
won't refresh the page

CodePudding user response:

11 references, how old is this year's reply:
Quote: reference to the tenth floor response: friendship dream

Ajax will use? To obtain the value of the button and then sent to the background, and then put the data back to the front end?
isn't refresh the page it
how ajax to refresh the page???????

CodePudding user response:

Need me to help you write? Add my qq: 335817710

CodePudding user response:

refer to 12th floor response: friendship dream
Quote: 11 references, how old is this year's reply:

The
Quote: reference to the tenth floor response: friendship dream

Ajax will use? To obtain the value of the button and then sent to the background, and then put the data back to the front end?
isn't refresh the page it
how ajax to refresh the page???????
well, to learn, thank you

CodePudding user response:

refer to the 13th floor response: friendship dream
want me to help you write? Add my qq: 335817710
add you for a long time, a great god

CodePudding user response:

JS and the use of JSP chaos,
JSP itself is a Java class, the browser request, Java will read the JSP into HTML file to the browser, and, at this time of the JSP life cycle has ended,
Whatever is happening in the browser, drink a JSP file it doesn't matter,
You're going to request the data access server, now want to use the from, or js to send the request,

What page request to the background, must be JS to send the request, the Java code in the JSP can directly read the content in the HTML tags,

CodePudding user response:

_ datang ssangyong reference 16 floor response:
JS and the use of JSP chaos,
JSP itself is a Java class, the browser request, Java will read the JSP into HTML file to the browser, and, at this time of the JSP life cycle has ended,
Whatever is happening in the browser, drink a JSP file it doesn't matter,
You're going to request the data access server, now want to use the from, or js to send the request,

What page request to the background, must be JS to send the request, the Java code in the JSP cannot directly read the content in the HTML tag,

See see, thanks to the great god

CodePudding user response:

Is there any form form, there is no how to submit the form, submit to who

CodePudding user response:

refer to fifth floor response: friendship dream
Quote: refer to how old this year, 4/f response:

Quote: refer to the third floor response: friendship dream

You haven't reached the background in the controller, how is it possible to directly access to? You can use js to directly access!
this page can't use a request object to obtain the value value on
can get, but must be through the background, and then in the JSP access to, for example, if you click on the button, the parameters in the background, and then get to obtain from a JSP to

to send requests to the backgroundTo get a
  • Related