Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-28-2008, 11:26 PM
Member
 
Join Date: Mar 2008
Posts: 3
redmoonzer01 is on a distinguished road
simulate form type=button press with java application
I made a website that uses html and javascript to require log in.
Now i wanted to make a Java application to log in ... instead of using a browser
with a browser you would enter your name in text field and click Login

I use HTTPClient Emulating HTML Forms

now i use NVPair to send the form data for the text field
but it just sits there

i am thinking my problem is: I am not pressing the button
I don't know how to set up a NVPair to simulate the button press

I use InputStream and BufferedReader to read the page
When i do that i seem to get the html code sent to me

When you log in you get to a page that says you are in
If i get the html code that says YOUAREIN i would know it worked

but i am only getting the html code for the login page

so i am thinking i am just filling out the form and not submitting it
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-29-2008, 07:28 AM
Member
 
Join Date: Mar 2008
Posts: 3
redmoonzer01 is on a distinguished road
ok now i am using apache HttpClient

i am getting same results

i submit the form data
and get response of null

they say something about how you need to check cookie to see if logon worked

but my method of log on is just a html form with javascript that if you log on correct you get directed to a new site
... don't think cookies are even involved

so i was hoping i could send the log on data ... then read the resulting page but what i read is NULL
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Control Panel not saving changes when I press OK RebelScum New To Java 0 03-21-2008 05:22 PM
Java Search Form djcottrell New To Java 1 12-28-2007 08:47 PM
simulate message box pablitohh New To Java 1 12-05-2007 05:52 PM
Adding EXIT button on MIDlet form Java Tip Java Tips 0 11-22-2007 11:13 AM
Press any key to continue/press enter JT4NK3D New To Java 1 11-17-2007 10:27 PM


All times are GMT +3. The time now is 08:27 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org