hi there,

I have 2 instances of my portlet on the same Jahia page.  Capturing data on 1 portlet makes it appear on the other one as well when the page refreshes.  I dump the request map at the start of each servlet, and the request objects look identical - the request of the portlet appearing last overwrites the request of the one appearing first.  It looks like the same request object is being passed to both portlets.

My web.xml follows - its very simple
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp">
        <display-name>NCOP_Portlet_ParlPapers</display-name>
        <servlet>
                <servlet-name>controller</servlet-name>
                <display-name>Controller</display-name>
                <servlet-class>org.ncop.Controller</servlet-class>
        </servlet>
        <servlet-mapping>
                <servlet-name>controller</servlet-name>
                <url-pattern>/controller</url-pattern>
        </servlet-mapping>
</web-app>


The beginning of my servlet defines a form - and I attach the context-id to the end of the form.  The form tag of the 1st instance follows:
<form name="frmParlPapers285" method="post" action="">

and the form tag of the 2nd instance follows:
<form name="frmParlPapers286" method="post" action="">

What could be causing the problem? Why is the 2nd instance's request object being passed to both servlets (portlets)?

thanks,
Manoj


This e-mail is intended exclusively for the addressee.
If you are not the addressee you must not read, copy, use or disclose
the e-mail nor the content; please notify us immediately (by clicking "Reply") and delete this e-mail.

Reply via email to