wood burning stoves 2.0*
The moose likes Struts and the fly likes need urgent help on posting data to other site. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "need urgent help on posting data to other site." Watch "need urgent help on posting data to other site." New topic
Author

need urgent help on posting data to other site.

Manoj John
Ranch Hand

Joined: May 13, 2004
Posts: 36
Hi,
I am working on struts.In my application one registration form
is there,user can enter data and on clicking the submit button i need to insert the data in our database also i 've to post it to one other site.
ie we both site need that data.first part that is inserting to our database is ok but how i can post the data to other on same time and to show their(other site's) page for further processing.please help....
[ August 19, 2004: Message edited by: Manoj John ]
Manoj John
Ranch Hand

Joined: May 13, 2004
Posts: 36
Hi..
Anybody please give me a solution for this.
Manoj John
Ranch Hand

Joined: May 13, 2004
Posts: 36
Hi nobody is there??

Now i am paasing data through pixel instead of posting(i don't know how to post to other site)
like this
<img src="http://www.someothersite.com/asp/catchpixel.asp?userId=123&firstName=sfaff" height=1 width=1 border=0>
on loading the particular page the asp action will execute it is working
but the problem is that after executing that i need to redirect to some other page of that site(not our site).if sendRedirect is ther the passing pixel data makes some problem it is not executing the action.
please give any solution that sendRedirect should work only after executing the action embedd in <img tag.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

A redirect will lose any parameters being sent along.

Either your other site needs to access the db or you need to perform a forward instead of a redirect.

I have no clue what the pixel thing is you're doing but I'm curious.


A good workman is known by his tools.
Manoj John
Ranch Hand

Joined: May 13, 2004
Posts: 36
Yes Marc,
when the image tag loads the corresponding action will execute.The user won't get aware of that.
in that action we can get the data as request parameter...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need urgent help on posting data to other site.