• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP and Swing

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a JSP page and I am calling a Swing Application from that page.
I guess the page will be shown at the server side only. and when deployed wont be shown in client side
But how can I make it run on the client side?

A good interface for the test environment was what I was looking for.

Any ideas.Using Struts 1.2

 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Serve up an applet. Applets can run Swing.
 
Dishpal Bhaluja
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guess thats unsafe.But how can I do this.


Can I create a jar file and use JNLP,Webstart to start the swing application from my JSP.

What I currently did is like,

I set my parameters in my action class,and forwards to a jsp page.This jsp page then calls a Swing class
and the windows get initiated.

Now I came to understand that it runs on the server and not in client

So i need a work around

So i have these three GUI related java files in my whole web application.

So now I have two ways ,

1. creating a JAR file out of these three ,[But I am passing parametes to these classes from my JSP.]
and create a JNLP and then use webstart to start the application.I dont know how to do these.
These I collected through googling.

2.Or using the applet method.

Can you shed some light on these issues.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic