Hello, I am new to JSP. I need to develop a web system using JSP. I have a few doubts that I couldn't figure out.
I understand how to write jsp page by embedding the jsp coding in the same page as the html form. I know this is not a good practice. I want to separate the logic and the form in different page but I don't know how to display the error message on the html form page after validate using the jsp logic in another page.
Beside that, I have try to use java bean to store the logic in java coding and called it using <jsp:useBean>. However, it doesn't work after I insert the <jsp:useBean> tag. It works when I try the example program but somehow it didn't work when I do it myself.
Can anyone give me any advice? Is there any rules in using the <jsp:useBean> so that it doesn't cause any error?
Thank you.