Professional Documents
Culture Documents
Display Exception Messages Based On Conditions
Display Exception Messages Based On Conditions
On Conditions
Create Work Space
Create Project
Select u r db Connection
Enter dbc fle path and frontend details
Click on fnish
Create Page(in webui) and AM(in serer)
Attach AM to Page and gie the Window !itle and title in Main "egion
properties
#ow run the page
Create one "egion(header) With $ ite%s(one te&t input'sub%it button)
#ow create one controller in %ain region
(pen Controller fle and write so%e jaa code in process for% re)uest
String n%*pageConte&t+getPara%eter(,E&p#a%e,)-
if(pageConte&t+getPara%eter(,.o,)/*null)
0
String %sg*,hello ,1n%1, //// ,-
throw new (AE&ception(%sg'(AE&ception+C(#23"MA!3(#)-
4
rebuild and run the page
Enter an5 na%e or word click on .(
"e%oe old code in process for% re)uest
Add this code see the result
String n%*pageConte&t+getPara%eter(,E&p#a%e,)-
if(pageConte&t+getPara%eter(,.o,)/*null)
0
if(/n%+e)uals(,,))
0
String %sg*,hello ,1n%1, //// ,-
(AMessage!e&t3nput6ean
%tib*((AMessage!e&t3nput6ean)web6ean+fndChild"ecursie(,E&p#a%e,)-
%tib+set7alue(pageConte&t'null)-
throw new (AE&ception(%sg'(AE&ception+C(#23"MA!3(#)-
4
else
0
throw new (AE&ception(,please enter a alue,'(AE&ception+E""(")-
4
4
#ow run the page
Without enter the data click on .(
Enter so%e data in na%e feld then click on .(