Hi,
Has anyone come across this before?
I've got an httpunit
test that calls click() on a link whose url is a call to a javascript function with one parameter. (eg "javascript:cancel('123')".
This script then concats the param onto the end of a url
string that already contains a param.
(eg
function cancel(id) {
var requestAction = 'myAction.do?method=viewAction&pcnApplicationId=' + id;
...
)
This string is then set as the action of a
struts form and submitted.
My problem is that the final parameter is cut off! A getUrl on the resulting WebResponse returns "http://..../'myAction.do?method=viewAction".
It seems to be the ampersand that's the problem!
Any suggestions appreciated.