on 11-08-2010 4:17 PM
I need to extend the SaveRegisterAction that is used on the Register.inc.jsp.
I am now stuck on a package com.anpc.isa.isacore.action.b2c does not exist that appears when I enter the register.inc.jsp page.
I have done the following:
I created a new class com.anpc.isa.isacore.action.b2c.Z_SaveRegisterAction to extend the com.sap.isa.isacore.action.b2c.SaveRegisterAction.
I placed a new import on the Register.inc.jsp:
<%@ page import="com.anpc.isa.isacore.action.b2c.*" %>
And replaced the SaveRegisterAction with the Z_SaveRegisterAction.
I also modified the config.xml from:
<action path="/b2c/saveRegister" type="com.sap.isa.isacore.action.b2c.SaveRegisterAction">
<forward name="titleChange" path="UILayout:loginLayout[workarea=register]"/>
<forward name="countryChange" path="UILayout:loginLayout[workarea=register]"/>
<forward name="failure" path="UILayout:loginLayout[workarea=register]"/>
<forward name="countyRequired" path="UILayout:loginLayout[workarea=register]"/>
<forward name="countiesRefresh" path="UILayout:loginLayout[workarea=register]"/>
<forward name="success" path="/app/createOrUpdateUserCookie.do"/>
<forward name="cancel" path="UILayout:loginLayout[workarea=login]"/>
<forward name="loyaltyInfoAndPostSteps" path="/b2c/displayLoyaltyRegistrationInfo.do"/>
<forward name="loyaltyInfo" path="/b2c/displayLoyaltyRegistrationInfo.do"/>
<forward name="cancelLoyalty" path="/b2c/closeLoyaltyRegistrationInfo.do"/>
<forward name="failureLoyalty" path="/b2c/loyalty/displayLoyaltyProgramRegistration.do"/>
</action>
to:
<action path="/b2c/saveRegister" type="com.anpc.isa.isacore.action.b2c.Z_SaveRegisterAction">
<forward name="titleChange" path="UILayout:loginLayout[workarea=register]"/>
<forward name="countryChange" path="UILayout:loginLayout[workarea=register]"/>
<forward name="failure" path="UILayout:loginLayout[workarea=register]"/>
<forward name="countyRequired" path="UILayout:loginLayout[workarea=register]"/>
<forward name="countiesRefresh" path="UILayout:loginLayout[workarea=register]"/>
<forward name="success" path="/app/createOrUpdateUserCookie.do"/>
<forward name="cancel" path="UILayout:loginLayout[workarea=login]"/>
<forward name="loyaltyInfoAndPostSteps" path="/b2c/displayLoyaltyRegistrationInfo.do"/>
<forward name="loyaltyInfo" path="/b2c/displayLoyaltyRegistrationInfo.do"/>
<forward name="cancelLoyalty" path="/b2c/closeLoyaltyRegistrationInfo.do"/>
<forward name="failureLoyalty" path="/b2c/loyalty/displayLoyaltyProgramRegistration.do"/>
</action>
On the <TRACK2>crmisawebb2c~sap.com there is an used dc that points to crm/home/shr/ext project where the extended class is.
Now I get a the following error:
An error occured including /b2c/register.inc.jsp: <br/> Error while executing the compilation process: [G:/usr/sap/PED/JC00/j2ee/cluster/server0/apps/sap.com/home~b2c_anpc/servlet_jsp/b2c_anpc/work/jsp_register_2e_inc1289231024889.java:24: package com.anpc.isa.isacore.action.b2c does not exist
It looks like the extended class is not availlable in the src package. Is there a configuration that I missed??
Hi Hugo,
Please check the following.
1. Have u added the import in the JSP correctly.
2. If the package com.anpc........... was created correctly in the DC crmhomeshr~ext.
Best Regards,
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have partly solved my issue. It seemed that there where prefix path names used for the package names. Basically the path of the classes where expected to start as com.sap.....
Now I put the class on the com.sap...... path and entering the jsp now will not generate any error any more.
So it looks like this part of my code is solved.
Thanks.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.