Problem with custom tag
I have written a custom tag that I am having problems with. It works on some machines, but not on others. I have a page that uses many 'standard' tags. I have correctly set the URI etc, because all of my other tags work. However, on some machines, my custom tag gives me an error:
attribute does not support request time values
I'm assuming that I have the correct versions of standard.jar etc because all of the regular jstl 1.1 tags work. It is just my custom tag that throws an error.
here is the .tld for my tag:
<?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.1.2</tlib-version>
<jsp-version>1.2</jsp-version>
<short-name>My custom tag</short-name>
<uri>http://my.custom/tags</uri>
<tag>
<name>breadcrumb</name>
<tag-class>tag.BreadcrumbTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>breadcrumbs</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<description>Pass in the list of Breadcrumbs containing the actual information
about what tags need to be rendered on the page.</description>
</attribute>
</tag>
</taglib>
Any thoughts/help greatly appreciated...
I encountered the same problem in our environment. I did the same thing as
James. Simply re-initialize all variables in the do end tag.
Also, with the nested tags you use you may also need to implement cloneable
in the inner tag if the outer tag keeps references to all the inner tag
instances.
For instance if the outer tag kept a vector of references to the inner tag,
then you would need to use clone() on the inner tag before adding it to the
vector.
"James Lynn" <[email protected]> wrote in message
news:3af05d29$[email protected]..
> > But
> > with WL 6.0, the cell tag handler reuse the same instance each time the
> cell tag
> > is called and the member field is not reset
>
> I had the same problem. As a work around, I reinitialize everything in my
> doEndTag() method and it works.
>
>
> --
> James Lynn - Lead Software Architect
> Oakscape - Java Powered eBusiness Solutions <http://www.oakscape.com/>
>
>
Similar Messages
-
Problem with custom tag attribute types
Hi,
I try to figure out how to pass an attribute to a custom tag that is of a type other than "String"?
In my case, I should pass an attribute with a type of "java.util.ResourceBundle".
My tag looks like this:
<tt:cs sel="ab" ce="<%= java.util.ResourceBundle.getBundle("de", Application.getApp().getLocale())%>" />
I always get the message that the attribute ce is empty.
Isn't it possible to have attirbutes that are of an other type than string? How could I solve this problem?
Thanks a lot!
Regards PatrickIn JSP 1.2, in the Tag Library Descriptor, you can specify a tagt attribute as
<attribute>
<name>attr1</name>
<required>true|false|yes|no</required>
<rtexprvalue>true|false|yes|no</rtexprvalue>
<type>fully-qualified_type</type>
</attribute> Notice the XML element <type>fully-qualified_type</type>
Not sure if you can do this in JSP 1.1 -
Problems with custom tags (Tomcat 4.1)
I have been trying to set up an existing web application to use a custom tag library. I have these tag-related files:
/photodb/WEB-INF/photodb.tld
/photodb/WEB-INF/classes/PhotoListTag.class
/photodb/photolist.jsp
This is how i have the photoList tag configured in photodb.tld
<tag>
<name>photoList</name>
<tag-class>PhotoListTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>startIndex</name>
</attribute>
</tag>
When i try to view photolist.jsp, i get this error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\photodb\photolist_jsp.java:73: cannot resolve symbol
symbol : class PhotoListTag
location: class org.apache.jsp.photolist_jsp
PhotoListTag jspxth_photodb_photoList_0 = (PhotoListTag) jspxtagPool_photodb_photoList.get(PhotoListTag.class);
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\photodb\photolist_jsp.java:73: cannot resolve symbol
symbol : class PhotoListTag
location: class org.apache.jsp.photolist_jsp
PhotoListTag jspxth_photodb_photoList_0 = (PhotoListTag) jspxtagPool_photodb_photoList.get(PhotoListTag.class);
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\photodb\photolist_jsp.java:73: cannot resolve symbol
symbol : class PhotoListTag
location: class org.apache.jsp.photolist_jsp
PhotoListTag jspxth_photodb_photoList_0 = (PhotoListTag) jspxtagPool_photodb_photoList.get(PhotoListTag.class);
^
3 errors
I have tried many ideas, such as packaging the tag handler class, and putting the class file in other loctions, but nothing has helped.
I know that Tomcat is recognizing PhotoListTag at some point (when it parses the TLD file, but not when compiling the JSP, I think), because if i change the <tag-class> to an invalid class, i get an "Unable to load class photoList" (which is a confusing error message btw, as photoList is not a class, but a tag name).
Does anyone know how to fix this problem? I've been going in circles for hours, and i'm thinking this problem has a simple solution.Thank you for your quick replies. Unfortunately, they do not solve my problem. If I put PhotoListTag in the com.yourdomain package (and move it to classes/com/yourdomain), the error changes to reflect the different package (e.g. package com.yourdomain does not exist). Also, deleting the class files and restarting Tomcat did not cause any changes.
Although my knowledge of how Tomcat works is limited, it seems to me that something like this is happening:
When a request for /photodb/photolist.jsp is recieved, tomcat processes that file, processes the tld file, and checks for that any classes called using a tag--in this case <photodb:photoList>--exist. If the class is invalid, the error message "Unable to load class photoList" is given.
Otherwise, it translates the jsp into java, and attempts to compile it. This is where the problem occurs. It seems that the jasper compiler does not know where to look for the PhotoListTag class. Is there a way that this can be changed, or is could the problem be caused by something else? -
Hello..
I have created custom tags and she gives an error me.
The code is:
<%@ taglib uri="mitaglib.tld" prefix="ejemplos" %>
<HTML>
<HEAD>
<TITLE>Tag Hola Mundo</TITLE>
</HEAD>
<ejemplos:holamundo/><br>
<ejemplos:SumaTag num1="2" num2="6" />
</BODY>
</HTML>
The class:
package helperClasses;
import java.io.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class hm extends TagSupport{
public int doStartTag() throws JspException
try
pageContext.getOut().print("Hola Mundo");
catch (IOException e)
throw new JspException("Error: IOException" + e.getMessage());
return SKIP_BODY;
public int doEndTag() throws JspException
return EVAL_PAGE;
package helperClasses;
import java.io.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class SumaTag extends TagSupport{
private int num1,num2;
public void setNum1(int num1){
this.num1 = num1;
public void setNum2(int num2){
this.num2 = num2;
public int doStartTag() throws JspException {
try{
pageContext.getOut().print("Suma: " + (num1+num2));
} catch (IOException e) {
throw new JspException ("Error: IOException" +
e.getMessage());
return SKIP_BODY;
public int doEndTag() throws JspException {
return SKIP_PAGE;
The file mitaglib.tld is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>ejemplos</shortname>
<uri></uri>
<info>Etiquetas de ejemplo</info>
<tag>
<name>holamundo</name>
<tagclass>helperClasses.hm</tagclass>
<bodycontent>empty</bodycontent>
<info>Saludo</info>
</tag>
<tag>
<name>suma</name>
<tagclass>helperClasses.SumaTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Saludo</info>
<attribute>
<name>num1</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>num2</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>[22/Dec/2003:09:43:47] failure (11848): Internal error: Unexpected error condition thrown (unknown exception,no description), stack: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;Z)V
at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:518)
at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:426)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:379)
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:227)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:701)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:110)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:193)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java:167)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:897)
at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1065)
at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:959) -
Problem with custom tag using TagExtraInfo
Hi,
I have a tag that create a Java variable using TEI. The scope of this
variable is driving me crazy. The problem is hard to describe, so the
email is a bit long - stay with me...
<pre:setvar id="foo" value="test" /> create a Java variable
named "foo", which has String value "test". I can use "foo" like this in
the page later: <%= foo %>.
Now, if I call setvar twice with same id:
<pre:setvar id="foo" value="test" />
<pre:setvar id="foo" value="another-test" />
This is still ok. By checking the compiled Java file, the first call
declare the var, the second call just use it without creating it again:
//first call
String foo=null;
foo="test";
//second call
foo="another test";
Now the problem comes when the frist call is in "if" statement (code is not
useful, only for demostration):
<% if (1>0) { %>
<pre:setvar id="foo" value="test" />
<% } %>
<pre:setvar id="foo" value="another-test" />
The compiled code looks like:
if (1>0) {
//first call
String foo=null;
foo="test";
//second call
foo="another test";
Variable foo is out of scope at the second call! (BTW, I can workaround this by
adding another <pre:setvar id="foo" value="" /> before the "if".)
Is it a fault in JSP specification? Or a problem when WebLogic implements TEI?
Any idea?
Thanks,
-- Jin
I encountered the same problem in our environment. I did the same thing as
James. Simply re-initialize all variables in the do end tag.
Also, with the nested tags you use you may also need to implement cloneable
in the inner tag if the outer tag keeps references to all the inner tag
instances.
For instance if the outer tag kept a vector of references to the inner tag,
then you would need to use clone() on the inner tag before adding it to the
vector.
"James Lynn" <[email protected]> wrote in message
news:3af05d29$[email protected]..
> > But
> > with WL 6.0, the cell tag handler reuse the same instance each time the
> cell tag
> > is called and the member field is not reset
>
> I had the same problem. As a work around, I reinitialize everything in my
> doEndTag() method and it works.
>
>
> --
> James Lynn - Lead Software Architect
> Oakscape - Java Powered eBusiness Solutions <http://www.oakscape.com/>
>
>
-
I get a error message like this:
root cause
java.lang.NoClassDefFoundError: javax/servlet/jsp/JspContext
at java.lang.Class.getDeclaredMethods0(Native Method)
And I checked that the error looks like to be in the line
that I try to write something in my Page. This way:
this.pageContext.getOut().write("hello");
And I don�t realize what is going on, I've already checked
out in many places, web, list, etc, about this error, and up
to now I don't get any clue about what's happening.
I don't think that there's a problem in the code, because
the same code was running perfectly in another application
server.
Please someone could help me ?
Thanks in advance!
Ualter Jr.Ok, I've alredy found the cause.
I'm using Eclipse to build my application, and the Eclipse is pointing to J2EE version 1.4 (that's in my computer) for the compilation of the Servlets and TagHandlers.
But, I'm using Tomcat 4.1.29, or JBoss 3.2.3 to test the application, and these version aren't compatible with version 1.4 of J2EE, they are compatible with version 1.3
In J2EE 1.3 there's no class called JspContext just in the J2EE 1.4
That's all confusion.
That's was my fault, sorry. -
Problem with display tags (not accepting inner tags)
Hi guys ,
I am using display tags which is fine but i had a problem with anchor tag and the jsp display tag.
<display:column title="Row_Id" >
' target="-blank" onclick=""><c:out value="${row_rowNum}"/>
</display:column>
here i got the exception:
The value of attribute "href" associated with an element type "a" must not contain the '<' character.
here if jstl is not used then how to put my value in anchor tag
please help me.Can you use EL directly:
<a href="example.jsp?id=${row.id"/"></a> -
XSLT problem with img tag in Saxon
Hi,
Iam getting a problem with <img> tag when transforming a document using Saxon transformer. In the input XSLT I have proper closing tag for <img>, but the output of the transformation is not well formed as the closing tag for <img> does not appear. I need to feed the output to a FO object to generate a print preview, but the output is not well-formed.
Kindly help to resolve the issue.
Kind Regards,
AbhinandanPerhaps that is because you are generating HTML as your output? As I recall, <img> tags don't have to be closed in HTML. So try generating XML instead if you need XML.
-
Problem with custom paper size on dot matrix printer
Hi All,
I'm using CR2008 with updated to SP2. I have a problem with custom paper size (W=21; H=14), the CR Viewer show report with custom paper size correctly but when I print it to a dot matrix printer (Epson LQ 300+) the content was rotated to landscape. If print to a laser printer the content was printed correctly. My report was printed correctly by CR10 or previous versions I got this issue when upgraded to CR2008. I aslo tested my computer and printer with orther application like MS Word the printing have no problem with custom paper size.
Thanks for any advice for me.
HanLooking at the Epson LQ 300+ driver, I see that the latest update is from 2002. In my experience, most matrix printer drivers are not unicode. Crystal Reports is designed to only work with unicode printer drivers. See the [How Printer Driver Options Affect a Report|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/a09051e9-721e-2b10-11b6-f9c65c64ef29&overridelayout=true] article, page 6 for details. Also, see [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
Finally, see if you can print from the CR designer to this printer and if you get the correct results here.
Ludek -
Hi everybody,
We're using OC4J 9.0.2 but we have a problem with iterate tags. The doAfterBody is ignored and so, the body is never done !
This work fine with version 9.0.3. If we compare the two generated servlets(9.0.2 & 9.0.3), the code is really different.
Is this a know bug, is it possible to solve this problem ?
Our client is still in 9.0.2 and is not ready for an upgrade.
Any idea is welcome ...
Jean-Pierre Evrard
[email protected]
BelgiumIt's unlikely anyone can help you if you don't show any of your code or explain what is really happening.
Have you set breakpoints (or added print statements) in your doStartTag, doEndTag, and doAfterBody methods, and verified the return values are what they should be? -
Problems with Custom Paper Size and Address Book
I'm having some trouble printing from Address Book onto a custom paper size. I'm attempting to set up a notecard, and only print one at a time, rather than multiple columns as in the Labels option. The trouble is that when creating this small size, Address Book doesn't recognize it as anything other than a regular sheet of US Letter, and thus prints the address in the middle of the page.
I have no problem printing envelopes, though, which seems odd because they too go in the manual feed for my printer. The notecards are similar width to the envelopes, but only about half the length.
Has anyone else experienced problems with custom paper sizes printing improperly? I'm using an HP 4515 LaserJet, but have access to a few other laser printers. Thanks for any insightI have had the same problem, and with the same result; Adobe Tech Support can't help or fix, after 15 hours on phone, Level 2 support. It is a software bug Adobe has, and can't seem to fix. I just upgraded to Lightroom CC, and my problem migrated with the upgrade. I print in Photoshop fine.
If you found an answer, I would appreciate knowing how to do it!
Thanks -
I have problems with custom buttons in Captivate 5. The button is not switching from the _up stage to _over stage, but when I click on it the _down stage works fine. It is not a problem with the naming of the buttons. They are all with the same name and in lower case. I have tried with various custom buttons and the problem is the same. There is no problems with the standard buttons from the Adobe Gallery, so it is a bit strange, also strange that it is only the _over stage that causes problems.
The buttons I have made in Adobe Illustrator. Have tried both exporting in png and bmp format. It is the same problem.
Hope someone has some idea as to what can be wrong.Hi Manish,
I have uploaded the zip file with the button files to Acrobat and mailed you the link.
Look forward to hear if you find a reason or more importantly a solution :-)
Kind regards
Rene -
JDeveloper 9i - Problem with using tag lib
I am having problem with building my project, using JDeveloper 9i.
My project includes custom tag libraries.
When I build my project, I get back the following error:
Error(1): oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet' in content of 'web-app', expected elements '[error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'
for every jsp file that has the taglib directive as follows:
<%@ taglib prefix="srp" uri="/srpTagLib" %>
Please note that the application runs OK, but it can not be build by JDeveloper for debugging purpose.
Any ideas? Please help!!!!
Thanks,
CathyWhat version is your tag library and what version is your deployment descriptor?
-
Jsp:include problem in custom tag
I call <jsp:include page="emailbody.jsp" /> within a custom tag(in a file
caller.jsp), which does emailing.
When I invoke caller.jsp from browser, I do get the output(body of the
email) on the browser screen, but not the output is not send as the body of
the email.
When I use static include namely, <@include file="emailbody.jsp" />, the
output is directed to the body of the email.
The above means, for a static jsp include file, it is parsed and included in
the body-evaluation of the custom tag.
For a dynamic include file, it is NOT parsed and NOT included in the
body-evaluation of the custome tag.
The reason could be, How Weblogic loads classes for custom-tag for dynamic
include files.
Can anybody at BEA throw loght on this and the solution.
Thanks in advance.
Chandra
Well I found out jsp:include is not supported inside custom tags for JSP
spec 1.1.
This was stated in section 5.4.5 of spec 1.1.
May be in future spec 1.2.
Thanks
Chandra
"Cameron Purdy" <[email protected]> wrote in message
news:[email protected]...
> Have you sent this to [email protected]?
>
> It sounds serious.
>
> Peace,
>
> --
> Cameron Purdy
> Tangosol, Inc.
> http://www.tangosol.com
> +1.617.623.5782
> WebLogic Consulting Available
>
>
> "matthew mcclain" <[email protected]> wrote in message
> news:[email protected]...
> > I have run into the same problem.
> > I'm certain it's because CustomTags have their own buffer and
> > jsp:include or pageContext.include() or requestDispatcher.include()
> > all bypass the buffer and write to the underlying stream.
> >
> > I attempted to define jspx:include by wrapping the response object
> > which is sent to requestDispatcher.include and then wrapping the
> > OutputStream returned from the response with a stream which
> > writes to the "out" of the pageContext for my tag.
> >
> > Unfortunately, I get a class cast exception because weblogic expects
> > it's own class to be there as a ServletOutputStream:
> >
> > java.lang.ClassCastException:
com.allmystuff.wif.IncludeServletResponse$1
> > at
> >
>
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
> > l.java:202)
> > at
> >
>
weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
> > l.java:172)
> > at com.allmystuff.wif.Include.doStartTag(Include.java:37)
> >
> > So any chance, jsp:include will get fixed?
> >
> > Thanks,
> > Matthew McClain
> > [email protected]
> >
> >
> > "chandra" <[email protected]> wrote in message
> > news:[email protected]...
> > > I call <jsp:include page="emailbody.jsp" /> within a custom tag(in a
> file
> > > caller.jsp), which does emailing.
> > > When I invoke caller.jsp from browser, I do get the output(body of the
> > > email) on the browser screen, but not the output is not send as the
body
> > of
> > > the email.
> > > When I use static include namely, <@include file="emailbody.jsp" />,
the
> > > output is directed to the body of the email.
> > >
> > > The above means, for a static jsp include file, it is parsed and
> included
> > in
> > > the body-evaluation of the custom tag.
> > > For a dynamic include file, it is NOT parsed and NOT included in the
> > > body-evaluation of the custome tag.
> > > The reason could be, How Weblogic loads classes for custom-tag for
> dynamic
> > > include files.
> > > Can anybody at BEA throw loght on this and the solution.
> > > Thanks in advance.
> > > Chandra
> > >
> > >
> >
> >
>
>
-
Exception Handling with Custom Tags/Exceptions
Hello all --
I'm looking for some guidance in handling Custom errors in my app. I can't
seem to find the message string of my custom exception when trying to call
my JSP Error page. I'm consistently getting:
javax.servlet.jsp.JspTagException: runtime failure in custom tag
'CalendarHandler' .
I am using custom JSP tag libraries to process logic on my EJBs. When I
reach an error in business logic I raise a custom exception and propogate
this back up to doStartTag:
public int doStartTag() throws JspException {
CalendarProcessor cp = new CalendarProcessor();
try {
String eventAction = getEventID();
// pageContext contains information for the JSP;
// Initialize the page with the current context and session
cp.init(pageContext.getServletContext(), pageContext.getSession());
HttpServletRequest req = (HttpServletRequest)pageContext.getRequest();
cp.processRequest(req, eventAction );
} catch (CalendarException ce) {
throw new JspException(ce.getMessage());
return SKIP_BODY;
Then, in my JSP, I am enclosing the TagHandler in a try...catch block; I
can't catch CalendarException because it is Throwable and conflicts with
JspException.
<% try { %>
<gtc:CalendarHandler eventID="updatecal"/>
<% } catch (Exception e) {
throw e instanceof JspException ? (JspException) e : new
JspTagException(e.getMessage());
%>
many thanks in advance!
s.
I could not tell what the problem was that you were describing. Could you
clarify?
Cameron Purdy
[email protected]
http://www.tangosol.com
WebLogic Consulting Available
"Shari" <[email protected]> wrote in message
news:[email protected]...
> Hello all --
>
> I'm looking for some guidance in handling Custom errors in my app. I can't
> seem to find the message string of my custom exception when trying to call
> my JSP Error page. I'm consistently getting:
> javax.servlet.jsp.JspTagException: runtime failure in custom tag
> 'CalendarHandler' .
>
> I am using custom JSP tag libraries to process logic on my EJBs. When I
> reach an error in business logic I raise a custom exception and propogate
> this back up to doStartTag:
>
> public int doStartTag() throws JspException {
>
> CalendarProcessor cp = new CalendarProcessor();
>
> try {
>
> String eventAction = getEventID();
>
> // pageContext contains information for the JSP;
>
> // Initialize the page with the current context and session
>
> cp.init(pageContext.getServletContext(), pageContext.getSession());
>
> HttpServletRequest req = (HttpServletRequest)pageContext.getRequest();
>
> cp.processRequest(req, eventAction );
>
> } catch (CalendarException ce) {
>
> throw new JspException(ce.getMessage());
>
> }
>
> return SKIP_BODY;
>
> }
>
> Then, in my JSP, I am enclosing the TagHandler in a try...catch block; I
> can't catch CalendarException because it is Throwable and conflicts with
> JspException.
>
> <% try { %>
>
> <gtc:CalendarHandler eventID="updatecal"/>
>
> <% } catch (Exception e) {
>
> throw e instanceof JspException ? (JspException) e : new
> JspTagException(e.getMessage());
>
> }
>
> %>
>
> many thanks in advance!
>
> s.
>
>
>
>
>
>
>
Maybe you are looking for
-
REP-2103 error in report summary column
Hi , I am getting the below error while running the report REP-2103 Column 'CS_Achived_tot' : PL/SQL formula returned invalid value or no value Could you please help me ... Thanks in Advance Regards, Sandeep
-
Hi friends I am using weblogic,ejb ,XDoclet...Doing one CMR relation program I have tow tables 1.Order_detail 2.Order_header In order_detail table i have PK serial number and FK po_no In order_header table i have PK po_no It is like order has many it
-
Clearing Customer who is also a vendor
We have customer A who is also Vendor . Currently Clearing between customer and vendor is on- So during automatic payment transactions, clearing is made with the corresponding customer account, and that during manual clearing procedures, the items of
-
How to play purchased tv shows when offline
I have purchased a few tv shows for the kids for road trip - when we are offline, I cannot find them under the Videos app & if you try to start itunes it says it is offline. Where are the tv shows to watch them??
-
Dell Inspiron 1300 laptop wont connect to router anymore
Eveything was great untl I had to change the encryption code on the router, now I cant get the laptop to connect to the router anymore. Nothing was changed on the computer and the only thing that was changed on the router was the encryption code. The