A few things right off the bat:
Ricky Jay wrote: public void setTValue(String rfid){this.tValue=tValue;}
public String geTValue(){return tValue;}
Fix the typos. If this is not your real code, then be sure to post the
real code.
And TValue is a poor choice for a property name. What's T? Pick something better.
url = "/index.jsp?load=loaded";
What's with the query
string on the URL? Get rid of it. Any data should be passed from the controller to the JSP via scoped variables.
HttpSession session = request.getSession();
What is the purpose of this statement? Adding needless code just makes things confusing and creates opportunities for errors.
String url ="";
What is the purpose of this statement? Adding needless code just makes things confusing and creates opportunities for errors.
//THIS IS WHERE I'M GETTING CONFUSED AND WOULD LIKE TO EITHER RETURN A OBJECT and Array of Objects... OR A SINGLE VALUE.
What's stopping you?
Your example doesn't make much sense because all you are doing is fetching a single column from the row. In that case, why not just return the string? Why complicate things?
If you want to return a more complex object containing all the row data, adjust your example accordingly.