NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
December 13, 2017, 12:28:32 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"Progress, therfore, is not and accident,¡K" ..."Herbert Spencer(1820-1903, British philosopher)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: EJS to Database Connection  (Read 12003 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Mus
Newbie
*
Offline Offline

Posts: 4

«
Embed this message
on: May 31, 2008, 04:42:13 am » posted from:Adelaide,South Australia,Australia

Hello,
I just wondering if EJS can be connected to the database such as ms.access or mysql.
I am trying to display the graph in applet where the data source (variable X and Y ) are retrieved from ms.access database.
If do you have an example code, could you please send to my email: fimusm@yahoo.com
Thank you in advance.

Regards,
Mus
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: May 31, 2008, 02:11:52 pm »

EJS is a java code generator. You can import any existing java library and use it with EJS.
So if you include java library for mysql , you will be able to execute sql statement with function call and do what you want.
I know that it can be done. But I have never try it.  So I do not have example to share with you.

You can also use AJAX to get the data and send those data to EJS with java script call. For example: snapshot of the simulation was generated this way. Javascript code call public method in EJS and EJS generate snapshot image and return  as data. Then image data sent to php script to create image file. And you can access database with php script easily.
I think this in-direct method will be easier to implement.
Logged
muralijb
Newbie
*
Offline Offline

Posts: 1

«
Embed this message
Reply #2 on: March 09, 2012, 12:58:22 am »

Hello,
I just wondering if EJS can be connected to the database such as ms.access or mysql.
I am trying to display the graph in applet where the data source (variable X and Y ) are retrieved from ms.access database.
If do you have an example code, could you please send to my email: fimusm@yahoo.com
Thank you in advance.

Regards,
Mus


Hi 
any can send EJS Source code..because I need to modify it for Arabic language.
my email id is:krishna.jb@gmail.com
Logged
ahmedelshfie
Ahmed
Hero Member
*
Offline Offline

Posts: 954



«
Embed this message
Reply #3 on: March 13, 2012, 02:42:52 am » posted from:SAO PAULO,SAO PAULO,BRAZIL

If you ask about EJS you can download from Easy Java Simulations

Later unzip and set your path file, Enjoy !!

Logged
Pages: [1]   Go Up
  Print  
"Progress, therfore, is not and accident,¡K" ..."Herbert Spencer(1820-1903, British philosopher)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Two resistors in serial or parallel connection
Electronic
Fu-Kwun Hwang 1 46211 Last post February 09, 2016, 05:02:30 pm
by AlbertRae
web cam connection
Information and Download
stevegr 4 15675 Last post April 21, 2006, 04:01:13 am
by rhipple
Two resistors in serial or parallel connection
electromagnetism
ahmedelshfie 0 3033 Last post May 17, 2010, 07:43:43 pm
by ahmedelshfie
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.063 seconds with 23 queries.since 2011/06/15