Hello
I have 2 screens that use the same form. The form class has a validate
function. To distinguish which screen(jsp file) is using the form I do the
following in jsp files:

<% session.setAttribute("page", "add") %>
<% session.setAttribute("page", "add_2") %>

Then in the form class I grab that value and figure out what values to
validate.
Is it a good way to do it?

Reply via email to