• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp equivelent to asp

 
Naadir Peterson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can anyone help me figure out what the jsp equivelent is of the
following asp code:

/*********************************************
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Opens the connection to the Gateway.
xml.Open "GET", SendURL, False
' Actually Sends the request and returns the result:
xml.Send
strBuffer=xml.ResponseText
' Parse response for error messages
If (Instr(strBuffer,"NOCREDITS") = 0) AND (Instr(strBuffer,"FAIL") = 0) AND (Instr(strBuffer,"INVALID") = 0) then
Response.write("SENT")
else
Response.write("FAILED: " & strBuffer)
end if
******************************************/

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!