Javatpoint Logo

91-9990449935

 0120-4256464

Jsoup Example: print form parameters

In this example, we will print form parameters like parameter name and parameter value. To do so, we are calling getElementById() method of Document class and getElementsByTag() method of Element class.

register.html
JsoupPrintFormParameters.java

Output:

Param name: name 
Param value: sonoo
Param name: password 
Param value: sj
Param name: email 
Param value: sonoojaiswal1987@gmail.com
Param name: submitbutton 
Param value: register
Next TopicJsoup Tutorial