Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

applet screen  RSS feed

 
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am doing a program like this in applet with mysql:
if anyone dial a number 121277737 from an extension for ex:5110,the id,status,inbound ,outbound for both these numbers are getting stored in database at the same time.like the following:
Extension Id status inbound outbound
5110 34574.11 up sip/9812 sip/9823
12127773 34574.12 Ring sip/9811 sip/9825
Now i have to retrieve all these datas and have to display like the following:

Extension dialed num
5110 12127773

How could i retrieve the number which is stored in Extension and display it as dialed number.Anybody assist me.

Thanks.
 
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the JDBC forum, as there seems to be nothing applet-specific about the question.

Note that it's generally considered bad design to use JDBC from within an applet; it also has security implications.
 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then where should i display the details like this:
Extension dialed number
5110 1232333

instead of applet?
 
Ulf Dittmer
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you were asking about retrieving data from a DB - that's what makes the topic appropriate for this forum.

If you're also wondering about displaying it using a GUI, then that would be a separate question best asked in the AWT/Swing forum. But I see nothing applet-specific here.

Whether a regular web app based on servlets/JSP would be a better fit than an applet (and it may well be) we can't say, because we don't know the circumstances of the application. Generally I wouldn't consider applets just for displaying information, unless there's substantial user interaction and potential for client-side processing.
 
The human mind is a dangerous plaything. This tiny ad is pretty safe:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!