This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes To get a number from html page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "To get a number from html page" Watch "To get a number from html page" New topic

To get a number from html page

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
In my html page,if i click a number,that number should be captured in my java program.Is it possible?
For ex :my html code is

I should get that 5101 in my java java code follows:

In this place 5101 given in originateAction.setChannel("local"+'/'+"5101"),
I have to get the number which is posted in html form.Is it possible to get the number in a variable and substitute it in the place "5101"?is it possible to do?or wrong idea?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
Where does "my java code" exist - as part of a web app? If so, you could make the number a link that submits to the server and then executes this Java code. If not, please elaborate.
I agree. Here's the link:
subject: To get a number from html page
It's not a secret anymore!