I have configured in a file "undertow-handlers.conf" as below
regex('/[0-9](.*)') -> rewrite('/test/cr.jsp?qp=${0}')
regex('(t1/)(.*)(.jsp)') -> rewrite('/test/cr1.jsp?${0}%q')
equals(%U,"/") -> rewrite('/test/cr.jsp?qp=/')