Skip to main content

Posts

Showing posts from 2014

Spring MVC - File upload Example

 spring-dispatcher-servlet.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> <mvc:annotation-driven /> <context:component-scan base-package="myproject" /> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name

Authorize.Net Java Integration - Your script timed out while we were trying to post transaction results to it.

I have been facing the following error while integrating Authorize.Net with java project using Direct Post Method . Your script timed out while we were trying to post transaction results to it.    Transaction ID: 0 Transaction Result: This transaction has been approved. I searched for solutions but did not get resolved this issue easily. I traced network packets and found some issues with response text.  And the problem was in my relay_response jsp page of encoding. I made following changes in my page : 1  updated following at the top of the page  <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 2 and added charset="UTF-8" in meta tag <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />