• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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: 24564
168
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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic