This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

login page with different user

 
nishi kishore
Ranch Hand
Posts: 32
Chrome Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swastik Dey, here are the values which i am getting on the console :


user type= seller
user type= buyer
user type=admin
admin
 
Swastik Dey
Rancher
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If these are the exact values you are getting from table, look carefully. There seems to be a leading and trailing space for usertype seller and buyer but not for admin
' seller '
' buyer '
'admin'

so while doing the check, you need to remove the spaces.

 
sailaja usha
Greenhorn
Posts: 13
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr.Nishi

try to remove the spaces in the user type.

i think in " seller" there is a space.

trim the string.
 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nishi kishore wrote:kunal, it will take a lot of time to learn a new concept and implement it.


By now you would have learned MVC and solved the problem.
 
nishi kishore
Ranch Hand
Posts: 32
Chrome Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swastik Dey ,

wow.......!!! you have an eagle eye.

thank you very much, finally my problem is resolved because of you.
thank you very much for your assistance.
 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NIshi, today MVC architecture is a must. That's separation of business logic, persistence logic, rendering logic. Its not a difficult concept. You just need to create different classes, like bean class, a separate class for servlet, persistence and jsp to render the view. Try, we are there to help you
 
nishi kishore
Ranch Hand
Posts: 32
Chrome Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kunal Lakhani, i have developed this project entirely in jsp. this project is 70% completed and 30% more to go.
how can i convert this whole project from jsp to MVC.
 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that's a college project, then its ok. But still, i recommend you to go for MVC next time, and avoid java codes in jsp.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic