Mysql connection error in the morning

2003-11-21 Thread Mohamed Abu Zur
Hi all:
 
 
I have this configuration in my struts-config for the pool:
 
  

  
  
  
  
  
  
  
  

  
 
but every morning when I connect to the web page I have an error the first two times . 
when I refresh (F5) the page two or three times I get a connection and all gones fine 
accessing the database.
 
the error is:
 
java.sql.SQLException: Communication link failure: java.io.IOException
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java(Compiled Code))
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java(Compiled Code))
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java(Compiled Code))
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java(Compiled Code))
 
what is the reason for this error? any body hasthis error before?
 
 
thanks in advance 


-

    Antivirus • Filtros antispam • 6 MB gratis
    ¿Todavía no tienes un correo inteligente?

sendRedirect within Action

2003-11-10 Thread Mohamed Abu Zur
Hi all:
 
How I can make a sendRedirect whitin an action in struts.
in action class I have to return ActionForward but I want to make sendRedirect to lose 
the request instance.
 
thanks in advance
Mohamed
 
 
 


"Nail, Evan Burke" <[EMAIL PROTECTED]> wrote:

Also, You have to make sure that nothing is written out to the stream before you set 
your content type. 

Also I did this just playing around a while back, I noticed that we had to move our 
jsp imports to the bottom of the file. Having them at the top caused errors in the 
output. I'm guessing for the above reason. 

If you have to use a jsp page, make sure all you do in the page is set the content 
type and output the content stream. 

bn

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 7:10 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: PDF File Display in JSP-Struts


Are you setting the mime type properly on the response object?

-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 1:55 PM
To: Struts Users Mailing List
Cc: WebSphere User Group Tech Q & A Forum
Subject: PDF File Display in JSP-Struts



Hi All,
I want to display one PDF file in my websphere struts framework. when i do
it without struts (only servlets ) it works but when i use JSP along with
struts it does not work. it does not read binary data properly... Is there
any body to help me out


regards & thankx in advace...
Abhijeet Mahalkar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**
This e-mail is the property of Enron Corp. and/or its relevant affiliate and may 
contain confidential and privileged material for the sole use of the intended 
recipient (s). Any review, use, distribution or disclosure by others is strictly 
prohibited. If you are not the intended recipient (or authorized to receive for the 
recipient), please contact the sender or reply to Enron Corp. at [EMAIL PROTECTED] and 
delete all copies of the message. This e-mail (and any attachments hereto) are not 
intended to be an offer (or an acceptance) and do not create or evidence a binding and 
enforceable contract between Enron Corp. (or any of its affiliates) and the intended 
recipient or any other party, and may not be relied on by anyone as the basis of a 
contract by estoppel or otherwise. Thank you. 
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Yahoo! Messenger
Nueva versión: Super Webcam, voz, caritas animadas, y más #161;Gratis!

RE: Line break and

2003-11-08 Thread Mohamed Abu Zur

Many thanks you for the response,
 
makingworkString.replaceAll("\n", "\n");
I have the  in the output. I mean the  tag is not
interpreted. Is there any way to be interpreted?
 
Surrounding with   I have line breaks as I want, but 
the output have big width. A horizontal scroll apears in the html page 
and the font becomes other than I have.
 
 
I do not have any other idea to resolve this problem.
 
 
Mohamed


Wendy Smoak <[EMAIL PROTECTED]> wrote:
> You need to replace newlines with 
s:
> workString.replaceAll("\n", "\n
");

Or surround it with 
 
tags.

-- 
Wendy Smoak

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Yahoo! Messenger
Nueva versión: Super Webcam, voz, caritas animadas, y más #161;Gratis!

Line break and

2003-11-07 Thread Mohamed Abu Zur

Hi all:

 

 

I insert a text with various line breaks , paragrapgs etc in the database. When i get 
the text back to show in the html page I do it with 

Struts and WAS 3.5.4 (cant remove Attributes from request scope")

2002-06-05 Thread Mohamed Abu Zur

I have installed struts in Websphere 3.5.4 and every
thing goes well.
But in the struts-example application when i go from
the http://localhost/struts-example/index.jsp 
page to 
http://localhost/struts-example/logon.jsp
in the server log I have the following error:

Server caught unhandled exception from servlet
[jsp11]: cant remove Attributes from request scope"

com.ibm.servlet.engine.webapp.UncaughtServletException:
Server caught unhandled exception from servlet
[jsp11]: cant remove Attributes from request scope




=
http://www.alquds-palestina.org

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: