0 0

令GWT页面接收HTTPrequest5

用户支付完毕后,银行会自动跳转回到公司的网站上,同时发送一个HTTP的data包,我想知道如何在打开这个页面的同时对这个data包进行处理,具体不详,发送方式应该是post.谢谢。

问题补充:附上范例一个,但是是jsp格式的...
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
</head>
<body>

<jsp:useBean id="paiementServiceBean" scope="application" class="fr.diese.paiement.ServicePaiement" />
<jsp:useBean id="reponseBanqueBean" scope="page" class="fr.diese.paiement.ReponseBanque" />

<c:if test="${paiementServiceBean.valide}">

<%-- TODO: utiliser EL, JSTL pour appeler methode  --%>
<% paiementServiceBean.decrypteReponseBanque(reponseBanqueBean, request); %>


<c:if test="${reponseBanqueBean.valide}">
<%-- TRAITEMENT RETOUR --%>
<ul>
  <li>Statut=${reponseBanqueBean.statut}</li>
  <li>IdCommercant=${reponseBanqueBean.idCommercant}</li>
  <li>Montant=<fmt:formatNumber type="number" maxFractionDigits="2" minFractionDigits="2" value="${reponseBanqueBean.montant/100}" /></li>
  <li>Transaction=${reponseBanqueBean.transaction}</li>
  <li>Commande=${reponseBanqueBean.commande}</li>
  <li>Panier=${reponseBanqueBean.panier}</li> 
  <li>ConditionTransaction=${reponseBanqueBean.conditionTransaction}</li>
  <li>MoyenPaiement=${reponseBanqueBean.moyenPaiement}</li>
  <li>Autorisation=${reponseBanqueBean.autorisation}</li>
  <li>CodeReponseBanque=${reponseBanqueBean.codeReponseBanque}</li>
  <li>CodeReponseCryptoGramme=${reponseBanqueBean.codeReponseCryptoGramme}</li>
</ul>

<c:if test="${reponseBanqueBean.paiementAccepte}">
<p><strong>Paiement accepté, montant= <fmt:formatNumber type="number" maxFractionDigits="2" minFractionDigits="2" value="${reponseBanqueBean.montant/100}" /> Euros</strong></p>
</c:if>
<c:if test="${reponseBanqueBean.paiementAnnule}">
<p><strong>Paiement annulé par le client</strong></p>
</c:if>
<c:if test="${reponseBanqueBean.paiementRefuse || reponseBanqueBean.paiementEnErreur}">
<p><strong>Paiement refusé! statut=${reponseBanqueBean.statut}</strong></p>
</c:if>

</c:if>

<c:if test="${not reponseBanqueBean.valide}">
<%-- TRAITEMENT ANOMALIE --%>
<p><strong>REPONSE INVALIDE!</strong></p>
</c:if>

</c:if>

<p>
<a href="paiement.jsp">autre paiement</a>
</p>

</body>
</html>
2013年3月27日 22:55
目前还没有答案

相关推荐

Global site tag (gtag.js) - Google Analytics