You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Taavi Tiirik <ta...@ibs.ee> on 2001/03/16 12:35:45 UTC

please help to get .jsp pages working

Hello,

I am very new to turbine and I could use your help to get .jsp pages
working.

The problem is that I cannot get even the simplest .jsp pages to compile
with
TDK-1.1a11. Not on my machine with jdk1.3 anyway. It gives a following
error message:

handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
cannot be applied to (java.lang.Throwable)

if (pageContext != null) pageContext.handlePageException(t);
                                    ^

generated .java code looks like this:

public void _jspService(HttpServletRequest request, HttpServletResponse
response)
{
	...

	try {

		...

	} catch (Throwable t) {
		...
		if (pageContext != null) pageContext.handlePageException(t);
	}

}

Should it catch Exception instead of Throwable? At least
handlePageException()
is expecting java.lang.Exception.

What should be done to get it working?


any help would be appreciated,

thanks,
Taavi


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: please help to get .jsp pages working

Posted by John McNally <jm...@collab.net>.
jsp is not working within the tdk at the moment.  It was working in an
earlier tdk, but I think the move to catalina broke something.  It could
be something as easy as a constant being used in the taglib has changed
its name, but no one has figured out the exact problem.  I am not sure
that this is related to the error below however, it looks like you are
maybe setting an error page and trying to get jsp to use it to handle
errors as well as exceptions and this is not allowed.  But I do not know
enough about jsp error messages or jsp at all to be able to decipher the
problem from this error message.  Good luck.

John McNally

Taavi Tiirik wrote:
> 
> Hello,
> 
> I am very new to turbine and I could use your help to get .jsp pages
> working.
> 
> The problem is that I cannot get even the simplest .jsp pages to compile
> with
> TDK-1.1a11. Not on my machine with jdk1.3 anyway. It gives a following
> error message:
> 
> handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
> cannot be applied to (java.lang.Throwable)
> 
> if (pageContext != null) pageContext.handlePageException(t);
>                                     ^
> 
> generated .java code looks like this:
> 
> public void _jspService(HttpServletRequest request, HttpServletResponse
> response)
> {
>         ...
> 
>         try {
> 
>                 ...
> 
>         } catch (Throwable t) {
>                 ...
>                 if (pageContext != null) pageContext.handlePageException(t);
>         }
> 
> }
> 
> Should it catch Exception instead of Throwable? At least
> handlePageException()
> is expecting java.lang.Exception.
> 
> What should be done to get it working?
> 
> any help would be appreciated,
> 
> thanks,
> Taavi
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org