Swings with bean

Hi

I have a problem when i compile the program the release () method was call twice., but if i take the release() in the Bean program then it will not properly work

how can i avoid this twice calling

waiting for ur reply

the code is

public class JTableSwingpdf extends JFrame {

public JTableSwingpdf()

{ release();

}

public void release()

{

System.out.println("Befor Vector size is "+v.size());

int a = v.size();

vecArr = new String[v.size()/6][6];

System.out.println("Vector size is "+v.size());

//System.out.println("Now Vector size is"+v.size()/6);

Iterator itr = v.iterator();

count++;

while(itr.hasNext())

{

System.out.println("Inside lop");

vecArr[m][0] = (String)itr.next();

vecArr[m][1] = (String)itr.next();

vecArr[m][2] = (String)itr.next();

vecArr[m][3] = (String)itr.next();

vecArr[m][4] = (String)itr.next();

vecArr[m][5] = (String)itr.next();

System.out.println("!!!!"+vecArr[m][1]);

System.out.println("!!!!"+vecArr[m][2]);

System.out.println("!!!!"+vecArr[m][3]);

System.out.println("!!!!"+vecArr[m][4]);

System.out.println("!!!!"+vecArr[m][5]);

m++;

// count++;

}

}

jsp page

<jsp:useBean id = "cc1" class = "com.maan.Mail.DAO.JTableSwingpdf">

</jsp:useBean>

<%

String applicationNo= request.getParameter("s1");

String quoteNo = request.getParameter("s2");

%>

<%

out.println("Application No: "+applicationNo);

out.println("Quote No:"+quoteNo);

cc1.setApplicationNo(applicationNo);

cc1.setQuoteNo(quoteNo);

cc1.release();

out.println("PDF created successfully");

%>

<form method = "post" action = "SendingQuote">

<input type = hidden name = quoteNo value = <%=quoteNo%> >

<input type = "submit">

</form>

Regards

Marimuthu.N

Message was edited by:

muthu2007

Message was edited by:

muthu2007

[2148 byte] By [muthu2007a] at [2007-11-27 8:52:35]
# 1
Don't forget to use the "Code Formatting Tags",see http://forum.java.sun.com/help.jspa?sec=formatting,so the posted code retains its original formatting.
camickra at 2007-7-12 21:08:19 > top of Java-index,Desktop,Core GUI APIs...