Dave Tolls wrote:
Both bits of Java code in your JSP can be done using tags and el, which is what they are for. So no, you should have no Java code in your JSP.
Also, you should not be storing request stuff in your session if it's not needed between requests (which this is not likely to be).
Why are you not simply forwarding to the JSP pages?
Why do a redirect?
Tbh I didn't know about tags, my java instructor taught my class to do it this way and that's what I've been doing.
I'll look into tags, thank you.
I know about forwarding, I use it in other pages I just couldn't get it to work for this one.
Bear Bibeault wrote:
Using scriptlets in 2015 is not only a bad practice, it is irresponsible and amateurish.
lol