aspose file tools*
The moose likes JSP and the fly likes SkipPageException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "SkipPageException" Watch "SkipPageException" New topic
Author

SkipPageException

Sen Aff
Ranch Hand

Joined: Mar 08, 2007
Posts: 63
Hello,

I am trying to use SkipPageException() but it will not compile.
The compiler says:

SkipPageException cannot be resolved to a type

Can anyone please help me out?

Thanks in advance.

Senyo Affram.
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
Please post your code (using the code tags) and the error message...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

From where are you trying to call this exception? Not from within a JSP I hope.

Have you imported the class?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sen Aff
Ranch Hand

Joined: Mar 08, 2007
Posts: 63
this is part of my code


public void doTag() throws JspException, IOException{

getJspContext().getOut().print("Message from doTag()");
getJspContext().getOut().print("About to throw a SkipPage Exception");


if(true){
throw new SkipPageException();
}
}


is there any class to import?

Thanks.

Senyo.
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
Where is the compiler error message?
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
Every SimpleTag that I have imports the class



If it is missing, then add the import. This is why I wanted to see the compile error message...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

This is basic Java. Tags are just Java classes like any other and you must import any classes that you plan to reference.
Sen Aff
Ranch Hand

Joined: Mar 08, 2007
Posts: 63
thanks people...
the import works

Sen Aff.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SkipPageException
 
Similar Threads
SkipPageException
SkipPageException one more problem
Behavior: Include standard action and Include directive
SkipPageException - Doubt
Compiling Error.