Hello,
I am encountering a problem with jobo 1.4 beta. I have a
form handler setup, but it cannot find it because it is
trying to match the URL and it is including the session
Id in the URL. Below is the URL it is trying to match:
http://server01.xxx.com/xxxWebApp/application;JSESSI
ONID_xxxWebApp=2mIh6cIciCAug7zOaeEDO7wQemrZ
ki9IYFK3X6YJKVTzjx3aJVie!-1418688532
Since there is no source yet for Jobo 1.4, I took the
net.matuschek.html.FormFiller.java from the jobo 1.3
source package and replaced the class file in the Jobo
1.4 .jar file and added this code in fillForm method:
int parm1 = formURL.indexOf(";");
int parm2 = formURL.indexOf("?");
if (parm1 > 0) {
String strippedURL = formURL.substring(0,
parm1);
if (parm2 > parm1) {
strippedURL += formURL.substring(parm2);
}
formURL = strippedURL;
log.debug("url JSESSIONID stripped: " +
formURL);
}
The hack works fine, but this is not an ideal thing to do
using code from another version.
FormFiller.java from 1.3 with modification
Logged In: YES
user_id=153115
Source for JoBo 1.4beta is CVS. Youre hack may work for you,
but I'm not sure, if this is a good generic approach. It is
possible that someone needs this. A better approach will be
wildcards in FormHandlers. I will see, if I can modify JoBo
that it allows wildcards in FormHandlers. But this may need
some time.