PreparedStatement Unicode MySQL

2005-09-11 Thread Paul Wallace
Hi, I am having trouble inserting and retrieving Asian characters in my MySQL DB using PreparedStatement. I have set up my table thus: CREATE TABLE `messages` ( `id` int(10) unsigned NOT NULL auto_increment, `message_body` text NOT NULL, `sender_number` text NOT NULL, `shortcode`

io.File relative path constructor

2005-09-07 Thread Paul Wallace
Hi, A should-be easy one - I do not wish to define an absolute path to a File as it will packaged in a JAR, therefore its path will change. How do I construct a File relative to my src root, something like File file = new File(/path/myFile.xml);? I tried passing in a URL, URI but am

Input stream

2005-08-15 Thread Paul Wallace
Hi All, I have a socket receiving streams of XML. I receive an InputStream, but short of a dirty hack, do not know when (or how) I pass the stream/contents to be parsed. Any thoughts/resources on parsing streaming XML please? Thanks Paul.

RE: Input stream

2005-08-15 Thread Paul Wallace
for your JDK as well. Hope it helps, Wade --- Chris Lamprecht [EMAIL PROTECTED] wrote: See XmlPull: http://www.xmlpull.org/ On 8/15/05, Paul Wallace [EMAIL PROTECTED] wrote: Hi All, I have a socket receiving streams of XML. I receive an InputStream, but short of a dirty hack, do

data push

2005-08-10 Thread Paul Wallace
? How does one push data, than than have it requested? Can anyone point me towards a resource of this nature please? I understand sockets are in the picture - also new to me. Thanks Paul. Paul Wallace BSc Hons. IPTV Specialist Two Way TV Australia Level 3, City West Centre 55 Pyrmont Bridge Road

control Array

2003-10-05 Thread Paul Wallace
Hi, How might I request a series of checkboxes that all share the same name? E.g: form input type=checkbox name=myCheck value=01 input type=checkbox name=myCheck value=02 input type=checkbox name=myCheck value=03 /form I understand in VB something called a control array exists, that

double format

2003-09-02 Thread Paul Wallace
Hi all, A simple one for most..how do I enforce a double primitive format? E.g 00.00, or to enforce 2 and only 2 decimal points? Thanks Paul.

RE: double format

2003-09-02 Thread Paul Wallace
Obviously I am, I now have a value with approx 30 decimal points. What method formats to ii.dd ? Paul. BigDecimal? Or am I on drugs? -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 September 2003 2:23 PM To: [EMAIL PROTECTED] Subject: double format

RE: double format

2003-09-02 Thread Paul Wallace
, BigDecimal.ROUND_HALF_DOWN); Or something... -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 September 2003 2:46 PM To: Tomcat Developers List Subject: RE: double format Obviously I am, I now have a value with approx 30 decimal points. What method formats to ii.dd

RE: window close session invalidate

2003-08-14 Thread Paul Wallace
are ending your application Filip -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 9:01 PM To: Tomcat Developers List Subject: window close session invalidate Dear all, May someone enlighten me on why my session is being invalidated

RE: window close session invalidate

2003-08-14 Thread Paul Wallace
OK, Thanks for that. An interesting note however..after some testing, the session is not killed when run from another terminal i.e running the same instance of TC (same server) but from different terminals. That would suggest it is an IE configuration issue (at much annoyance to

RE: window close session invalidate

2003-08-08 Thread Paul Wallace
-Original Message- From: Paul Wallace Sent: Thursday, 7 August 2003 9:20 AM To: Tomcat Developers List Subject: RE: window close session invalidate OK, Thanks for that. An interesting note however..after some testing, the session is not killed when run from another terminal

RE: window close session invalidate

2003-08-06 Thread Paul Wallace
that you are ending your application Filip -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 9:01 PM To: Tomcat Developers List Subject: window close session invalidate Dear all, May someone enlighten me on why my session is being

window close session invalidate

2003-08-06 Thread Paul Wallace
Dear all, May someone enlighten me on why my session is being invalidated when I close a browser window? I am doing this in one of two ways - the application close icon on the top right of the window, or a simple: a href=javascript:window.close();CLOSE/a Does anyone have any experience

session expiry

2003-07-08 Thread Paul Wallace
Hello All, A simple one? I have my session defined in a servlet thus: HttpSession session = req.getSession(); session.setAttribute(userSession, h); // (h = HashMap) how or where do define session parameters such as expiry? I would ideally like my session to die when I call a

oddity

2003-07-01 Thread Paul Wallace
Hello, Can someone please tell me how to configure (I am assuming it is a configuration issue) TC such that my servlets do not insist on persisting. Even when I clear IE history, delete temporary Internet files, cookies, delete the class its self! I literally removed the servlet class and

RE: redirect from Servlet

2003-06-26 Thread Paul Wallace
- From: Paul Wallace [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 11:21 AM Subject: redirect from Servlet Hello, I have a packaged servlet (com.mypackage.servlets;) in WEB-INF\classes\com\mypackage\servlets, where it performs its logic

redirect from Servlet

2003-06-25 Thread Paul Wallace
Hello, I have a packaged servlet (com.mypackage.servlets;) in WEB-INF\classes\com\mypackage\servlets, where it performs its logic dutifully. From the servlet I wish to redirect back to the JSP that called it. Currently the JSP origin cannot be found (404). I have tried all manner of variations

var retrieval from checkbox (with single name)

2002-04-24 Thread Paul Wallace
Hi, I wish to retrieve / store values of multiple checkboxes checked in the previous page. The problem here is I dont know how many boxes (a dynamic amount of them is output), and the checkboxes must have the same name. I wish to do something similar to Hotmail where I check an amount of

Tomcat in industry

2002-04-22 Thread Paul Wallace
Hello, I don't know where I heard it, or if indeed I heard it all, but can someone clarify if Tomcat can be used in industrial strength web applications? That is, is it able to handle for example, traffic of 100 hits p/s? Must it be integrated with the Apache web server to make it so? Where

Pandora's box / can of worms etc.

2002-04-18 Thread Paul Wallace
What is MinTC? Where can I get information on it? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Synchronous Tomcat and Apache

2002-03-14 Thread Paul Wallace
Hi, I would like to use Tomcat to run my JSP, with Apache serving the HTML output. How may I configure Tomcat and Apache to acheive this please? Perhaps I may be directed toward / emailed an appropriate document where I can find out how to do this. Currently, I have Tomcat 4.0, Apache

ResultSet

2002-03-11 Thread Paul Wallace
Hi, For the brave, can anyone guess why with this rather unsociable code: if ((res.getString(3) == null) || (res.getString(3) == )) { out.println(tda href=takeDetails.jsp?timeSlot= + res.getString(2) + myDate= + myDate + + res.getString(2) + /a/td); } if ((res.getString(3) !=

cookie retrieval II

2002-03-10 Thread Paul Wallace
Hello Everyone, Similar to a previous posting, I have some code to make a cookie: Cookie cook = new Cookie(memberCookie, userid); cook.setPath(/mydir); response.addCookie(cook); and to retreive the cookie: Cookie cookies[] = request.getCookies(); for(int i = 0; i cookies.length; i++) {

cookie retrieval

2002-03-07 Thread Paul Wallace
Hi, a have a JSP page to setup a cookie (Tomcat server): cook = new Cookie(memberCookie, userid); cook.setPath(c:/Program Files/jakarta-tomcat-4.0/webapps/mydir/login/); response.addCookie(cook); response.sendRedirect(http://myhost/somelocation/mydir/bookings/enterDate.j sp); and the page to