Hi all,
I have a jsp file which loads a page at this address:
http://localhost:8080/dir/list/
I've added two checkboxes to the page; user can check both checkboxes, only one or none. Following is code I have in jsp file:
This is my Controller class:
The way my jsp code is written now, it calls the correct method and displays the correct url. When page loads for the first time, it calls method1 and the url is:
http://localhost:8080/dir/list
When the user checks/unchecks one or both checkboxes and clicks on apply button, method3 is called and this url is displayed:
If both checkboxes are checked which both booleans are set to true:
http://localhost:8080/dir/list/true/true
Everything is fine... however, if I comment these two lines at the end of JavaScript apply() function,
Then method3 will never gets called; only method1 gets called and I see this url:
http://localhost:8080/url/list//?newItems=%23&rejectedItems=%23&apply=Apply
I do not know why it gets confused bet. method1 and method3 and cannot pick the right method?
I tried to use the POST method instead, but the page goes directly to our internal error page and it never reaches the method I wrote in my controller for POST:
So I got rid of POST alltogether...
I cannot use the GET method correctly either... I don't really know what I'm doing wrong? Any help is greatly appraciated.