Regards,
Shweta Bhardwaj
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Regards,
Shweta Bhardwaj
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Regards,
Shweta Bhardwaj
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Regards,
Shweta Bhardwaj
Regards,
Shweta Bhardwaj
Regards,
Shweta Bhardwaj
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Bhardwaj Shweta wrote:
and servlet is working fine:)
but in my jsp page its showing value of String s6 = rs.getString("priority") in all the fields..
error is in my logic
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Regards,
Shweta Bhardwaj
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Vijitha Kumara wrote:As I said encapsulate all the fields for a given record in an object (add it to the list) and access that object in the JSP. This way you can have many records retrieved easily in the JSP. But with this code, retrieve the data to different variables(since this is only for one record you are using) for each field and use them in the HTML elements.
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook