Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

action forward for redirect

738396Nov 30 2010 — edited Dec 2 2010
I have an website application. We are using Weblogic server.
The application is an online purchase payment gateway. The payment gateway is done by a third party.

Languages used : Struts, JSP and JAVA

i created one jsp(confirmPaymnt.jsp) like this and run from my server machine.
it is able to connect to the third party site and is able to pass values too(http://168.183.169.195).

confirmPaymnt.jsp:
     -------------------
       <form name ="myform" action="http://168.183.169.195/Payment/eNetMainAPI.aspx" method="post" >
             
                <input type="hidden" name="merchant" id="merchant" value='<%= udb.getMerchant() %>'/ >
               
                   <input type="hidden" name="transaction_id" id="transaction_id" value='<%= udb.getTransaction_id() %>'/ >
                   <input type="hidden" name="amount" id="amount" value='<%= udb.getPrice() %>'/ >
      
          <input name="processpage" type="hidden" value="http://www.octopusplus.com/process.do" id="processpage" style="width:733px;" />
                                        
                    <input type="hidden" name="sec_key" id="sec_key" value='<%= udb.getSeckey() %>'/ >
                    
                    <input type="hidden" name="op_post" id="op_post" value="false" />
       
       </html:form> 
If I try from some other machine, it is not running Since this url is for payment transaction ,they are configure with our server machine to third pary server machine.
So all the request to their server (http://168.183.169.195) needs to go throughour server.

So i tried like this in Struts-config.xml
 <action  path="/redirectparam" type="com.hmh.action.RedirectParamAction"
        name="redirectparamForm
        input="/redirectparam.jsp"
        validate="false"
        scope="request">        
        <forward name="success"  path="http://168.183.169.195/Payment/eNetMainAPI.aspx" redirect="true"/>
     </action>
  {code}
  this is also not going with parameters.
  
  please give me any  solution.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 30 2010
Added on Nov 30 2010
9 comments
698 views