Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FINDFORWARD

Status
Not open for further replies.

owendodd

Programmer
Apr 1, 2004
3
IE
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"));
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top