The Artima Developer Community
Sponsored Link

Java Answers Forum
trying to submit form on another site from my JSP

1 reply on 1 page. Most recent reply: Aug 21, 2003 12:09 PM by Stephen Huey

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Stephen Huey

Posts: 10
Nickname: stephen
Registered: Aug, 2003

trying to submit form on another site from my JSP Posted: Aug 21, 2003 10:32 AM
Reply to this message Reply
Advertisement
Okay, hopefully I won't get in trouble for showing all this...below is the code for what I'm trying to do, and it's not submitting to the form mentioned (it just seems to do nothing). Maybe you can try to get it to work and let me know the workaround. Above what I'm pasting below is my Java code within JSP's <% %> tags. I'm using the IntelliJ Idea IDE and although I'm not compiling with it, it's not complaining about any imports needed or anything like that (it's good at doing that at editing time). If you try this yourself, don't worry about submitting the form at the site, b/c after that there's a confirmation page before you fully submit. Btw, I've tried it both with and without quote marks around the field name.
<html>
<body>
<form name="SAPF" method="POST" action="http://sbw.airborne.com/SchedulePickup/SchedulePickupInfo.asp">
< input type=hidden name=F10050 value="08222003">
<input type=hidden name=F10051 value="1200">
<input type=hidden name=F10052 value="1700">
<input type=hidden name=F10055 value="1">
<input type=hidden name=F10026 value="<%=oBill.getCompanyName()%>">
<input type=hidden name=F10027 value="<%=oBill.getAddress1()%>">
<input type=hidden name=F10028 value="<%=oBill.getAddress2()%>">
<input type=hidden name=F10029 value="<%=oBill.getCity()%>">
<input type=hidden name=F10030 value="<%=oBill.getState()%>">
<input type=hidden name=F10031 value="<%=oBill.getZip()%>">
<input type=hidden name=F10018 value="<%=oBill.getAttn()%>">
<input type=hidden name=F10025 value="<%=oBill.getShipperPhone()%>">
</form>

I learned to do this from here:
http://forum.java.sun.com/thread.jsp?forum=45&thread=436406&tstart=0&trange=15


Stephen Huey

Posts: 10
Nickname: stephen
Registered: Aug, 2003

Re: trying to submit form on another site from my JSP Posted: Aug 21, 2003 12:09 PM
Reply to this message Reply
Some more info is here:


http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=50&t=004070

Flat View: This topic has 1 reply on 1 page
Topic: memory allocation Previous Topic   Next Topic Topic: basic help - getting 2 inputs

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use