aspose file tools*
The moose likes JNLP and Web Start and the fly likes calling swing within a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "calling swing within a servlet" Watch "calling swing within a servlet" New topic
Author

calling swing within a servlet

Rahul Chhangani
Greenhorn

Joined: Oct 09, 2012
Posts: 8

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: 61768
    
  67

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rahul Chhangani
Greenhorn

Joined: Oct 09, 2012
Posts: 8

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: 61768
    
  67

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

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: 61768
    
  67

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

ok, thanks...Java Web Start is good solution,
as google, it' is nearest to my requirements...
i'll try this...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling swing within a servlet