Link to home
Start Free TrialLog in
Avatar of poweranger77
poweranger77

asked on

how to remove this package display

hi, i am having this file,

package a.b.c;

public class UserException extends Exception{

      static Logger logger = Logger.getLogger(UserException.class.getName());

      public UserException(String msg) {
            super(msg);
      }
      
      public UserException() {
            }
      
      public String toString(){
            return (super.toString());
      }
}
*********
So, in my application,

i initialised the application with this,

new UserException("No Result")

and i will do a printout overall, with this,

      main_message = e.toString();
      req.setAttribute("main_message", main_message);

by using the request session to pass it to my JSP page.

Thus, it'll print out : "a.b.c.UserException : No Result"

How can i only need to print out "No Result" only? Anyway to do this?
ASKER CERTIFIED SOLUTION
Avatar of avinthm
avinthm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial