aspose file tools
The moose likes Portals and Portlets and the fly likes portletservlet and page binding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "portletservlet and page binding" Watch "portletservlet and page binding" New topic
Author

portletservlet and page binding

Syed Saifuddin
Ranch Hand

Joined: Sep 01, 2003
Posts: 129
Hi

I unable to find the precedence of servlet loading mechanism in portlet. I am using IBM WebSphere 5.1 Portal.

If we have more than one portalservlet and each one has a method like this

/*****************Sample Code Servlet1*******************/
public void doView(PortletRequest request , PortletResponse response) throws PortletException , IOException{
System.out.println("Receiver.doView");
getPortletConfig().getContext().include("/WEB-INF/jsp/receiver.jsp" , request , response);
}
/*****************End Code********************/

/*****************Sample Code Servlet2*******************/
public void doView(PortletRequest request , PortletResponse response) throws PortletException , IOException{
System.out.println("sender.doView");
getPortletConfig().getContext().include("/WEB-INF/jsp/sender.jsp" , request , response);
}
/*****************End Code********************/
Which servlet is load and execute if servlet mapping is define for both

Also if we associate action in the jsp page whhich actionPerformed method is call if both the above servlet had implemented ActoinListener.
/***************Sample jsp code**************/
<FORM action="<portletAPI:createURI><portletAPI:URIAction name="SEND"/></portletAPI:createURI>">
/*****************end code****************/
Thanks

[ January 19, 2006: Message edited by: Syed Saifuddin ]
[ January 19, 2006: Message edited by: Syed Saifuddin ]

Thank You & Best Regards,

Syed Saifuddin,
Senior Software Engineer

SAP Oracle AIX & Java Training
http://www.socialinet.com
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: portletservlet and page binding
 
Similar Threads
Basics Help need for Portlet development
portlet communication ...
Upload/download file
Portlet Configuration
Settings for portlet