hi guys....
The problem I are facing is in the implementation of JSP Custom Tags.
I am using:
----> BEA WebLogic Server� 6.0.(Service Pack 1)
----> Runtime: JDK 1.3 (e.g., the JDK that comes with WebLogic)
----> Our Beans and Java classes are compiled with JDK 1.2.2_007
----> JSP 1.1
Let us say we are using a certain custom tag
<test:mytag attribute="one" attribute="two" .......>
This tag extends BodyTagSupport.
I am using this tag in one of my jsp pages.In this jsp page I do not have a
body to be specified for the tag.So I use the tag in the following manner in
my jsp page.
<test:mytag label="attributevalue1" action ="attributevalue2" /> (Synatx
1)
As you see above, since I do not have a body to be specified for the tag I
do a inline ending (/>) of the tag instead of doing the following:
<test:mytag label="attributevalue1" action ="attributevalue2" >
</test:mytag>
(Synatx 2)
If I do so I observe that the tag does not perform the expected behaviour.On
the other hand if I follow (Synatx 2) the tag does perform the expected
behaviour.
My questions here is thus.....
1. Is this a expected behaviour in WebLogic? because (Synatx 1) works fine
under TOMCAT 3.2.1
2. Is it that if a certain tag extends BodyTagSupport then (Syntax2) is the
only way of using it irrespective of the fact that i specify or not specify
a body to it.
I have had been doing most of our development using TOMCAT and it was only
recently that we started using WebLogic 6.0.
Our impression here is WebLogic is more stringent in terms
of following the JSP specifications (which is a *good* thing).
Incidentally, do you all have a "field guide" of sorts concerning typical
conversion issues from Tomcat
to WebLogic. (Of course, this is a wide open question, but nonetheless, if
you have any related documents, it maybe of interest in terms of predicting
other problems we haven't faced)
I would appreciate if you guys respond to me as regards this problem and
also convey to us any coding standards which we should follow when doing
development on WebLogic.
thanx
abhi
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets