| 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
|
 |
 |
|
|
subject: portletservlet and page binding
|
|
|