Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To get a number from html page

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 code.my 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?

Thanks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic