Forums Register Login

login page with different user

+Pie Number of slices to send: Send
Swastik Dey, here are the values which i am getting on the console :


user type= seller
user type= buyer
user type=admin
admin
+Pie Number of slices to send: Send
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.

+Pie Number of slices to send: Send
Mr.Nishi

try to remove the spaces in the user type.

i think in " seller" there is a space.

trim the string.
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
Every time you till, you lose 30% of your organic matter. But this tiny ad is durable:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 32828 times.
Similar Threads
Session Management Still weird
struts2 redirect from action login
filters in java
How to invalidate user's session forcefully
want to develop dynamic shopping cart
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:38:06.