• Post Reply Bookmark Topic Watch Topic
  • New Topic

Comparing Query String and Database values

 
Nithish Yalamanchili
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam having querystring
response.sendRedirect("app.jsp?name="+usrname+"");

and a database query

SELECT * FROM LOGINSTATUS WHERE EMAIL='"+username+"'"

i need compare these 2 values when validating session , how can we do this.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is this query ? What are you doing with the username parameter in your jsp ? Where are you trying to validate the session, in the JSP or the servlet ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!