可以參考一下

Calling a JSP page from a ColdFusion page







Request.myVariable = "This";

Session.myVariable = "is a";

Application.myVariable = "test.";

GetPageContext().include("hello.jsp?name=Bobby");





還可以將 cfmx 的 session 交給 jsp 使用



基本上除上上面所說的方法最基本的就是可以用form來互傳





















































cart_cdcard.jsp程式碼如下:



<%

String Custno = request.getParameter( "Custno" );

String MerchantNumber = request.getParameter( "MerchantNumber" );

String OrderNumber = request.getParameter( "OrderNumber" );

String Amount = request.getParameter( "Amount" );

String ApproveFlag = request.getParameter( "ApproveFlag" );

String DepositFlag = request.getParameter( "DepositFlag" );

String Englishmode = request.getParameter( "Englishmode" );

String OrderURL = request.getParameter( "OrderURL" );

String ReturnURL = request.getParameter( "ReturnURL" );

String checksum = request.getParameter( "checksum" );

String op = request.getParameter( "op" );



session.setAttribute( "theName", "xxxx" ); Session

%>



要從jsp回傳給cf應該不會我說明了吧…

狼翔月影 發表在 痞客邦 PIXNET 留言(0) 人氣()