File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes can i pass params from .jnlp to a cgi program? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "can i pass params from .jnlp to a cgi program?" Watch "can i pass params from .jnlp to a cgi program?" New topic
Author

can i pass params from .jnlp to a cgi program?

Sailaja Akkineni
Greenhorn

Joined: Sep 06, 2003
Posts: 9
Hi,
I have an applet which runs from java web start.I want to pass some params like user id to another cgi program.How can i do this?
Thanks,
Sailaja
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
Originally posted by Sailaja Akkineni:
I have an applet which runs from java web start.I want to pass some params like user id to another cgi program.How can i do this?

First the cgi script to which you want to send parameters should be on the same server where applet is present.
Coming to passing parameters to cgi script , you can do this in two ways
i) Construct url manually. In this approach you should take care of parameter encoding.This can be tricky.
for eg:
to invoke getDetails.cgi with parameters name and age
use getDetails.cgi?name=murthy&age=22
ii)Make use of URLEncoder and URLDecoder classes.
[ September 17, 2003: Message edited by: Murthy Narasimha ]
Sailaja Akkineni
Greenhorn

Joined: Sep 06, 2003
Posts: 9
Hi,
Thanks a lot..
Sailaja
 
IntelliJ Java IDE
 
subject: can i pass params from .jnlp to a cgi program?
 
Threads others viewed
Getting aRequest params to doView
Rewriting URL in jstl
php form arrays in java
posting data not using a form
Passing initialization params to Action class
developer file tools