RE: ***SPAM*** Simple Action in jsp (full code in mail)

2004-06-22 Thread Floßmann Christoph
Well, what a pitty! I finally found out what was wrong. My java class was in the wrong 
directory.
For some reasons they are found and the buildNormalContent method is executed when the 
java file is in
src/java/de/volke/jetspeed/modules/actions
but self defined actions are only available in
src/java/de/volke/jetspeed/modules/actions/portlets!!
Hope any one else can profit of my experience.
Chris

-Original Message-
From: Floßmann Christoph 
Sent: Tuesday, June 22, 2004 10:55 AM
To: Jetspeed Users List (E-Mail)
Subject: ***SPAM*** Simple Action in jsp (full code in mail)


Hello jetspeed users,

after my troubles with my ShoutBox Portlet I tried to reduce my code to a minimum.
Maybe someone tries it and tells me what's wrong.

=
Entry in portlets.xreg
=


Action
Simple Test





=
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' %>


<%
String jspeid = (String) request.getAttribute("js_peid");
%>







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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Simple Action in jsp (full code in mail)

2004-06-22 Thread Floßmann Christoph
Hello jetspeed users,

after my troubles with my ShoutBox Portlet I tried to reduce my code to a minimum.
Maybe someone tries it and tells me what's wrong.

=
Entry in portlets.xreg
=


Action
Simple Test





=
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' %>


<%
String jspeid = (String) request.getAttribute("js_peid");
%>







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