String stx = req.getParameter("stx"); System.out.println("stx: "+stx); if(stx == "rcontload") { service.contentload(reportno); };
When I received the value from the previous page, System.out.println ("stx: "+stx); when you print this part out, It is output to stx: rcontload.
So if you look at the if statement below, it should be stx == "rconload" true, but it appears to be false..
I wonder why the stx received as a parameter is not the same even though I saved it as a String.<
Always have a nice day :)
java jsp
I found it!
No errors appear when compared using the equlus() function!
© 2024 OneMinuteCode. All rights reserved.