It would be very helpful if someone can share any info/probable
solution for an issue i am facing, which is,
after submitting the request to process, if an exception is
generated and a new FormException
is created and added to the request
so that it can be read and displayed in UI
However when we read formHandler.formExceptions
in the jsp the
value is coming out as null, i.e. the exception generated in the
formhandler is lost due to which we are unable to message the end user
of the error.
The submit method is invoked as below:
A.jsp
has ajax call and includes B.jsp
:
$(function() {
$("#previewAddToSbBtn").click(function() {
$.ajax({
type: "POST",
url: action,
data: params,
success: function() {
//alert("Item has been added");
$("#qp_content").load("/some.jsp?);
}
});
});
B.jsp
has the actual submit button and calls FormHandler
:
<dsp:input type="hidden" bean="FormHandler.addItemToOrder" value=""/>
<a id="previewAddToSbBtn" title="Add to Shopping Bag" href="#">add to cart> </a><br/>
Any help/info is greatly appreciated.