Hi i need help with the following i wish to return a number of mapping instead along with Health, could you please help in relation to the code
try {
if (database.insertStudent (Name, Password, Snumber, Address, Phone, Email, Confirm, Favourite, Title, Dit, Year, Descript, Type, Code, Faculty, Expertise, Confidential)){
ActionMessages messages = new ActionMessages();
ActionMessage message = new ActionMessage("message.student.insert.Health", studentDTO.getName());
messages.add( ActionMessages.GLOBAL_MESSAGE, message);
saveMessages( request, messages );
request.setAttribute("student",studentDTO);
}
return (mapping.findForward("Health"));
}
catch( Exception e ) {
ActionErrors errors = new ActionErrors();
ActionError error = new ActionError("error.student.databaseException");
errors.add( ActionErrors.GLOBAL_ERROR, error );
saveErrors( request, errors );
return (mapping.findForward("error"));
}
try {
if (database.insertStudent (Name, Password, Snumber, Address, Phone, Email, Confirm, Favourite, Title, Dit, Year, Descript, Type, Code, Faculty, Expertise, Confidential)){
ActionMessages messages = new ActionMessages();
ActionMessage message = new ActionMessage("message.student.insert.Health", studentDTO.getName());
messages.add( ActionMessages.GLOBAL_MESSAGE, message);
saveMessages( request, messages );
request.setAttribute("student",studentDTO);
}
return (mapping.findForward("Health"));
}
catch( Exception e ) {
ActionErrors errors = new ActionErrors();
ActionError error = new ActionError("error.student.databaseException");
errors.add( ActionErrors.GLOBAL_ERROR, error );
saveErrors( request, errors );
return (mapping.findForward("error"));
}