Thanks for your help on the custom tag error problem.
When I move the application from the ROOT/ folder to
the webapps folder everything worked fine. I am new to
JSP and tomcat and have been putting all my
applications under ROOT and everything worked fine
before this. WHY?

--- Bill Barker <[EMAIL PROTECTED]> wrote:
> 
> "Percival Bragg" <[EMAIL PROTECTED]> wrote in
> message
>
news:[EMAIL PROTECTED]
> > The following are the current files and the error
> from
> > tomcat that I received in trying my first custom
> tag.
> >
> >  The following is the java class for the custom
> tag.
> > package com.braggonline.portal;
> >
> > import java.io.*;
> > import javax.servlet.jsp.tagext.*;
> > import javax.servlet.jsp.*;
> >
> > public class bannerTag extends TagSupport {
> >
> > public int doEndTag() throws JspException {
> >
> > StringBuffer out = new StringBuffer();
> >
> > out.append("<table width=&quot;100%&quot;
> > cellspacing=&quot;0&quot; class=&quot;HeadBg&quot;
> > border=&quot;0&quot;>");
> >     out.append("<tr valign=&quot;top&quot;>");
> >     out.append("<td colspan=&quot;3&quot;
> > class=&quot;SiteLink&quot;
> > background=&quot;images/bars.gif&quot;
> > align=&quot;right&quot;>");
> >     out.append("<span
> > id=&quot;Banner_WelcomeMessage&quot;
> > style=&quot;color:#EEEEEE;&quot;></span>");
> >     out.append("<a href=&quot;index.html&quot;
> > class=&quot;SiteLink&quot;>Braggonline Home</a>");
> >     out.append("<span
> > class=&quot;Accent&quot;>|</span>");
> >     out.append("<a href=&quot;index.html&quot;
> > target=&quot;_blank&quot;
> > class=&quot;SiteLink&quot;>Site Map</a>");
> > out.append("<span
> > class=&quot;Accent&quot;>|</span>");
> > out.append("<a href=&quot;index.html&quot;
> >
>
target=&quot;_blank&quot;class=&quot;SiteLink&quot;>Logoff</a>");
> > out.append("&nbsp;&nbsp;</td></tr>");
> >     out.append("<tr><td width=&quot;10&quot;
> > rowspan=&quot;2&quot;>&nbsp;</td>");
> >     out.append("<td height=&quot;40&quot;>");
> >     out.append("<span
> id=&quot;Banner_siteName&quot;
> > class=&quot;SiteTitle&quot;>BraggOnline
> > Portal</span></td>");
> >     out.append("<td align=&quot;center&quot;
> > rowspan=&quot;2&quot;>&nbsp;</td></tr>");
> >     out.append("<tr><td>");
> >     out.append("<table id=&quot;Banner_tabs&quot;
> > class=&quot;OtherTabsBg&quot;
> > cellspacing=&quot;0&quot; border=&quot;0&quot;
> >
> style=&quot;border-collapse:collapse;&quot;><tr>");
> > out.append("<td class=&quot;TabBg&quot;
> >
>
style=&quot;border-width:1px;border-style:solid;height:25px;&quot;>");
> >     out.append("&nbsp;<span
> >
>
class=&quot;SelectedTab&quot;>Home</span>&nbsp;</td>");
> >     out.append("<td
> >
>
style=&quot;border-width:1px;border-style:solid;height:25px;&quot;>&nbsp;<a
> >
>
href=&quot;http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=1&tabid
> =2&quot;
> > class=&quot;OtherTabs&quot;>JSP</a></td>");
> >     out.append("<td
> >
>
style=&quot;border-width:1px;border-style:solid;height:25px;&quot;>&nbsp;<a
> >
>
href=&quot;http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=2&tabid
> =3&quot;
> > class=&quot;OtherTabs&quot;>JavaBeans</a></td>");
> >     out.append("<td
> >
>
style=&quot;border-width:1px;border-style:solid;height:25px;&quot;>&nbsp;<a
> >
>
href=&quot;http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=3&tabid
> =4&quot;
> >
> class=&quot;OtherTabs&quot;>Discussions</a></td>");
> >     out.append("<td
> >
>
style=&quot;border-width:1px;border-style:solid;height:25px;&quot;>&nbsp;<a
> >
>
href=&quot;http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=4&tabid
> =5&quot;
> > class=&quot;OtherTabs&quot;>About the
> > Portal</a></td>");
> >     out.append("</tr></table>");
> > try {
> > pageContext.getOut().print("Got Here");
> > } catch (Exception e) {
> > throw new JspException(e.toString());
> > }
> > return EVAL_PAGE;
> > }
> > }
> >
> > The following is the TLD file.
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <!DOCTYPE taglib PUBLIC
> > "-//Sun Microsystems, Inc.//DTD JSP Tag
> > Library 1.2//EN"
> >
> >
> "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>
> > <taglib>
> > <tlib-version>1.0</tlib-version>
> > <jsp-version>1.2</jsp-version>
> > <short-name>PortalTags</short-name>
> > <description>Tags for dynamic creation of portal
> > pages.</description>
> > <tag>
> > <name>banner</name>
> >
> >
>
<tag-class>com.braggonline.portal.bannerTag</tag-class>
> > </tag>
> > </taglib>
> >
> > The following is the JSP file
> > <%@ taglib uri="WEB-INF/portalTags.tld"
> > prefix="portal" %>
> >
> > <%
> >
> >    /* The DesktopDefault.jsp page is used to load
> and
> > populate each Portal View.  It accomplishes
> >    this by reading the layout configuration of the
> > portal from the Portal Configuration
> >    system, and then using this information to
> > dynamically instantiate portal modules
> >    (each implemented as a custom tag), and then
> inject
> > them into the page. */
> >
> > /* This scriplet capture the request parameters
> > passed and uses them to
> >    determine how to process the page. */
> >
> > String tabIndex =
> request.getParameter("tabIndex");
> > String tabId = request.getParameter("tabId");
> >
> > if (tabIndex == null){
> > session.setAttribute("tabIndex", "0");
> > }else{
> > session.setAttribute("tabIndex", tabIndex);
> > }
> >
> > if (tabId == null){
> > session.setAttribute("tabId", "0");
> > }else{
> > session.setAttribute("tabId", tabId);
> > }
> >
> > %>
> >
> > <html>
> >     <head>
> >         <title>BraggOnline Portal</title>
> >         <link href="braggonline.css"
> type="text/css"
> > rel="stylesheet" />
> >     </head>
> >     <body leftmargin="0" bottommargin="0"
> > rightmargin="0" topmargin="0" marginheight="0"
> > marginwidth="0">
> >         <form>
> >             <table width="100%" cellspacing="0"
> > cellpadding="0" border="0">
> >                 <tr valign="top">
> >                     <td colspan="2">
> >                         <portal:banner/>
> >                     </td>
> >                 </tr>
> >                 <tr>
> >                     <td>
> >                         <br>
> >                         <table width="100%"
> > cellspacing="0" cellpadding="4" border="0">
> >                             <tr height="*"
> > valign="top">
> >                                 <td width="5">
> >                                     &nbsp;
> >                                 </td>
> >                                 <td id="LeftPane"
> > Visible="false" Width="170">&nbsp;
> >                                 </td>
> >                                 <td
> width="1">&nbsp;
> 
=== message truncated ===


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to