• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

portletservlet and page binding

 
Syed Saifuddin
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic