Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

satish rn

Greenhorn
+ Follow
since Mar 12, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by satish rn

I changed the code to call OutputStream once but without any success

----------------------------
OutputStream output = response.getOutputStream();
wb.write(output);
----------------------------
17 years ago
any luck in quest for finding the material for the certification. i am also interested in getting certified in weblogic as a developer
17 years ago
Hi,
I am trying to generate an excel workbook and access it through my java program.
My program is as follows

/**
* Export the array to an Excel spreadsheet
* @jpf:action
*/
protected Forward export()
{
log.info("Exporting to Excel...");
ExportComparator exportCompare = new ExportComparator();
Arrays.sort(array, exportCompare);

try
{
// Get the remote interface and search
Object jsBeanHomeObj = context.lookup("ejb/BSSearch");
BSSearchHome jsBeanHome = (BSSearchHome) PortableRemoteObject.narrow(jsBeanHomeObj, BSSearchHome.class);
BSSearch searchBean = jsBeanHome.create();

//generate excel wb
HSSFWorkbook wb = searchBean.exportToExcel(array);

HttpServletResponse response = getResponse();
response.setContentType("application/vnd.ms-excel");

OutputStream output = response.getOutputStream();
wb.write(response.getOutputStream());
output.close();
}
catch(Exception e)
{
log.error("Error exporting jobs", e);
}


return null;
}

---------
The above piece of code opens the excel work book when i run my application in weblogic

It fails to run when i run it on the weblogic portal server and gives the following error

<Feb 10, 2005 11:21:58 AM EST> <Error> <netuix> <BEA-423024> <Error retrieving w
riter from the response.
java.lang.IllegalStateException: strict servlet API: cannot call getWriter() aft
er getOutputStream()
at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletRespon
seImpl.java:181)
at com.bea.netuix.nf.container.jsp.JspContext.getWriter(JspContext.java:
171)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:417)

at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWa
lker.java:434)
......
17 years ago
Hi,
I am trying to change the input jsp page of my action mapping in the validate method of my form bean using mapping.setInput() method.
Then, I get a "Configuration is frozen " error message. Can anyone tell me how i can dynamically change the input for my action mapping during validation.
This is because i have my application designed like this. I have to make user input across 4 input forms. All these 4 input forms share the same form bean. The fields which are not input in a particular form are as hidden fields. form1 calls action2 to load form2. form2 can call action1 to load form1 or action3 to load form3. form3 calls action2 to get form 2 and action4 to call form4.
Now, my problem is this. when i am in form2, and i call action3, my input is form2 and if validation fails, form2 has to display errors. so in my action mapping for action3, if i specify form2 as my input, then if i call action3 from form4, my input is being taken as form2 instead of form4. so i have a hidden field telling which form i am in, and wanted to set the input field of the mapping dynamically in the validate method. This leads to the above error.
can anyone offer me a solution to this problem telling me how can i overcome this problem.

Thank you very much,
Satish
17 years ago
Congrats AsadUllah. Please send us the resources for preparing for the test.
Thanks,
Satish
---------------------------------------------
SCJP 1.4, IBM286
hi all,
i developed a application which is an email application. users can login, type their message and specify the to address to send the email. the message information is stored in a database.
also i have configured tomcat 5.0.19 to have ssl support. now my application runs both with ssl and without ssl.
i would like to make it run only through ssl.
i.e if the user gives a url like http:\\localhost:8080\webapplication, the program should be able to open the ssl version i.e http:\\localhost:8443\webapplication.
i am wondering whether it is possible to do this in wsad.
thanks for your help,
satish
18 years ago
hi jeanne,
this is the code i am using to connect to the database. the error i get using the code is because of the getConnection statement because, i donot have the maxdb database instantiated and there is no database named whistleblower in it. i would like to know how to instantiate maxdb database and create tables in it. i have installed the maxdb database from mysql.
thanks
satish
import java.sql.*;
public class TestClass2 {
public static void main(String [] args)
{
Connection con= null;
Statement stmt = null;
ResultSet rs = null;
ResultSet rs1 = null;
String username;
String password;
try
{
System.out.println("hi");
Class.forName("com.sap.dbtech.jdbc.DriverSapDB");
System.out.println("hello");
con =
DriverManager.getConnection("jdbc:sapdb://localhost/whistleblower");
}
catch(Exception e)
{
System.out.println(" hi " + e.getMessage());
}
}
}
18 years ago
hi Jeanne,
thanks for the reply. i got the driver name to be given in the Class.forName(---) to connect to the database. but i am not able to instantiate the database. i installed maxdb on windows 2000. can you tell me how to start the database and create some tables there. In short, i would like to know the command to connect to connect to the database
thanks
satish
18 years ago
hi everbody,
i am trying to connect to maxdb database from wsad using jdbc. can you tell me how i can do so.
thanks in advance
satish
18 years ago
hi everbody,
i am trying to connect to maxdb database from wsad using jdbc. can you tell me how i can do so.
thanks in advance
satish
18 years ago
hi all,
can anybody tell me how i can connect to maxdb database using jdbc from inside websphere application developer studio.
thanks
satish