Author
calling swing within a servlet
Rahul Chhangani
Greenhorn
Joined: Oct 09, 2012
Posts: 8
posted Oct 09, 2012 18:24:08
0
will any one please tell me how i call swing within a servlet....
i wants to invoke swing from web server,
....
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56202
You don't. What would be the point? The Swing components can't appear in the browser, so why would you want to use Swing?
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About Bear ]
Rahul Chhangani
Greenhorn
Joined: Oct 09, 2012
Posts: 8
posted Oct 12, 2012 12:19:22
0
m designing such a software where i need to implement swing, but what i need is that to implement that software serverside, so want to use other rich components of various other languages, so i want to implement all with swing.
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56202
Then what do you need servlets for? You're not making a whole lot of sense.
Rahul Chhangani
Greenhorn
Joined: Oct 09, 2012
Posts: 8
posted Oct 12, 2012 12:29:11
0
servlet implement server side functionality as, database access, insert or any query
and i wants that if swing implemented with servlet then the app access remotely via web browser
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56202
Rahul Chhangani wrote: servlet implement server side functionality as, database access, insert or any query
You don't need servlets to access a DB -- your Swing app can do that via JDBC or any JPA implementation.
and i wants that if swing implemented with servlet then the app access remotely via web browser
You can't mix Swing and servlets. If you want your swing app to be easily downloaded via the web, that's the job of Java Web Start, not servlets.
Rahul Chhangani
Greenhorn
Joined: Oct 09, 2012
Posts: 8
posted Oct 12, 2012 12:40:04
0
ok, thanks...Java Web Start is good solution,
as google, it' is nearest to my requirements...
i'll try this...
subject: calling swing within a servlet