aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Inter web-app communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Inter web-app communication" Watch "Inter web-app communication" New topic
Author

Inter web-app communication

smee bond
Ranch Hand

Joined: Sep 29, 2007
Posts: 34
How can I make 2 web-apps communicate with each other?
I want to develop a basic prototype with following requirements:
- provide a link in web app1
- On clicking that link, it should open say 'welcome.jsp' from another web-app2.

please provide your suggestions. Thank you!
[ January 03, 2008: Message edited by: smee bond ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61209
    
  66

Place an <a> tag on the page that references the page in the other web app.

If you want it to open in a new window, specify target="_blank" on the tag.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
smee bond
Ranch Hand

Joined: Sep 29, 2007
Posts: 34
thank you! I didn't know it is this simple.
I have another request: I am able to open the new page in new window but I do not want the navigation bar in there. Is there a way to avoid the navigation bar and have a basic window with just "Minimize", "Maximize" and "Close" buttons?

Thanks!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You would have to use window.open

Eric
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you use Javascript to open the new window, you can control these things.
A Google search for "window.open" will lead you to plenty of pages like this one that explain how to do this.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61209
    
  66

Eric, is correct. Rather than using the target attribute, have the link execute a JavaScript function that calls window.open(). The 3rd parameter to window.open() allows you to customize the window chrome.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61209
    
  66

BUMP!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inter web-app communication