Support Center
»
Knowledgebase
»
Passing applet parameters dynamically from ASP, PHP, JSP etc...
Passing applet parameters dynamically from ASP, PHP, JSP etc...
Solution
Every applet is distributed with a javascript file to aid in setting up the applet parameters. If you want to dynamically set the parameters of the applet, the easiest way to do it is to first copy and paste the contents of the .js file directly into your HTML file. Now, depending on your server side technology, ASP, JSP, PHP, etc... you need only replace the javascript variables with scriptlets. Here is an example with JSP: ...
<%
String username = "anonymous";
String password = "uftp@nlimitedftp.com";
String hostname = "ftp.sun.com";
String port = "21";
%>
<script>
// Connection related values
var server =
"
<%= hostname
%>
";
var port =
"
<%= port
%>
";
var pass =
"
<%= password
%>
";
var user =
"
<%= username
%>
";
...
</script>
Article Details
Article ID:
5
Created On:
25 Oct 2006 02:58 PM
Back
Login
[Lost Password]
Email:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Article Options
Print Article
PDF Version
Email Article
Add to Favorites
Home
|
Register
|
Submit a Ticket
|
Knowledgebase
|
News
Copyright ® 2001-2010 FileCatalyst, UnlimitedFTP and Files2U are registered trademarks of Unlimi-Tech Software Inc