Hi!
I managed to have a working event in a JSP Portlet.
Here is my jsp form :

<FORM METHOD=POST ACTION="<jetspeed:dynamicUri/>">
                Crit�re de recherche : <INPUT TYPE="text" NAME="find">
<INPUT TYPE="submit" name="eventSubmit_doUpdate" value="OK">
                <INPUT TYPE="hidden" name="action"
value="XsqlPortlet1Action">
</FORM>

Then I have my event class in
web-inf/classes/ch/proconcept/portal/modules/actions/XsqlPortletAction.class
.

I also had to add the following line in tr.properties, to tell turbine where
o find the event :

module.packages=ch.proconcept.portal.modules 

(I think you can also append your package at the end of the existing line,
separated with a comma or semicolon...)

and here is the registry fragment for my portlet :

<?xml version="1.0" encoding="UTF-8"?>
<registry>
    <portlet-entry name="XSQL_test" hidden="false" type="ref"
        parent="JSP" application="false">
        <meta-info>
            <title>XSQL test 1</title>
            <description>XSQL test 1</description>
        </meta-info>
 
<classname>org.apache.jetspeed.portal.portlets.JspPortlet</classname>
        <parameter name="template" value="xsql1.jsp" hidden="true"
            cachedOnName="true" cachedOnValue="true"/>
        <parameter name="action" value="XsqlPortlet1Action"
            hidden="true" cachedOnName="true" cachedOnValue="true"/>
        <media-type ref="html"/>
        <url cachedOnURL="true"/>
    </portlet-entry>
</registry>

The event works with these settings, but strangely, the portlet appears in
the list of portlets to add in the customizer, but if I try to add it it
doesn't work, just doesn't create any psml entry for my user, so I had to
create the psml by hand in order to test my portlet. any idea about that ?
is something wrong in the xreg ?

anyway, I hope this can help you Javed.

and thanks for any suggestion about the "not adding" the portlet...

Pierre

> -----Original Message-----
> From: Javed Mahmud [mailto:[EMAIL PROTECTED]]
> Sent: jeudi, 19. d�cembre 2002 04:55
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Event Handling in JSPPortlet
> 
> 
> Hi,
> I was looking onto the TutorialStockQuote8.jsp and it has the 
> following
> entry for FORM. The tutorial itself says that there should be
> <input type="hidden" name="action" value=" 
> portlets.myJspPortletAction "/>
> in the FORM. Is this only required when handling events or 
> its a general
> requirement.
> 
> <FORM METHOD="POST">
>   <INPUT TYPE="hidden" NAME="js_peid" VALUE="<%=jspeid%>">
>   Enter symbol(s) separated with commas: <input name="symbols"
> type="TEXT"><INPUT TYPE="SUBMIT" NAME="refresh" VALUE="Get Quotes">
> </FORM>
> 
> 
> My problem is not yet solved about Events in JSPPOrtlet....
> Any help will be appreciated!!! :=)
> 
> Thanks
> Javed
> 
> >
> >> i had the same problem yesterday, evenif the method name was
> >> doStatusChange
> >> dont know why
> >> may be try using velocity templates and action classes
> >> jsp doesnt work properly in jetspeed
> >> sangam dash
> >>
> >
> > That is not a true statement. There's a working jsp portlet 
> example in
> > the tutorial.
> >
> > Best regards,
> >
> > Mark Orciuch - [EMAIL PROTECTED]
> > Jakarta Jetspeed - Enterprise Portal in Java
> > http://jakarta.apache.org/jetspeed/
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]> For additional
> > commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> *---------------------------------------*
> |Research Assistant                     |
> |Building 10                            |
> |Room 4405                              |
> |Faculty of Information Technology      |
> |Department of Computer Systems         |
> |University of Technology Sydney        |
> |Phone: 9514 4513                       |
> |Mobile : 0413 607172                   |
> *---------------------------------------*
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

Reply via email to