THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
public static String createPracticePersonJavaEvent(HttpServletRequest request, HttpServletResponse response){ LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute("dispatcher"); GenericDelegator delegator = (GenericDelegator) request.getAttribute("delegator"); } |
...
Code Block |
---|
try{ Map person = dispatcher.runSync("createPracticePerson", createPersonCtx); }catch (GenericServiceException e){ Debug.logError(e.toString(), module); return "error"; } return "success"; |
...
Code Block |
---|
<target name="classpath"> <path id="local.class.path"> <fileset dir="../../framework/base/lib/j2eespecs" includes="*.jar"/> </path></target> |
This will needed for the classes like
Code Block |
---|
import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;
|
So create a file by name build.xml and then compile it. It will create a build directory in your component directory which will be containing all *.jar and class files after compilation. For the content of build.xml file you can refere example component.
...