We help IT Professionals succeed at work.

error reporting within the same jsp page

gaugeta
gaugeta asked
on
305 Views
Last Modified: 2012-08-14
Hi eperts...
I have a jsp with a form in it where the user enters his credentials.I wanted to know if the credentials can be checked on the same jsp page and error reporting can also be done on the same jsp page.
Comment
Watch Question

Commented:
You can do it...

But It is not correct way of design to check the credentials on the same page.

Always do the credential verification in servlet/some other controller code..

you can display the error on the same page if any.
CERTIFIED EXPERT

Commented:
>>>>>>>I have a jsp with a form in it where the user enters his credentials.I wanted to know if the credentials can be checked on the same jsp page

You can do with help of scriplets .... but when you right click on the page and view soucres it will give your DB deatils ,user deatils  and more importtent that user password.

so its very easy to hack (Not hacking mis use the user credentials).
CERTIFIED EXPERT

Commented:
>>>>>error reporting can also be done on the same jsp page.

You can set the error or scueess message as request object in the Java calss and get it in your Jsp ....
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.