i am entering a text in front end and i check the entered text in the back end (in the database). it returns a boolean value and if it is false, i want to giv an alert message in the front end. So is it possible to set the boolean value in the request.SetAttribute and retrive it in my jsp(front end)
<html-el:hidden property=”presentInModelAccessory” value=”${requestScope.presentInModelAccessory}”/>
<script>
informNotInModelAccessory();
function informNotInModelAccessory()
{
var present = document.all[“presentInModelAccessory”].value;
if( present == “false”)
{
alert(“This code is not present in Model Accessory table.”);
}
</script>