This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Accessing HTML elements from Java Program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Accessing HTML elements from Java Program" Watch "Accessing HTML elements from Java Program" New topic
Author

Accessing HTML elements from Java Program

Robert, Blum
Greenhorn

Joined: May 31, 2001
Posts: 6
i am writing a shopping cart application and am trying to access an array of elements displayed on HTML page.
------------------
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Checkout the servlet methods getParameter() & getParameterValues().

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Robert, Blum
Greenhorn

Joined: May 31, 2001
Posts: 6
Originally posted by Robert, Blum:
i am writing a shopping cart application and am trying to access an array of elements displayed on HTML page.

Iwould like to access the DOM similar to JavaScript forms[].elements[] etc..

------------------
 
 
subject: Accessing HTML elements from Java Program