Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
JSP
SkipPageException
Sen Aff
Ranch Hand
Posts: 63
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 510
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Please post your code (using the code tags) and the error message...
Bear Bibeault
Sheriff
Posts: 67752
173
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
From where are you trying to call this exception? Not from within a
JSP
I hope.
Have you imported the class?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Sen Aff
Ranch Hand
Posts: 63
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 510
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Where is the compiler error message?
Michael Ku
Ranch Hand
Posts: 510
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Every SimpleTag that I have imports the class
import javax.servlet.jsp.SkipPageException;
If it is missing, then add the import. This is why I wanted to see the compile error message...
Bear Bibeault
Sheriff
Posts: 67752
173
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This is basic
Java
. Tags are just Java classes like any other and you must import any classes that you plan to reference.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Sen Aff
Ranch Hand
Posts: 63
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thanks people...
the import works
Sen Aff.
permaculture is largely about replacing oil with people. And one tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
SkipPageException one more problem
SkipPageException
Behavior: Include standard action and Include directive
Compiling Error.
SkipPageException - Doubt
More...