File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 42965
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!