Domanda

Sto usando seguente valore di ritorno paypal

http: // localhost: 8080 / projectName / Successo id = 1

ma quando la transazione completa la cosa non mi restituiscono il valore di id

http: // localhost: 8080 / projectName / sucess

abbiamo chiamare servlet sucesso dopo la transazione paypal completa l'

Si prega di aiutare me

È stato utile?

Soluzione

Provare a usare pathinfo invece.

http: // localhost: 8080 / projectName / Successo / 1 al posto di < a href = "http: // localhost: 8080 / projectName / Successo id = 1?" rel = "nofollow noreferrer"> http: // localhost: 8080 / projectName / Successo id = 1

È possibile afferrare il 1 in servlet per request.getPathInfo().substring(1).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top