Hi Friends,
How can i pass an array in the URL that calls a servlet. For instance,I have this in my servlet rite now:
MyClass obj = new MyClass();
String[] args = {"-opt1","-opt2","file1","file2","file3"};
obj.main(args);
I want that the "args" should come in the URL call,because some php application would be calling this, for instance:
http://localhost:8080/MyProject/MyServlet?args=somearray
MyClass obj = new MyClass();
String[] arg = request.getParameter("args");
obj.main(arg);
Please help..I would really appreciate it.
Thanks