It's not a secret anymore!*
The moose likes Portals and Portlets and the fly likes Question for change a web application to portal and porlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Question for change a web application to portal and porlet" Watch "Question for change a web application to portal and porlet" New topic
Author

Question for change a web application to portal and porlet

avseq anthoy
Ranch Hand

Joined: Apr 27, 2004
Posts: 104
Dear all
I am a new man for portals and porlets.
I have some question for portals and porlets and I was stuck.
Can someone explain the following question?

Question1: Can I write a simple helloworld porlet and just deploy it on Tomcat or other ap server like JBoss but not on a portal server?

Question2: Now I have a web appplication developed by struts , can I just deploy it on a portal server without change? Or I should change the web ap to a portlet and deploy it?

Question3: Can portlet communicate another porlet in the same portlet server( inter-portlet communication)?

Question4 : If I want to receive contents that provoides by a portlet appliction on anther server , how can I communication with it ? Send httpRequest?


Tks & Best Regards


My Way,My Pace
Ankur Srivastav
Ranch Hand

Joined: Aug 31, 2009
Posts: 57

Hi,

I started on the same lines that you have mentioned.

I was able to create a JSR 168/Struts based portlet and deployed it on Liferay-Tomcat bundle. Alternatively you can use IBM Websphere Portal/JBoss Portal or any other Portal available.

Liferay is open source thats why its easy to work on that.

I have put together all the steps starting from the basics on my website at CreatePortlets I will suggest you to go through all the Posts available and if you find any problem let me know.

Coming on the other half of your question. Yes Portlets can interact as per JSR 286 Spec.


Sun Certified Java Programmer v 1.4
Oracle Certified Associate, Java SE 7 Programmer
JEE 5 Web Component Developer Certified Professional
Ashish Sarin
author
Ranch Hand

Joined: Nov 20, 2000
Posts: 432
    
    5
Question1: Can I write a simple helloworld porlet and just deploy it on Tomcat or other ap server like JBoss but not on a portal server?
The portal server is required for deploying a portlet. You can find different portal server bundles like Liferay-Tomcat, where you have Liferay portal server extending the features of the underlying application server. Portlet Containers are meant to manage portlet components, so you definitely need Portlet Container.

Question2: Now I have a web appplication developed by struts , can I just deploy it on a portal server without change? Or I should change the web ap to a portlet and deploy it?
You have to turn you web application into a portlet application to register your portlets with the portal server.

Question3: Can portlet communicate another porlet in the same portlet server( inter-portlet communication)?
Yes. You can do that using sending/receiving events or by using public render parameters.

Question4 : If I want to receive contents that provoides by a portlet appliction on anther server , how can I communication with it ? Send httpRequest?
You should consider using WSRP (Web Services for Remote Portlets) for reusing content generated by remote portlets.

regards
Ashish
-----------------------
SCJA, SCJP, SCJD, SCWCD, SCEA, SCBCD, IBM-XML, IBM-DB2
Author: Portlets in Action


Author of
Getting started with Spring Framework
Portlets in Action
Spring Roo 1.1 Cookbook
Portlets blogSpring Roo blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question for change a web application to portal and porlet