aspose file tools*
The moose likes Portals and Portlets and the fly likes how to open JSP page in new window in  IBM RAD in portal application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "how to open JSP page in new window in  IBM RAD in portal application" Watch "how to open JSP page in new window in  IBM RAD in portal application" New topic
Author

how to open JSP page in new window in IBM RAD in portal application

abani behera
Greenhorn

Joined: Oct 16, 2007
Posts: 2
Hi friends.

I am new to portlets. I am using IBM Rational Application Developer (RAD) for development of portal application. I want to open a jSP page in a new window. The problem with me is the default is coming when ever i am trying..

Please tell me how I can I do that...
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

Is the session shared between the two windows? If each window starts a new OS process, then the browser cookies won't be shared, and the user will have to re-authenticate, thus, the portal will provide the default landing page to the client.

Don't do pop-up windows though. That's one of the worst things you can do on a website. It demeans you as a web developer, and it annoys your clients. Plus, most browsers will block the pop-up, triggering a flood of help-desk calls from people wondering why your crummy application doesn't work. Your help desk people will quit because they get tired of taking the same stupid calls from people that don't understand what a pop-up blocker is. Then, you get fired, your reputation is ruined, and you have to start a new career as a street beggar. It's not a good path to go down.

-Cameron McKenzie
Ina Bumstein
Greenhorn

Joined: Nov 10, 2007
Posts: 20
Hello Cameron,
As I understand using the pop-ups in application is not good idea, but sometimes it's impossible to avoid doing it. For example in my portlet user should have possibility to review all terms definitions he selected. Correct me if it's not true, you couldn't simply file->print from the portlet.
So my question is the same as abani behera ask.
Ina
Susan Mincey
Greenhorn

Joined: Nov 08, 2007
Posts: 13
I have the same question. Cameron, I have seen you reply before that Popups are bad bad bad. However, in a intranet setting, with known users and browsers, what would be the best UI for this situation:

My users are presented with a search box in a portlet. They select from the dropdown and in the same portlet (using DIV tags) I display the results. The results could be a list of one or a list of 25. there's lots of data for each record and my search results only return about 7 of those columns. The users want to see details for a particular record but they dont' want to lose their search results. So a popup window, with the details for that record, seems like a really good idea for the User. The user can close the popup and click another record if they need to browse several records from the results list without losing that original list.

Do you have a better suggestion? In our Portal, this portlet might be one of several on the page. If the search results return 25 results, then where is the real estate for me to display the details if I don't use the popup?

And if you agree that the popup would be best for this circumstance, can you provide some guidance on how to get it working. I haven't been successful.

Thanks for you thoughtful advice!

Susan
Sanjay Kannan
Greenhorn

Joined: Nov 25, 2007
Posts: 16
Popup is not a right solution in case of any portal inplementation cause maintaining state of the portlet in a popup is not possible. Best way to implement your functionality would be to use the portlet to portlet communication feature wherein you can have another portlet which would display the details of the records.
[ November 26, 2007: Message edited by: Sanjay Kannan ]
Ina Bumstein
Greenhorn

Joined: Nov 10, 2007
Posts: 20
Hello Sanjay,
Thanks for reply, may be you could provide any example?
Ina
Sanjay Kannan
Greenhorn

Joined: Nov 25, 2007
Posts: 16
Which portal server are you using. If its IBM WebSphere Portal then use this link to go thru the p2p communication
https://www6.software.ibm.com/developerworks/education/websphere/0509_saddal/0509_saddal.html

There is one more nice implementation
http://www.doc.ic.ac.uk/~mo197/portlets/portlet_messaging/crosscontext.php
Ina Bumstein
Greenhorn

Joined: Nov 10, 2007
Posts: 20
Thanks Sanjay,
I tied to understand the methods described in the second link.. but unfortunately I couldn't understand the technique.
I am using IBM WebSphere Portal and jsr 168 jsf portlets. May be you could explain how to do the communication in simplified way?
Thanks.
Ina
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to open JSP page in new window in IBM RAD in portal application
 
Similar Threads
Websphere portal reporting
Need help to start up my workstation's Portal
Unable to setup WebSphere Portal 6.1 & RAD 7 in Windows Vista
IBM Portlet and Trinidad
I need help regarding getting the URL that is "http://localhost:9080/".