Hello, everyone
        I am new to the tapestry. In my webapp, the user will pay money
through external bank gateway(user will be navigated from my webapp to
bank pages), after the pay , the external page will return to my
webapp's page and send some parameters using post method. I want to
know how the tapestry page to realize the function? thanks a lot. the
example jsp page maybe:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html" %>
<%@ page import="java.io.*,java.lang.*,java.util.*,chinapay.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<link TYPE="text/css" HREF="mystyle.css" REL="stylesheet" TITLE="mystyle">
</head>
<%
String TransDate = null ;
String MerId = null ;
String OrdId = null ;
String TransType = null ;
String TransAmt = null ;
String CuryId = null ;
String ChkValue = null ;
String OrderStatus= null ;
String GateId = null ;
try
{
TransDate = request.getParameter("transdate") ;
MerId = request.getParameter("merid") ;
OrdId = request.getParameter("orderno");
TransType = request.getParameter("transtype") ;
TransAmt = request.getParameter("amount") ;
CuryId = request.getParameter("currencycode") ;
OrderStatus = request.getParameter("status") ;
ChkValue = request.getParameter("checkvalue") ;
chinapay.PrivateKey key=new chinapay.PrivateKey();
chinapay.SecureLink t;
boolean flag;
boolean flag1;
String msg="";
flag=key.buildKey(MerId,0,"/...");
if (flag==false)
{
msg="build key error!";
return;
}
t=new chinapay.SecureLink (key);
flag1=t.verifyTransResponse( MerId,OrdId, TransAmt, CuryId, TransDate,
TransType,
OrderStatus, ChkValue);
if (flag1==false)
{
//
}
else
{
//

}
}
catch(Exception e)
{
out.println(e.getMessage());
return;
}
%>

                                

        xiaofeng.dou
[EMAIL PROTECTED]
          2005-07-19

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to