Javed,

I'm way too busy now to try to setup your portlets in my environment and
test them that way. Here's some excerpts from a working JSP portlet:

JSP:
===========================
....
<%
RunData data = (RunData)request.getAttribute("rundata");
String jspeid = (String) request.getAttribute("js_peid");

try {
%>
<FORM METHOD="POST" ACTION="<jetspeed:uriLookup type="Home"/>">
  <INPUT TYPE="hidden" NAME="js_peid" VALUE="<%=jspeid%>">
  Enter symbol(s) separated with commas: <input name="symbols"
type="TEXT"><INPUT TYPE="SUBMIT" NAME="eventSubmit_doRefresh" VALUE="Get
Quotes">
  <TABLE BORDER="0" WIDTH="100%">
...

ACTION CLASS:
===========================
package com.mycompany.modules.actions.portlets;
...
public class YahooStockQuoteAction extends JspPortletAction
{
    /**
     * Subclasses must override this method to provide default behavior
     * for the portlet action
     */
    protected void buildNormalContext(Portlet portlet, RunData rundata)
    {

        this.doRefresh(rundata, portlet);
    }

    /**
     * Portlet refresh event handler
     *
     * @param data
     */
    public void doRefresh(RunData rundata, Portlet portlet)
    {
...

XREG:
===========================
<portlet-entry name="StockQuotePortlet" hidden="false" type="ref"
parent="JSP" application="false">
                <parameter name="template" value="YahooStockQuote.jsp" hidden="true"
cachedOnName="true" cachedOnValue="true"/>
                <parameter name="action" value="portlets.YahooStockQuoteAction"
hidden="true" cachedOnName="true" cachedOnValue="true"/>
                ...
                <media-type ref="html"/>
                <url cachedOnURL="true"/>
                <category group="Jetspeed">finance.stocks</category>
</portlet-entry>

MY.PROPERTIES:
============================
module.packages = com.mycompany.modules


I noticed that you're overriding the default properties in my.properties
file. Therefore I'm assuming that you've left the original property files
unchanged. If that is the case, then you're missing the "module.packages"
property (module.packages=com.adm.modules). Also, I'm assuming that your
.jsp files are located in /WEB-INF/templates/jsp/portlets/html. You are
using 1.4b3, right?

BTW: There's no need to duplicate entries from tr.props or jr.props - put
only things there that want to override.

I don't recommend overriding torque properties in my.properties (I don't
think that my documentation does that). This may work for now but may cause
some problems in the future.  Hope this helps.

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]>

Reply via email to