I'm modifying a JSP/servlet site that I didn't develop, so I'm kind of new to this. I'm trying to pull contact info from a bean on my site, and I can do that just fine. I need to use it to submit a form on another website's webpage (done in ASP, but I don't think that matters). I wanted to populate the text fields on that external form, but I don't think that's possible, b/c in the source those fields' values are hardcoded like this:
value=""
If you know of any way to trick it, I'm all ears. Meanwhile, my preference was to populate the fields and not submit it so that users could view the info before submitting, but that's not necessary, b/c the next page is a confirmation page (so I'm assuming I can post the form data from within my Java code and so just take my users straight to that external confirmation page).
For another project, I used the Apache Common HTTPClient, but in this case, I'd rather not, b/c I don't yet even know how to compile all the site (I only know how to make changes to the JSPs). I figure it should also be pretty easy to submit a form in JSP, even if it's on another site. Am I right? I'm not sure how to, though--it seems a little bit hairy, especially the part where I need to open up that confirmation page after submitting the form. Do I just use GET or POST to submit a form and have the HREF include target='_blank', or is it a bit trickier than that? If you have a good idea about how to code this, I'd love to see it!