RE: Help needed extending BaseHandlerTag

2001-05-10 Thread Deadman, Hal

I think weblogic is masking the real error. Put a temporary try catch block
inside your html:form tag on the JSP to trap the real error. If the
exception is a ServletException, get the root exception

Hal

> -Original Message-
> From: Ariff Sidi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 7:01 PM
> To: [EMAIL PROTECTED]
> Subject: Help needed extending BaseHandlerTag
>
>
> I want to create my own Radio button tag that's a slightly
> modified version
> of the struts RadioTag.
>
> So, I made a new class that extends BaseHandlerTag (just like
> RadioTag) and
> copied the RadioTag code to my new class (NewRadioTag).  I
> successfully
> compiled my new Tag and added it to my existing custom tld file.
>
> Now keep in mind that the code is EXACTLY the same as Struts' RadioTag
> except for a couple extra imports I had to make because the
> new package is
> different.
>
> I then modified the JSP file from using  to .
>
> The exception I get is:
>
> javax.servlet.ServletException: runtime failure in custom tag 'form'
> at
> jsp_servlet._jsp._supplier._company._companytype._jspService(_
> companytype.ja
> va:1097)
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java
> :106)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java
> :124)
> at
> weblogic.servlet.internal.RequestDispatcherImpl.forward(Reques
> tDispatcherImp
> l.java:154)
> at
> org.apache.struts.action.ActionServlet.processActionForward(Ac
> tionServlet.ja
> va:1697)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1540)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java
> :106)
> at
> weblogic.servlet.internal.RequestDispatcherImpl.forward(Reques
> tDispatcherImp
> l.java:154)
> at
> com.zeborg.erfp.web.servlet.NavigationServlet.service(Navigati
> onServlet.java
> :113)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java
> :106)
> at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(Ser
> vletContextImp
> l.java:907)
> at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(Ser
> vletContextImp
> l.java:851)
> at
> weblogic.servlet.internal.ServletContextManager.invokeServlet(
> ServletContext
> Manager.java:252)
> at
> weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketH
> TTP.java:364)
> at
> weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
>
>
>
>
> Why would this happen given that my new tag has IDENTICAL
> code to RadioTag,
> which works.  My platform is Weblogic 5.1SP8.
>



Help needed extending BaseHandlerTag

2001-05-10 Thread Ariff Sidi

I want to create my own Radio button tag that's a slightly modified version
of the struts RadioTag.

So, I made a new class that extends BaseHandlerTag (just like RadioTag) and
copied the RadioTag code to my new class (NewRadioTag).  I successfully
compiled my new Tag and added it to my existing custom tld file.

Now keep in mind that the code is EXACTLY the same as Struts' RadioTag
except for a couple extra imports I had to make because the new package is
different.

I then modified the JSP file from using  to .

The exception I get is:

javax.servlet.ServletException: runtime failure in custom tag 'form'
at
jsp_servlet._jsp._supplier._company._companytype._jspService(_companytype.ja
va:1097)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:124)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:154)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1697)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1540)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:154)
at
com.zeborg.erfp.web.servlet.NavigationServlet.service(NavigationServlet.java
:113)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:907)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:851)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)




Why would this happen given that my new tag has IDENTICAL code to RadioTag,
which works.  My platform is Weblogic 5.1SP8.