You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Gil Vernik <Gi...@dbnet.co.il> on 2003/08/05 20:00:58 UTC
help with jetspeed
I am new to jetspeed. I have tomcat 5 and jetspeed 1.4b.
I wrote a class :
public class recieveTraficLight extends VelocityPortlet
{
protected void buildNormalContext(VelocityPortlet portlet,Context context,
RunData rundata)
{
try{
Service service = new Service();
Call call = (Call) service.createCall();
call.setOperationName(new QName("AddFunction", "addInt"));
call.setTargetEndpointAddress(new java.net.URL(
"http://localhost:8080/axis/services/AddFunction.jws"));
call.addParameter("a", XMLType.XSD_INT, ParameterMode.IN);
call.addParameter("b", XMLType.XSD_INT, ParameterMode.IN);
call.setReturnType(XMLType.XSD_INT);
Integer ret = (Integer) call.invoke(new Object[] { new Integer(1),new Integer(2) });
context.put("color_number",ret);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
I wrote a vm file that checks the $ret variable and print something on the screen. This a vm file :
#if ($color_name==1)
<p>
<img border="0" src="…>
</p>
#end
my question is, how to run all this? Where should I put my class file, where should I put vm file, what html will run it?
I got lost with all this, please help me with using it.