jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. B. Rainsberger" <jbra...@rogers.com>
Subject Re: Help: TEsting JSP
Date Thu, 29 Jan 2004 00:15:27 GMT
Ganesh Navsupe wrote:
> Hi Friends,
>            I want to test simple jsp wich uses 
> is performing some string array opration.
> The JSP Page is as bellow:
> 
> <%@page import="com.arraytest.StringArray"%>
> 
> <%
> 	StringArray stringArray1 = new StringArray();
> 	stringArray1.add("itemForStringArray1");
> 	pageContext.setAttribute("stringArray1", stringArray1);
> 
> 	StringArray stringArray2 = new StringArray();
> 	stringArray2.add("itemForStringArray2");
> 	stringArray2.delete(0);
> 	pageContext.setAttribute("stringArray2", stringArray2, PageContext.SESSION_SCOPE);
> 
> 	StringArray stringArray3 = new StringArray();
> 	stringArray3.add("itemForStringArray3");
> 	pageContext.setAttribute("stringArray3Count", String.valueOf(stringArray3.count()),
PageContext.APPLICATION_SCOPE);
> 
> %>
> 
> 
>  CAn anybody help me..HOw should i start with and how can i test function in StringArray.java
class through this jsp.

I have another question: why are you reimplementing List/ArrayList?
-- 
J. B. Rainsberger,
Diaspar Software Services
http://www.diasparsoftware.com :: +1 416 791-8603
Let's write software that people understand

Mime
View raw message