Dhanashree Panse

Greenhorn
+ Follow
since Aug 01, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Dhanashree Panse

I would like to know the cause of this error. While throwing JSP, a blank page is displayed and following exception is logged in stdout.
SRTServletRes X Servlet.Exception:.Error.while.finishing.response
java.io.IOException: Error during native write operation! Status Code: -1
22 years ago
I am getting following exception for some requests. I get following log in stdout. What is the cause of this error?

1033240 WebGroup X Servlet ERROR: {0}
"ERROR: Cannot forward. The response has already been committed."
com.ibm.servlet.engine.webapp.WebAppErrorReport: ERROR: Cannot forward. The response has already been committed.
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at javax.servlet.ServletException.<init>(Compiled Code)
at com.ibm.websphere.servlet.error.ServletErrorReport.<init>(ServletErrorReport.java:62)
at com.ibm.servlet.engine.webapp.WebAppErrorReport.<init>(WebAppErrorReport.java:50)
at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:524)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleCommittedOutput(WebAppRequestDispatcher.java:586)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(Compiled Code)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:363)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:387)
22 years ago
I am getting this error in stress testing. This error is logged in std.out. I also get i> java.lang.IllegalStateException: ERROR: Cannot forward. The response has already been committed & ii> javax.servlet.ServletException: Error during native write operation! Status Code: -1.
This happens only when no. of users goes beyond 10. On the browser either Error page is thrown or blank page with "Done" message. All trace log statements just before throwing JSP, can be found in Trace.log.
Why I am getting this exception?
[ August 26, 2002: Message edited by: Dhanashree Panse ]
22 years ago
I have one javascript function which parses the string passed to it and if there are any spaces in it, the function returns true.
Here is the code :
function areSpacesPresent(sStringToCheck)
{
var bAreSpacesPresent = false;
for(var iCounter=0 ; iCounter<sStringToCheck.length ; iCounter=iCounter+1)
{
if (sStringToCheck.charAt(iCounter) == " ")
{
bAreSpacesPresent = true;
}
}
return bAreSpacesPresent;
}
Hi Gaurav,
Assuming that u r validating your requirement on click of a button, I have written a sample piece of code. I think this should work.
Following is the javascript function which will be called when u click that button.
function fn1()
{
for(var i=0; i<document.testJavaranchForm.cboTest.options.length; i++)
{
x = document.testJavaranchForm.cboTest.options[i].value;
if(document.testJavaranchForm.txtTest.value == x)
{
alert("Value exists in select box");
}
}
}
testJavaranchForm is the name of the form.
cboTest is the name of the select box.
txtTest is the name of the text box.
Hello everyone,
Thanks for the replies but I still have some problem. I cannot write the following code : <A href="www.xyz.com" target="_self">www.xyz.com</A> anywhere because I think these anchor tags cannot be kept hanging. They have to be included inside the <html> tags. Then I will have to write the whole html file.
But there is a loophole in this too ! If the mail client is not configured to receive HTML mails, then the solution won't work .
Please help.
Hi,
I am using WebLogic 6.0 for my application.
I wanted to know if there is some formula to decide the number of JDBC connections which I should set in the connection pool.
I also want to know how can I maintain the right balance between the number of connections, system memory and the performance of the application.
Please advice !!
Regards,
Dhanashree.
22 years ago
Actually the situation is something like this : Assume that you are the person to whom this notification mail is sent. When u open your mail client u see a mail and a link say: http://www.xyz.com in the mail. So whenever this link is clicked, it opens a new browser window.
In such a case where shall I specify target="_self" ??
Hi Randall,
We are not specifying any target in the link because we are creating the link in a servlet and then passing this link in email to the supervisor.
Any other solution which u can think of ??
Hi,
We have an application where we send documents for approval/rejection to a supervisor. Whenever a document is sent to the supervisor, the supervisor gets an email which contains a hyperlink to the document which is to be approved/rejected. Pls note that the mail client is Microsoft outlook.
Now, our requirement is that if the supervisor has already logged into the system and he/she clicks this hyperlink in the email, then the corresponding document should open in the same browser window where he/she has logged in.
What is currently happening is even if the supervisor is logged into the system, and he/she clicks on the hyperlink, the document opens in a new browser window.
We have already enabled the check box for "Reuse windows for launching shortcuts" option in IE->Tools->Internet Options->Advanced. But still we are not getting the expected output.
Please suggest some solution.
Thanks in advance.