on 07-17-2006 12:56 PM
The below is all for CRM ISA 4.0
I am trying to return the details of the IPC server in the confirmorder.jsp but it does not seem to work.
The code is as follows:
HeaderSalesDocument header =
(HeaderSalesDocument) request.getAttribute(MaintainOrderBaseAction.RC_HEADER);
ipcServer = JspUtil.removeNull(header.getIpcHost());
ipcPort = JspUtil.removeNull(header.getIpcPort()).trim();
ipcSessionId = JspUtil.removeNull(header.getIpcSession()).trim();
ipcDocumentId = JspUtil.removeNull(header.getIpcDocumentId().getIdAsString());
httpSession = request.getSession();
This same code works no problem in the screen before which is order.jsp.
Can anyone tell me why I can not get the IPC server details on the confirmorder.jsp screen.
I have output the header detail on both screen and they both look the same.
Please Help.
Naidio
Hi,
I don't think it is the imports at fault - if the JSP page couldn't find the HeaderSalesDocument object then it wouldn't run.
I don't know much about this but maybe it is because once the application has got to the confirmorder.jsp page it has dropped its connection to the IPC? So maybe the header object you are using doesn't have any info relating to IPC.
Does the line
HeaderSalesDocument header =
(HeaderSalesDocument) request.getAttribute(MaintainOrderBaseAction.RC_HEADER);
work ok?
Hope this helps,
Gareth.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Gareth,
Yes HeaderSalesDocument header =
(HeaderSalesDocument) request.getAttribute(MaintainOrderBaseAction.RC_HEADER);
works fine and I can output and see the content of header on the screen with a println.
The page ofter conformorder.jsp can be orderstatusdetail.jsp and it displays the IPC detail no problem. The IPC server is should always be available as it is a windows service.
Any other help will be very much appreciated.
thanks
Naidoo.
Hmmmm... Strange one this.
The only thing I can suggest is to de-compile the Java behind the HeaderSalesDocument object and have a look at the methods and see if there is anything obvious.
Sorry can't help more but I don't have access to either a B2B system or any of the source code at the moment.
Gareth.
Naidoo
Could you please compare these imports with the <b>order.jsp</b> for <b>HeaderSalesDocument</b> ???
To my understanding some import is missing in the confirmorder.jsp !!!!
Thanks
Jack
Message was edited by: Jack
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Naidoo
Have you imported <b>HeaderSalesDocument</b> in the confirmorder.jsp ???
Thanks
Jack
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have imported the following:
<%@ page import="java.lang.*" %>
<%@ page import="java.math.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.NumberFormat"%>
<%@ page import="com.sapmarkets.isa.core.*" %>
<%@ page import="com.sapmarkets.isa.core.util.*" %>
<%@ page import="com.sapmarkets.isa.businessobject.*" %>
<%@ page import="java.util.Collection" %>
<%@ page import="com.sapmarkets.isa.businessobject.item.*" %>
<%@ page import="com.sapmarkets.isa.businessobject.order.*" %>
<%@ page import="com.sapmarkets.isa.businessobject.header.*" %>
<%@ page import="com.sapmarkets.isa.businesspartner.businessobject.*" %>
<%@ page import="com.sapmarkets.isa.businesspartner.backend.boi.PartnerFunctionData" %>
<%@ page import="com.sapmarkets.isa.isacore.*" %>
<%@ page import="com.sapmarkets.isa.isacore.action.*" %>
<%@ page import="com.sapmarkets.isa.isacore.action.order.*" %>
<%@ page import="com.sapmarkets.isa.isacore.actionform.order.*" %>
<%@ page import="com.sapmarkets.isa.core.util.WebUtil" %>
<%@ taglib uri="/isa" prefix="isa" %>
<%@ taglib uri="/isacore" prefix="isacore" %>
<%@ page import="com.sapmarkets.isa.isacore.action.ShowShipToAction" %>
<%@ page import="com.sapmarkets.isa.businessobject.Shop" %>
<%@ page import="com.sapmarkets.isa.backend.boi.isacore.order.*" %>
<%@ page import="com.sapmarkets.isa.backend.boi.isacore.*"%>
<%@ page import="com.sapmarkets.isa.businessobject.*" %>
<%@ page import="com.sapmarkets.isa.isacore.actionform.order.orderdownload.*" %>
<%@ page import="com.sapmarkets.isa.core.interaction.InteractionConfig" %>
<%@ page import="com.sapmarkets.isa.core.interaction.InteractionConfigContainer" %>
<%@ page import="com.sapmarkets.isa.core.ContextConst" %>
<%@ include file="/b2b/usersessiondata.inc" %>
<%@ include file="/b2b/checksession.inc" %>
<%@ include file="/b2b/checkscenario.inc" %>
<%-- IPC imports --%>
<%@ page import="java.net.URLEncoder" %>
<%@ page import="com.sap.spc.remote.client.object.IPCItem" %>
<%@ page import="com.sap.spc.remote.client.ClientSupport" %>
<%@ page import="com.sap.sxe.socket.client.ClientException" %>
<%@ page import="com.sap.sxe.socket.client.ServerResponse" %>
<%@ page import="com.sap.sxe.socket.shared.ErrorCodes" %>
<%@ page import="com.sap.spc.remote.shared.command.*" %>
<%@ page import="com.sap.spc.remote.client.object.IPCException" %>
try on the follwoings:(a wise guess)
import="com.sapmarkets.isa.businessobject.header.*"
import="com.sapmarkets.isa.businessobject.item.*"
import="com.sapmarkets.isa.businessobject.order.*"
import="com.sapmarkets.isa.businessobject.*"
import="com.sapmarkets.isa.isacore.action.order.*"
Thanks
Jack
Message was edited by: Jack
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.