Joe Harry wrote:Is the 3rd party web front-end only a java script front end or what is it?
One way to intercept requests and responses would be by using a filter configured in your web.xml.
Bear Bibeault wrote:
A Farroll wrote:I am maintaining a servlet program built on Java and running on Tomcat 7 with Windows operating system. The servlet application has no actual servlet class.
I'm confused: how can you have a servlet program with no servlets?
Dave Tolls wrote:
A Farroll wrote:Thanks once again Dave. I agree there doesn't seem to be anything changing the value of "value" that is why I found it so confusing. I have spent some time trying to get the contents of "value" parameter to the second try-catch block. How do I do this or amend the try-catch to allow this?
Regards
AJF
So what is it you are actually trying to achieve?
Because it really isn't clear.
"get(ting) the contents of "value" parameter to the second try-catch block" explains nothing.
You could do that by simply sticking it at the beginning of the method and removing everything else.
Dave Tolls wrote:Not convinced by this bit of the code (lines 14 - 17 in the above):
If value is empty then it will never reach the if statement as the parseLong will have thrown a NumberFormatException, so no point with the check there at all.
That aside, what is printed out by the println statement in the else block?