This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i´m using 3 jsp pages to retrieve personal info of registered members: checklogin.jsp, this file is verifying, whether someone is registered, select.jsp, this file contains the select query and GSON.jsp, this file contains gson object with results from the previously mentioned select query. The login and password is sent from android application...My problem is that the output shows everywhere null.
This part of code (checklogin.jsp) records data from login form. (the username is stored to session)
This part of code is selecting info of this logged member and stores this info to sessions(select.jsp)
This part is displaying the info(gson.jsp):
This gson.jsp is showing null everywhere. I dont know where is the problem, because when i tried to login from jsp form(not from android), the gson.jsp shows me the info of logged person.
I am not sure what NetBeans has to do with it: probably nothing. If you are using app code to connect to the server then you need to handle Cookies yourself. Android has the Apache HTTP Client built in which will make Handling the cookies and requests easier. You should read the documents on http://hc.apache.org/httpclient-3.x/ to learn how to use it.