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` text

io.File relative path constructor

2005-09-06 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 get

RE: Input stream

2005-08-15 Thread Paul Wallace
derlying XML parser impls 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 soc

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.

data push

2005-08-10 Thread Paul Wallace
used, HTTP? 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 B

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: I understand in VB something called a control array exists, that retrieves the checked checkbox values and stores them in an array. This is also possible in CFM. Is there the equivalent in Java/HTTP? So

RE: double format

2003-09-02 Thread Paul Wallace
bleh.setScale(2, 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 f

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

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: 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 certain

RE: window close session invalidate

2003-08-14 Thread Paul Wallace
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

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

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: CLOSE Does anyone have any experience of this? The session is being killed

RE: window close session invalidate

2003-08-06 Thread Paul Wallace
dow, means 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 s

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 spec

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 i

RE: redirect from Servlet

2003-06-25 Thread Paul Wallace
se); - Original Message - 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 &

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 check

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 m

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: For additional commands, e-mail:

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 1.3.

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("" + res.getString(2) + ""); } if ((res.getString(3) != null) || (res.getString(3) != "")) { out.println("" + res.getString

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