Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FORWARD MAPPING  RSS feed

 
owen dodd
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey iwas wondering if some1 could help me with this. Instead of just entering and forwarding with health i want to forward and entered with other words and return them to there mapping(words such as Legal, Medicine etc) i was wondering if someone could help me 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"));
}
 
Afroz Ahmed
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
This is related to Struts..post in struts section,please.
Regards
Afroz Ahmed
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!