Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP and Swing

 
Dishpal Bhaluja
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • 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

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic