Hi Maruthi,
let's try some little sample code. I hope you are compiling jetspeed from the source.
This code runs in J1.4b4 for sure.
==========================================
jsp page
put this in /webapp/WEB-INF/templates/jsp/portlets/html/
name it: Actiontest.jsp
==========================================
<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
<jsp:useBean id="action"
class="org.apache.jetspeed.modules.actions.portlets.ActionTest" scope="request" />
<%
String jspeid = (String) request.getAttribute("js_peid");
%>
<table>
<form method="POST" action="<jetspeed:dynamicUri/>">
<INPUT TYPE="hidden" NAME="js_peid" VALUE="<%=jspeid%>">
<input type="hidden" name="action" value="portlets.ActionTest">
<tr><td align="center"><INPUT TYPE="SUBMIT" NAME="eventSubmit_doUpdate" VALUE="Ok"
style="width:60"></td></tr>
</form>
</table>
==========================================
the java file
put this in: /src/java/org/apache/jetspeed/modules/actions/portlets/
call it: ActionTest.java
==========================================
package org.apache.jetspeed.modules.actions.portlets;
import org.apache.jetspeed.modules.actions.portlets.JspPortletAction;
import org.apache.jetspeed.portal.Portlet;
import org.apache.turbine.util.RunData;
public class ActionTest extends JspPortletAction {
protected void buildNormalContext(Portlet portlet, RunData rundata) throws
Exception {
System.out.println("Built ActionTest Portlet!");
}
public void doUpdate(RunData rundata, Portlet portlet){
System.out.println("Action!!!!");
}
}
==========================================
Entry in xreg file:
==========================================
<portlet-entry name="ActionTest" hidden="false" type="ref" parent="JSP"
application="false">
<meta-info>
<title>Action</title>
<description>Simple Test</description>
</meta-info>
<classname>org.apache.jetspeed.portal.portlets.JspPortlet</classname>
<parameter name="template" value="Actiontest.jsp" hidden="false"/>
<parameter name="action" value="portlets.ActionTest" hidden="true"
cachedOnName="true" cachedOnValue="true"/>
<media-type ref="html"/>
</portlet-entry>
>From this example you should be able to extract the knowledge you need.
Chris
-----Original Message-----
From: Maruthi [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 1:35 PM
To: Jetspeed Users List
Subject: ***SPAM*** class not found
Hello everybody,
I have a problem with JSP Portlet Action class.I am getting class not found
exception.I tried all the ways but i am not able fix it since yesterday.Any help in
this regard will be greatly appreciated.
Thank you,
Maruthi.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]