K
krasicki
I'm looking for the recipe to do the following:
I have created a jsp struts page that contains a form. The page is
called logon.jsp and it has a corresponding jsp page called done.jsp.
If the button on the form is a success, I redirect to done.jsp. So far
so good.
If the button on the form encounters errors I return the appropriate
error messages to logon.jsp and they display exactly to <html:errors/>.
However, the next level of refinement has me puzzled.
Within logon.html, I have created an errors section at the bottom of
the page and I use an anchor tag, <a NAME="errors">, to identify its
beginning.
I have tried to map my 'failure' condition to logon.jsp#errors with no
luck. The page is mapped to <whatever>logon.do no matter what
combinatorials I've tried. And just to be clear, my jsp layout is
designed so that the errors section is intentionally unobtrusive to the
logon part of the page. IOW, I know that I can just display the errors
higher on the page and so on. The point is that I want a space for
verbose explanations that aren't disorientating to the user's
expection.
Is this exercise possible in Struts?
I have created a jsp struts page that contains a form. The page is
called logon.jsp and it has a corresponding jsp page called done.jsp.
If the button on the form is a success, I redirect to done.jsp. So far
so good.
If the button on the form encounters errors I return the appropriate
error messages to logon.jsp and they display exactly to <html:errors/>.
However, the next level of refinement has me puzzled.
Within logon.html, I have created an errors section at the bottom of
the page and I use an anchor tag, <a NAME="errors">, to identify its
beginning.
I have tried to map my 'failure' condition to logon.jsp#errors with no
luck. The page is mapped to <whatever>logon.do no matter what
combinatorials I've tried. And just to be clear, my jsp layout is
designed so that the errors section is intentionally unobtrusive to the
logon part of the page. IOW, I know that I can just display the errors
higher on the page and so on. The point is that I want a space for
verbose explanations that aren't disorientating to the user's
expection.
Is this exercise possible in Struts?