I just found the Inline::Java today and I was trying to login to an internal website and click through the options to download an excel file so I may parse through it with perl.
At first I was working with WWW::Mechanize but since there aren't really any links to follow, I thought my best option was to use this module and use the functions inside of the jsp pages to pass variables around so I can grab my file. Is it possible to accomplish this with Inline::Java? For instance, we have the login screen here: http://hostname/site/login.jsp And the java to check the user & password against the database. Would we include the below javascript inside the Inline Java? (This is part of the source in login.jsp) // The function checks the legality of the user name and password. function checkit(){ var name = document.LoginForm["userlogin"].value; var password = document.LoginForm["userpassword"].value; // Check if the user filled the user name field. if (name=="") { alert("Please type a login name."); document.LoginForm['userlogin'].focus(); return false; } // Check if the user filled the user password field. if(password==""){ alert("Please type a password."); document.LoginForm["userpassword"].focus(); return false; } // Check if the user entered some illegal characters if(isContainSpecialCharacter(name)){ alert("Your username contains illegal characters") document.LoginForm['userlogin'].focus(); document.LoginForm['userlogin'].select(); return false; } if(isContainSpecialCharacter(password)){ alert("Your password contains illegal characters") document.LoginForm["userpassword"].focus(); document.LoginForm["userpassword"].select(); return false; } */Finally, this is defintely a newbie question for Inline Java, but I have this: use Inline Java => <<'EOJ'; function checkit(){ // The class body is shown in the Java Code above } EOJAnd get this error:Can't find string terminator "EOJ" anywhere before EOF at /opt/QoSM_TM/bin/HealthModule.pm line 207. (Line 207 is the use Inline Java =>...)Thank you for any direction you can provide.Nathan