Sorry for the incomplete exception, the server is running in a test
environment totally cut off from any network (company policy) on my
personal laptop. I'll post the whole exception later on this evening
when I get home. The stab in the dark is quite appreciated, but no it
does not take any arguments.
--code--
package com.onjava;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.TagSupport;
public class HelloTag extends TagSupport
{
public void HelloTag() {
}
public int doEndTag() throws JspException {
try {
pageContext.getOut().print("Hello");
}
catch (Exception e) {
throw new JspTagException(e.getMessage());
}
return SKIP_BODY;
}
public void release() {
super.release();
}
}
--code--
any more thoughts/suggestions always welcome,
matt
-----Original Message-----
From: QM [mailto:[EMAIL PROTECTED]
Sent: Monday, May 17, 2004 2:12 PM
To: Tomcat Users List
Subject: Re: taglib - O'Reilly tutorial problem
On Mon, May 17, 2004 at 01:49:18PM -0400, Zollinhofer, Matt wrote:
: The last part of the tutorial is creating custom tags, and when I
: implement that part of the tutorial, I receive a
: javax.servlet.ServletException:
: javax.servlet.jsp.tagext.TagInfo.<init>(...) exception. Googling the
: error didn't turn up any seemingly useful information, and the end of
: the article also did not show anyone else having the same issue.
: <!-- <b>Welcome : <%= request.getAttribute("USER")%></b> -->
: <b><onjava:hello /> : <%= request.getAttribute("USER") %></b>
What's the full stack trace?
Barring that, I'll take a stab in the dark: does the custom tag take an
argument, either as body content or an attribute? e.g.
<onjava:hello> <%= ... %> </onjava:hello>
?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]