Java Reference
In-Depth Information
Figure 6.4: The default display of error messages
Let's modify these values to display error messages in a box with an
error icon, as illustrated in Figure 6.5 , on the following page:
Download email_08/res/StripesResources.properties
stripes.errors.header=<div class="errors">\
<img src="images/error.gif"/>
stripes.errors.beforeError=<p>
stripes.errors.afterError=</p>
stripes.errors.footer=</div>
Download email_08/web/css/style.css
div.errors {
display: block;
border: 2px solid #880000;
margin-bottom: 8px;
background-color: #FFDDDD;
}
div.errors p {
font-weight: bold;
color: #880000;
margin: 0;
}
As we can see, we did that much in the same manner as we changed
the display of information messages.
 
 
Search WWH ::




Custom Search