Fill in form with Java

I have a net4 app with a page that has several panels.  

One of the panels contains a link to a third party application.  

That application presents a form in the panel.  The form has a username text box and a login control.  There is no html associated with the third party app other than the link.

I would like to fill in the text box with the username I have obtained earlier in the session from the user, and then programmatically click the login control in the third party panel.

I do not know Java, but I suspect it might do the trick.  

Thanks in advance.
Cgee
williecgAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michel PlungjanIT ExpertCommented:
Java is not JavaScript.

Java in a browser would mean writing an applet. I assume you meant JavaScript

In either case you would need a signed script or applet to fill in a form on a third party website

Instead use a http connection in .NET, connect and get  the form and post it back to the 3rd party from your server
jagssiduralaCommented:
you have to send a parameters as url parameters (query strings) or cookies but your 3rd party app should recognize these parameters to assign username or what ever fields you want to prefill.
williecgAuthor Commented:
jagssidurala,

Thanks for your response. How can I find out what the query string would need to look like?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

jagssiduralaCommented:
for ex: if 3rd party url is looks as below

http://www.3rdpartyurl.com/

so add your parameters as below.

http://www.3rdpartyurl.com?username=ABC&firstname=XYZ etc....
williecgAuthor Commented:
mplungjan,

Any suggestions on how best to use a http connection in .NET, connect and get  the form and post it back ?  I have not done that.  Thanks for the suggestion.
jagssiduralaCommented:
server controls itself maintains state and we can use the same to post the value......
Michel PlungjanIT ExpertCommented:
A google for dot net post
http://blog.brezovsky.net/
williecgAuthor Commented:
jagssidurala,

thanks, i tried several querystrings, but shooting in the dark.  if it does use querystrings, any way to see what i am sending to the server when i enter the data on my pc?
williecgAuthor Commented:
mplungjan,

thanks,  I don't do C#, but i found similar info for vb.  it seems to me i need info on what the server is getting from the client in order to post the correct information.

Any suggestions on how I can "see" what the client is sending to the server?
Michel PlungjanIT ExpertCommented:
Get Firefox, install firebug, open NET console.

Or

Get IEHTTP for IE8

Or put a dumper on your server and replace the form action with that

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
williecgAuthor Commented:
mplungjan,
Thanks, I loaded firebug and now I see what is being passed.  I think the http connection in .NET sounds promising.  At this point I know a lot more than when I asked the question.  I need to do some research to better understand so I can ask more focused questions.  I am awarding you the points, and appreciate your sharing.
Cgee
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.