Now I tried to reduce my code to a minimum.
Maybe someone tries it and tells me what's wrong.
=========================
Entry in portlets.xreg
=========================
<portlet-entry name="ActionTest" hidden="false" type="ref" parent="JSP"
application="false">
<meta-info>
<title>Action</title>
<description>Simple Test</description>
</meta-info>
<parameter name="template" value="Actiontest.jsp" hidden="false"/>
<parameter name="action" value="ActionTest" hidden="true" cachedOnName="true"
cachedOnValue="true"/>
<media-type ref="html"/>
</portlet-entry>
=========================
The java source (be sure to put it in src/java/de/volke/jetspeed/modules/actions
=========================
package de.volke.jetspeed.modules.actions;
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 doSomething(){
System.out.println("Action!!!!");
}
}
=========================
The jsp page in WEB-INF/templates/jsp/portlets/html
=========================
<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>
<jsp:useBean id="action" class="de.volke.jetspeed.modules.actions.ActionTest"
scope="request" />
<%
String jspeid = (String) request.getAttribute("js_peid");
%>
<form method="POST" action="<jetspeed:dynamicUri/>">
<INPUT TYPE="hidden" NAME="js_peid" VALUE="<%=jspeid%>">
<INPUT TYPE="SUBMIT" NAME="eventSubmit_doSomething" VALUE="Ok" style="width:60">
</form>
=========================
Now the message in the buildNormalContext method is displayed in the tomcat shell. But
the doSomething method isn't working.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]