Ashish Kumar

Greenhorn
+ Follow
since Apr 04, 2007
Merit badge: grant badges
For More
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 Ashish Kumar

Hi All,
I have a question regarding what kind of web services questions do they ask in SCEA5.
Do we need to study EbXML spec as well or just WSDL, UDDI, and SOAP?
hi,
as per servlet response API specification, if we will try to call one of the method response.getWriter() or response.getOutputStream() while the other one is already invoked then it will throw an IllegalStateException so if we want to know that the other method is already invoked, or we want to be safe before invoking response.getWriter() or response.getOutputStream(), put the code in a try/catch block, and don't put any other code inside this block.

like:

PrintWriter out=null;

try {
out = response.getWriter();
}
catch(IllegalStateException e)
{
System.out.println("response.getOutputStream() is already called");
}
16 years ago