Is there a way for JSP to get value from id element in a html? Just like what javascript doing document.getElementById.value

Recommended Answers

All 3 Replies

Why do you want to do this? There is request.getParameter("name") where the name is the name of the input you have. What do you want to take? The parameters of the forms that was submitted or something else?

I do not want to use form, instead, I would like to use id only. Can JSP take ID element value?

why don't you want to use a form? that is exactly designed to communicate the values of the fields to servlets.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.