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
This week's giveaway is in the
Testing
forum.
We're giving away four copies of
TDD for a Shopping Website LiveProject
and have Steven Solomon on-line!
See
this thread
for details.
Win a copy of
TDD for a Shopping Website LiveProject
this week in the
Testing
forum!
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
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
JSP
SkipPageException
Sen Aff
Ranch Hand
Posts: 63
posted 14 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 14 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: 67636
173
I like...
posted 14 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 14 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 14 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 14 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: 67636
173
I like...
posted 14 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 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thanks people...
the import works
Sen Aff.
I found a beautiful pie. And a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
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...