0

why it is not working?

if((x.getParameter("Amount")).trim().isEmpty()) { y.sendRedirect("invalid.jsp"); // pw.print(d); }

28th Mar 2017, 7:34 PM
Somnath Ghosh
Somnath Ghosh - avatar
1 Answer
+ 4
before (x.getP... and after ..."Amount") the second bracket is not needed it should be: if (x.getParameter("Amount").trim().isEmpty()) { ... } for further help I have to know what datatype x and y are!
3rd Apr 2017, 6:45 PM
Johann Leis
Johann Leis - avatar