Hi Ian,

- Have you had a look at
http://jakarta.apache.org/cactus/writing/howto_testcase_jsp.html?

- Also, there's a new JspTagLifeCycle class in Cactus 1.5 to help unit
testing taglibs. The best doc for it is in the cactus servlet sample.
Here's the test suite for JspTagLifeCycle: 

http://cvs.apache.org/viewcvs/jakarta-cactus/samples/servlet/src/test-ca
ctus/j2ee13/org/apache/cactus/sample/unit/TestJspTagLifecycle.java?rev=1
.2&content-type=text/vnd.viewcvs-markup

Hope it helps,
-Vincent
 
> -----Original Message-----
> From: Ian Kallen [mailto:[EMAIL PROTECTED]
> Sent: 09 March 2003 04:57
> To: [EMAIL PROTECTED]
> Subject: iterative tag with nested tags example
> 
> 
> I've been looking over Cactus 1.4.1 to build some tag library unit
tests.
> I can get the simple cases to work fine but I'm unclear on how to
build a
> test for a construct like:
> 
> <mytag:iterator var="item" list="aList">
>   <mytag:instance property="name">
>     <mytag:formatter bean="item" />
>   </mytag:instance>
> </mytag:iterator>
> 
> It's not clear how to setup a test so that the interior tags can be
> parameterized with the iteration values, if that makes sense.  Is
there a
> good example of this hidden away somewhere I can check out?
> thanks!
> 
> --
> Ian Kallen <[EMAIL PROTECTED]> | AIM: iankallen
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to