Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java HTTP Post

 
mandahr James
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a java applet with the following data

Name
Age
Submit button

I want when user hit submit button the data is posted to a XYZ.php page where I can process this data. In simple words

"java program to open a web page in browser and post data into the same opened page"

Thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why use an applet instead of a normal web page?
 
mandahr James
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because data needs some processing inside Java and then it should post to a php page.
 
Tim Moores
Bartender
Posts: 3134
50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not a particularly good reason. Processing should be done on the server anyway, and you should go to quite some length to avoid applets, for various reasons.
 
mandahr James
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I also want to but this is a demand of our application. do you have any idea how I can achieve this?
 
Tim Moores
Bartender
Posts: 3134
50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a professional, you need to push back against such bad ideas. It sounds as if someone who doesn't understand the technical implications has made an implementation decision.

Why can't the form be submitted to the server and all processing be done there? That's the sound design, and it avoids all the headaches that come with applets.
 
mandahr James
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right. Here is the flow

1. Load applet
2. read PKCS digital certificates
3. and post that data to a php page

I hope you understand why I need to post to PHP.

 
Tim Moores
Bartender
Posts: 3134
50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the actual issue is that a client certificate needs to be submitted? That would have been useful to know from the start.

Why can't the certificate be imported into the browser? That way, if the server asks for a certificate, it'll be available.
 
mandahr James
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes sir

Java PKCS class read those certificates and I am using that data for signing. this is why i can't load in browser.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic