Opening a Java Window from a jsp page on the client side

A

alexis.davoux

Hi all,


Thanks in advance to all who could help me for this problem.

I've written some jsp pages. In one of them, I open a new Java Window,
which is a simple Java Frame. If I test this directly on the Tomcat
server, everything works well.

But when I call the jsp page through a web browser of a distant client
(normal use), and when I want to see the java window, no window pops
up. It appears that the Java Window pops up on the server, and not on
the client side, which is what I wanted.

Could someone tell me how to make the Java frames appear on the client
side ? (Is it linked to the code or to the configuration of Tomcat ?)

Thanks in advance,

Alexis.
 
D

David Rabinowitz

Is your window in an applet ?

If not, I believe you are confusing server side (jsp) with client side
(window).

David
 
C

Chris Smith

Could someone tell me how to make the Java frames appear on the client
side ? (Is it linked to the code or to the configuration of Tomcat ?)

Unfortunately for your goals, JSP runs on the server. You can't
directly cause a window to appear on the client, from code running on
the server. (If you could, it would be a serious problem for obvious
security reasons.)

What you can do is:

1. Write an applet that displays the window, and include the APPLET tag
in your page. This will cause the browser to load and run the applet,
therefore displaying the window.

2. Use JavaScript in a page to create a non-Java window.

3. Provide a link to a Java Web Start application, which can do whatever
you like (including displaying windows, of course).

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
S

Sam

Hi all,


Thanks in advance to all who could help me for this problem.

I've written some jsp pages. In one of them, I open a new Java Window,
which is a simple Java Frame. If I test this directly on the Tomcat
server, everything works well.

But when I call the jsp page through a web browser of a distant client
(normal use), and when I want to see the java window, no window pops
up. It appears that the Java Window pops up on the server, and not on
the client side, which is what I wanted.

Could someone tell me how to make the Java frames appear on the client
side ? (Is it linked to the code or to the configuration of Tomcat ?)

Thanks in advance,

Alexis.

Alexis,

I don't believe it's a configuration issue. Keep in mind that a JSP
page in the end is just a Java Servlet, therefore it runs on the
server. What it does is construct some html and send it to be
remotely displayed on the client.

To resolve your question, obviously an applet would be one possiblity.
Another would be a javascript window. There are certainly more
sophisticated solutions available, but I would imagine they all have
to run on the client end in some way shape or form.

Regards,
Sam90
 
A

alexis.davoux

Ok, thank you all for your answers.

I think I've made a mistake when I've designed the application. I
should have distinguished client and server side.

But when I've been developping the application, I've been testing
client and server both on my computer, so the Java windows opened on
my computer ! But with the first real test, I realized that there was
an issue somewhere.

I'll have a look to your solutions.

Thank you for your help,

Alexis.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top