Hello,
--- Vincent Massol <[EMAIL PROTECTED]> wrote:
>
> It seems what you are really trying to do is functional testing
> rather than unit testing. However, functional testing is also
> possible with Cactus
> although the main benefit is unit testing. Now, why would you want
> to assert
> the output of the JSP on the server side ?
I am sorry for the trivial example given before. What I actually
wanted to do is that store something on the session object and then
try to assert it in the server.
<% session.put( "name" , <some name> ); %>
>
> I think what you want to write is :
>
> public class MyJspTest extends JspTestCase
> {
> public void testXXX()
> {
> pageContext.forward("/some/path/myjsp.jsp");
>
> // (optional) assert values that the JSP would put in the
> // session or pageContext or servlet context scope. In your
> // example, there are none.
> }
Now what is the syntax of the pageContext.forward method here ?
Is it the way we associate /some/path/myjsp.jsp with MyJspTest test
case ?
thanks.
=====
Thanks.
Rakesh Bhalla.
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/