Passing parms back to a java program

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Jim Reed
New User
Posts: 8
Joined: Fri Apr 01, 2011 4:21 pm
First Name: Jim
Last Name: Reed
Company Name: 21st Mortgage Corp.
Phone: 800-955-0021 1440
Contact:

Passing parms back to a java program

Post by Jim Reed »

Is it possible to pass parms back to a java program that starts a session? The java program is using a javascript to open a new window, and pass three parms.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Passing parms back to a java program

Post by David »

By Java application, I guess you mean a web application?

The only way you can get parameters back to it is by using "window.opener" in JavaScript in the PUI window. This returns a reference to the opener window object. From there, you can set values in the opener window by using JS window-level variables or by altering elements in the document using the DOM.

If your browser sees the 2 windows as being on different sites (i.e. different http servers), it may see the "window.opener" reference as an attempt at cross-site scripting and prevent it -- you'd just have to try it out.

If it does prevent you from doing this, you'd probably need to map URLs on the Java app's http server to the Profound UI server so that the browser sees it as the same site.

I'm not sure what you're using over there, but if it's Apache HTTPD, you can use ProxyPass directives to do this. You can map "path" /profoundui to the PUI http server. If you are using WebSphere or Tomcat over there, without an Apache server, they probably have similar features.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 13 guests