• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling swing within a servlet

 
Rahul Chhangani
Greenhorn
Posts: 12
Chrome Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65118
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Rahul Chhangani
Greenhorn
Posts: 12
Chrome Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65118
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then what do you need servlets for? You're not making a whole lot of sense.
 
Rahul Chhangani
Greenhorn
Posts: 12
Chrome Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65118
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
Chrome Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, thanks...Java Web Start is good solution,
as google, it' is nearest to my requirements...
i'll try this...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic