1. Create a Page with a Message text Input and Submit Button
2. Enter the name in Text Button and click on submit button.
3. Once Submit the program should display a message with Exception
Code:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("submit")!=null) {
throw new OAException ("Hello "+ pageContext.getParameter("item1"),OAException.INFORMATION);
}
}
Output after clicking on submit button.
2. Enter the name in Text Button and click on submit button.
3. Once Submit the program should display a message with Exception
Code:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("submit")!=null) {
throw new OAException ("Hello "+ pageContext.getParameter("item1"),OAException.INFORMATION);
}
}
Output After running the page
Output after clicking on submit button.
No comments:
Post a Comment