This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to refres a jsp with the help of Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to refres a jsp with the help of Swing " Watch "How to refres a jsp with the help of Swing " New topic
Author

How to refres a jsp with the help of Swing

Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Hi All,

I want to refresh the jsp page on which a browse button is there on press of which a swing window will open and which will after performing certain operation show a finsih button having "System.exit(0)".


Please help me in case any one hve solution for that.

Thanks
Kushagra
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42360
    
  64
So you want to start a desktop Java app from a web page? That's what Java Web Start (and JNLP) are for. That's part of every JRE.


Ping & DNS - my free Android networking tools app
Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Right and after calling the swing application from the jws I have perfrom certain action on the swing actually process on the ms-word file. And then after that click on the finish button to return on the same jsp page. But now I have some value in the session which I want to show on my jsp page on the click on the finish button. For that I pass call the servlet from the swing and from where I call the Command class. But after that my flow is not moving.


Thanks
Kushagra
Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Hi All,
I have still got no movement in the right direction.
Please help me if anybody have any solution or suggestion.

Thanks
Kushagra
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10486
    
    9

Originally posted by Kushagra Bindal:
But after that my flow is not moving


Did you try running it in a debugger to find out why is it not moving?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Kushagra Bindal
Ranch Hand

Joined: Oct 15, 2008
Posts: 156
Ya I did that.

Actually in my code I moved from Swing to Servlet with the help of URL connection class and after from the servlet I reidrect the flow to the jsp. But the code is not move upto jsp and it is stuck at the command class(Struts). Now I am unable to move the flow from command to jsp.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10486
    
    9

You have the code and still can't figure out why it is not working. How do you expect us to figure out the problem without the code? Post the relevant code man
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to refres a jsp with the help of Swing