Re: Performance Tuning

2003-06-18 Thread Adrian Janssen
ce Tuning > > I know making them execute faster is called performance tuning...But, > How... > > Rgds, > Ram. > CWLGLOBAL... > > - Original Message - > From: "Adrian Janssen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: W

Re: Performance Tuning

2003-06-18 Thread Adrian Janssen
Make them execute faster. > -Original Message- > From: Ram [SMTP:[EMAIL PROTECTED] > Sent: 18 June 2003 12:48 > To: [EMAIL PROTECTED] > Subject: Performance Tuning > > Hi, > > Can anybody tell me how to tune the performance (i.e., Processing > speed, connecting speed) of EJB

Re: zip file closed

2003-06-18 Thread Adrian Janssen
I got it from Mark Galbreath, who regrettably seems no longer to have the time to chastise those who don't try hard enough ;-). He is much better at it than I am. > -Original Message- > From: Adrian Janssen > Sent: 18 June 2003 11:19 > To: [EMAIL PROTECTED] > Subjec

Re: zip file closed

2003-06-18 Thread Adrian Janssen
I think it will be quite hard for anyone to help you if you provide so little information: http://www.catb.org/~esr/faqs/smart-questions.html > -Original Message- > From: Mr.W. Dwogi [SMTP:[EMAIL PROTECTED] > Sent: 18 June 2003 11:00 > To: [EMAIL PROTECTED] > Subject: zip file cl

Re: Initialization file for tag - best practice?

2003-06-13 Thread Adrian Janssen
Hi Erik, Your option 1 seems reasonable to me, but perhaps instead of sending in the object to the tag as a parameter, make your initialization object a "singleton" type of object that you either setup when the web-server starts-up or on first use (lasy initialization). Then in your tag code you c

Re: java.lang.IllegalAccessError

2003-06-06 Thread Adrian Janssen
Sounds to me like DAOFactory does not have a publicly accesible getAssignmentDAO() method, at least the version that your JSP server is finding does not have it. Check the class path that your JSP server is using. It is likely to be different from the class path you are using when compiling. Also

Re: Retrieving A cursor from an Oracle Stored Procedure

2003-06-03 Thread Adrian Janssen
what is in: GET_VALIDATEMESSAGE_STATEMENT > -Original Message- > From: Sajag Patel [SMTP:[EMAIL PROTECTED] > Sent: 03 June 2003 03:16 > To: [EMAIL PROTECTED] > Subject: Retrieving A cursor from an Oracle Stored Procedure > > I am trying to retrieve a cursor to return a resultset fro

Re: displaying 5th record

2003-06-03 Thread Adrian Janssen
not all db's have the ability to select via rownum. For such a db the query below can be modified as follows: SELECT * FROM tablename t1 WHERE (select count(*) from tablename t2 where t2.salary > t1.salary) < 5 ORDER BY t1.salary > -Original Message- > From: Vishal Chaddha [SMTP:[E

Re: preparedStatement

2003-02-27 Thread Adrian Janssen
-- > From: Bryan LaPlante [SMTP:[EMAIL PROTECTED] > Sent: 27 February 2003 11:28 > To: Adrian Janssen > Subject: Re: preparedStatement > > I am not sure what you mean, the row23 is throwing me off a bit. Do you > mean > that your key would be the column names and the v

Re: Big Problem with anyone solution

2003-02-26 Thread Adrian Janssen
You need to explictly close every ResultSet and Statement. This has been dealt with recently on this forum look for emails with the title: Re: Closing a ResultSet, was "Re: odd oracle error" Search the archives at: http://archives.java.sun.com/jsp-interest.html > -Original Message- > Fr

Re: Replacing JSP with PHP?

2003-02-19 Thread Adrian Janssen
Thats what they say about VB too!. ROTFL, no in fact ROTFLMFTO! har HA Ha,HA ha hA .. > -Original Message- > From: fabrice Bouteiller [SMTP:[EMAIL PROTECTED]] > Sent: 19 February 2003 11:39 > To: [EMAIL PROTECTED] > Subject: Re: Replacing JSP with PHP? > > Excuse me, but PH

Re: HttpClient to Servlet

2003-02-03 Thread Adrian Janssen
I thought the browser generated them, but perhaps you are correct and the server generates them on first request. If so, then you will need to send the session id back to your client app on first request and then each subsequent request the client app sends it back to the server. Sorry don't reall

Re: HttpClient to Servlet

2003-02-03 Thread Adrian Janssen
al wrote: > > can i make use of the sessionid created during 'getSession(true)'? thus > > this sessionid be included in the response of the servlet to the > > HttpClient? how do i get this sessionid? > > > > thanks a lot in advance. > > > > Adria

Re: HttpClient to Servlet

2003-02-03 Thread Adrian Janssen
27;getSession(true)'? thus > this sessionid be included in the response of the servlet to the > HttpClient? how do i get this sessionid? > > thanks a lot in advance. > > Adrian Janssen wrote: > > I don't know in practise how to do this but in principle what you need >

Re: HttpClient to Servlet

2003-02-03 Thread Adrian Janssen
I don't know in practise how to do this but in principle what you need to do is send a cookie with the same session id with evey request, this means you need to set a header variable using the following method of URLConnection: public void setRequestProperty(String key, String value) I am not qui

Re: Closing a ResultSet, was "Re: odd oracle error"

2003-02-02 Thread Adrian Janssen
The problem here is "assuming that Oracle and other have implemented the interface correctly" and we all know what assumption is the mother of > -Original Message- > From: Alan Meyer [SMTP:[EMAIL PROTECTED]] > Sent: 31 January 2003 04:47 > To: [EMAIL PROTECTED] > Subject

Re: JSP with Applet Question

2003-01-15 Thread Adrian Janssen
I like option 2, but instead of posting to the server, store the info in a cookie (as per Mattias' prior email). First communicate with the applet using the LiveConnect part of JavaScript and store the info in a cookie via "document.cookie". Download the following two PDF's from the old netscape s

Re: advice on jsp include

2003-01-10 Thread Adrian Janssen
My 2c... If you are only going to *ever* have a few jsp pages, say 5 or less, then it seems fine to me. However beyond that I think it will quickly become unweildy. I don't know if you are interested in following the MVC architecture, and certainly for only a few pages it is not worth it, but if

Re: Location.href

2003-01-10 Thread Adrian Janssen
Christian's suggestion below is the *best* way to do this. However very occasionally it won't work, due perhaps to an evil proxy server. In this case a hack is possible, when setting location.href append a bogus and random parameter on the end of the url to defeat the proxies page recognition, forc

Re: hi pblm in JSP form

2003-01-07 Thread Adrian Janssen
missing > -Original Message- > From: arun s [SMTP:[EMAIL PROTECTED]] > Sent: 06 January 2003 04:30 > To: [EMAIL PROTECTED] > Subject: hi pblm in JSP form > > hi all, > I hav a pblm in HTML + JSP form. I want to generate a pulldown menu > based > on a Database values dyanmically.

Re: url encoding

2002-12-20 Thread Adrian Janssen
java.net.URLEncoder.encode ("some querystring value"); > -Original Message- > From: ROLDAN, Gabriel raul [SMTP:[EMAIL PROTECTED]] > Sent: 20 December 2002 11:40 > To: [EMAIL PROTECTED] > Subject: url encoding > > is there any standard way to encode an URL? > I am sending to servle

Re: Problem with reloading the page...

2002-12-17 Thread Adrian Janssen
I don't think the last 3 lines of your JavaScript fucntion will ever run, i.e. those lines after the "document.icareForm.submit();" as this causes a new page to be requested from the server, hence the browser immediately stops processing the JavaScript on the current page. Secondly even if those l

Re: Secure server

2002-12-05 Thread Adrian Janssen
D] > Subject: Re: Secure server > > Using URL rewriting when posting from the http session to the https > session > should also work ... right? > > > -Original Message- > > From: A mailing list about Java Server Pages specification and reference > &g

Re: Secure server

2002-12-04 Thread Adrian Janssen
Sessions are not shared accross http / https boundries. This is an artifact of the browser. It will deliberately not recognise http and https pages as being in the same "context" and will generate a new session id cookie as soon as the transition from http to https is made. This is for security rea

Re: Hashtable / HashMap Problem.

2002-11-24 Thread Adrian Janssen
use a TreeMap if you want the entries to come out sorted. > -Original Message- > From: Lakshmeenarayana G G [SMTP:[EMAIL PROTECTED]] > Sent: 23 November 2002 07:27 > To: [EMAIL PROTECTED] > Subject: Re: Hashtable / HashMap Problem. > > Well guys... > I got so confused with all these

Re: Hashtable / HashMap Problem.

2002-11-22 Thread Adrian Janssen
The HashMap class does not do any sorting, since it implements the Map interface not the SortedMap interface. However (from the Javadocs): "This class makes no guarantees as to the order of the map; in particular, it does not guarantee that the order will remain constant over time." Consider usin

Re: Can anyone help.......??

2002-11-15 Thread Adrian Janssen
Use JBoss for EJB, Tomcat for Servlet and JSP. > -Original Message- > From: Emmanuel Eze [SMTP:[EMAIL PROTECTED]] > Sent: 15 November 2002 12:49 > To: [EMAIL PROTECTED] > Subject: Re: Can anyone help...?? > > Does Apache Tomcat has support EJB? Can anyone please tell an applica

Re: how to lock the access to an array till a method is finished ...

2002-11-07 Thread Adrian Janssen
syncronise all and any code that accesses the array, and make sure that your blocks are "wide" enough. E.G. this WON'T work because the "syncronized" bock should be out-side of the loop. public void populateBigArray ( long[] bigArray ) { for (i = 0 ; i< VERY_BIG_NUMBER ; i++) {

Re: how to lock the access to an array till a method is finished ...

2002-11-07 Thread Adrian Janssen
Syncronize the code/method that populates the array as well as the code/methods that access it. This can either be done using the syncronise method modifier, or using syncronised blocks, which is better. This is however more of an elementary Java issue though, search the web for the PDF version of

Re: JSP -> servlet convertor...

2002-11-06 Thread Adrian Janssen
Sorry Rajesh, I was addressing my mail more towards the original poster David. I was concerned that he did not realise that the compliation is an automatic process. There have been a few posts from newbie's along these lines before - no offence meant ot you David (perhaps you are in the same situa

Re: JSP -> servlet convertor...

2002-11-06 Thread Adrian Janssen
Why do you want to do this though, there is not, for instance, any speed improvement, as this is what the container does anyway? In fact, instead of going through this whole excersize you could try to find the compiled class that the container generates anyway. For Tomcat seach under the appropri

Re: Document Security

2002-11-01 Thread Adrian Janssen
A very very determined user can also find a way to intercept the stream going to the applet in the browser and make a copy of it, so the stream would need to be encrypted, however since the applet needs to decode it, it will need to have the key, which imples that a very^3 user could decompile the

Re: session nonpersistence

2002-11-01 Thread Adrian Janssen
what if they move your account to a different server causing your urls to change to for e.g. www19.addr.com/~mgarde/somepage.html Now aint that gonna suck? > -Original Message- > From: Monte Gardner [SMTP:[EMAIL PROTECTED]] > Sent: 31 October 2002 03:57 > To: [EMAIL PROTECTED] > Subject

Re: How to pass an integer array from a form to a JSP page

2002-11-01 Thread Adrian Janssen
In javascript do not pre-size the array, let it grow as it needs to by adding on to the end as needed (javascript can do this). This way you will not get all those additional trailing comma's. In your servelt if you decide you do want to parse the string use the StringTokenizer class. > -Orig

Re: JTextArea

2002-10-23 Thread Adrian Janssen
So exactly where in your JSP are you using this JTextArea? > -Original Message- > From: Martin Simon [SMTP:[EMAIL PROTECTED]] > Sent: 23 October 2002 11:52 > To: [EMAIL PROTECTED] > Subject: JTextArea > > I have a swing.JTextArea. How can i show scrollbars? > > =

Re: Storing HTML in database

2002-10-22 Thread Adrian Janssen
PreparedStatements are a better solution, they will work regardless of the DB being used, and may turn out to be faster. > -Original Message- > From: Nicholson, Dale [SMTP:[EMAIL PROTECTED]] > Sent: 22 October 2002 05:50 > To: [EMAIL PROTECTED] > Subject: Re: Storing HTML in databas

Re: Server-Side ActiveX technology

2002-10-16 Thread Adrian Janssen
I think you need a Java to COM bridge - COM or COM+ being the server-side version of ActiveX. Look at: the J-Integra Java-COM bridge http://www.linar.com/ jacob (java to com bridge) and it's free. http://danadler.com/jacob/ > -Original Message- > From: Himar Carmona Delgado [SMTP:[EM

Re: Methods in JSPs

2002-10-11 Thread Adrian Janssen
no. don't do it. > -Original Message- > From: Joel Carklin [SMTP:[EMAIL PROTECTED]] > Sent: 11 October 2002 12:31 > To: [EMAIL PROTECTED] > Subject: Re: Methods in JSPs > > Just a guess here (haven't tried it) but howabout something like > > <%! String text_for_page = ""; > priv

Re: error using MultipartRequest: content type isn't multipart/fo rm-data

2002-09-27 Thread Adrian Janssen
I notice that in your sample code form there is no "project_ID" field, yet you are able to retrieve this as a parameter in your JSP processing page? Do you perhaps have two forms on your page, one with the file and one with other fileds? If so, then this is your problem as only one of the form

Re: share objects

2002-09-25 Thread Adrian Janssen
Probably he wants to say primitive types (int, char, ...) for 'variables'. > > Ionel Condor. > > - Original Message - > From: "Adrian Janssen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, September 25, 2002 11:00

Re: Tomcat installation issues

2002-09-25 Thread Adrian Janssen
I don't think Tomcat 4.X is ready for J2SE1.4.X . . . . > -Original Message- > From: Brendan Spinks [SMTP:[EMAIL PROTECTED]] > Sent: 25 September 2002 07:05 > To: [EMAIL PROTECTED] > Subject: Tomcat installation issues > > Hi all > > We are having issues installing Tomcat 4.0.4, j2

Re: share objects

2002-09-25 Thread Adrian Janssen
What exactly, in your opinion is the difference between an OBJECT and a VARIABLE ? The jsp:useBean tag ONLY works for OBJECTS. > -Original Message- > From: Martin Simon [SMTP:[EMAIL PROTECTED]] > Sent: 24 September 2002 04:13 > To: [EMAIL PROTECTED] > Subject: Re: share objects >

Re: Problem with getParameterValues()

2002-09-10 Thread Adrian Janssen
This is how HTML Forms work, only the value is returned. (the same is true for checkboxes anbd radio-buttons) If you want the text as well, you can contrive something in HTML and Javascript to do that. Make a hidden form field and either onchange of the or onsubmit of the fill this hidden field

Re: JSP Apostrophe in JDBC

2002-09-05 Thread Adrian Janssen
use PreparedStatement, and let it handle the apostrophes > -Original Message- > From: Benoit Jodoin [SMTP:[EMAIL PROTECTED]] > Sent: 05 September 2002 03:10 > To: [EMAIL PROTECTED] > Subject: Re: JSP Apostrophe in JDBC > > It's a solution i've found...what would you suggest?..h

Re: Toolkit... getDefaultToolkit()...HEADACHE

2002-09-04 Thread Adrian Janssen
imports are r4esolved at compile time... so while it may compile (because the class path is correct at compile time) it may not run (because the class path is NOT correct at run time), so it sounds like Hugo (below) is on the right track... > -Original Message- > From: Hugo Pragt [SMTP:[E

Re: problem in jsp page rendering

2002-08-26 Thread Adrian Janssen
Are you buffering the page? Perhaps try to set autoflush on explicitly - even though it *supposed* to be on by default. <%@ page autoflush="true" %> > -Original Message- > From: Narayanan, Prashanth (MED, TCS) > [SMTP:[EMAIL PROTECTED]] > Sent: 26 August 2002 09:57 > To: [EMAIL PROTE

Re: Declaration blocks and JSP

2002-08-19 Thread Adrian Janssen
this works... <%@page contentType="text/html; charset=iso-8859-1" language="java" %> <%@page import="java.sql.*,javax.sql.*,oracle.jdbc.pool.*,javax.naming.*,java.io.*" %> <%@page errorPage="/app/tate_error.jsp" %> <%= AuthenticateUser(request, response, out) %> <%! public String Authenticat

Re: Declaration blocks and JSP

2002-08-19 Thread Adrian Janssen
how did it not work? compilation error / runtime error? > -Original Message- > From: Campano, Troy [SMTP:[EMAIL PROTECTED]] > Sent: 19 August 2002 03:26 > To: [EMAIL PROTECTED] > Subject: Re: Declaration blocks and JSP > > how would I do that? > > I tried public String Authenticate

Re: Declaration blocks and JSP

2002-08-19 Thread Adrian Janssen
yes, pass them in. > -Original Message- > From: Campano, Troy [SMTP:[EMAIL PROTECTED]] > Sent: 19 August 2002 03:19 > To: [EMAIL PROTECTED] > Subject: Declaration blocks and JSP > > When I use a declaration block to write a method like this: > > > <%! > public String AuthenticateUs

Re: Basic question: repeating code in JSP pages?

2002-08-15 Thread Adrian Janssen
de in JSP pages? > > so whatz ypur advice when I need to pass and modify arrays and objects? > > -Original Message- > From: Adrian Janssen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 15, 2002 10:59 AM > To: [EMAIL PROTECTED] > Subject: Re: Basic question: repeat

Re: Basic question: repeating code in JSP pages?

2002-08-15 Thread Adrian Janssen
that I do not need to synchronize my methods so long as I'm > not > using instance variables? What then happens when I call such methods > concurrently? > > -Original Message- > From: Adrian Janssen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 15, 2002 10:40

Re: Basic question: repeating code in JSP pages?

2002-08-15 Thread Adrian Janssen
If you are using instance variables, you would need to syncronize. However rather try not to use instance variables. As you have pointed out, Java can only return a single value, but that could be an array or an object containing many values, see if that can be used to solve your problem. Try to

Re: Java objets in oracle

2002-08-12 Thread Adrian Janssen
Earth to Steven Anyway, to answer Joshy's question in the absence of Stevens lucidity. I believe it is possible. What you would need to do though, is serialize the object first to a byte stream and then write this to a BLOB-type field in your DB. I have not done personally done this in JSP (

Re: Problm: Nested includes in JSP and shtml pages.

2002-08-01 Thread Adrian Janssen
Have you tried using the tag? This runs when your servelt runs, and it will include the *results* of the named URL. > -Original Message- > From: Ola Theander [SMTP:[EMAIL PROTECTED]] > Sent: 01 August 2002 01:55 > To: [EMAIL PROTECTED] > Subject: Problm: Nested includes in JSP a

Re: Web Matrix Development Tool

2002-07-28 Thread Adrian Janssen
are you for real bob_jones99? because my bogus-poster-M$-bullshit detector is clickin away like a mad thing. > -Original Message- > From: Bob Jones [SMTP:[EMAIL PROTECTED]] > Sent: 28 July 2002 06:36 > To: [EMAIL PROTECTED] > Subject: Web Matrix Development Tool > > Have people

Re: help me

2002-07-24 Thread Adrian Janssen
there is also this good available in PDF format for download http://pdf.coreservlets.com/ > -Original Message- > From: Alexander V. Yug [SMTP:[EMAIL PROTECTED]] > Sent: 25 July 2002 07:50 > To: [EMAIL PROTECTED] > Subject: help me > > hi all! > i want to begin with JSP. what have

Re: Opening IE from Java application : urgent

2002-07-22 Thread Adrian Janssen
Ok this might be way off . . . .in fact I have not tried it in java. Howevwer on my PC if thier is an open browser window, then if I open a command prompt window (dos prompt) and type "start http://www.google.com"; then it loads in the excisting browser window - so try that for the second button

Re: context problem

2002-07-22 Thread Adrian Janssen
what url are you using to load index.jsp (what does it read in the addrtess bar) ? > -Original Message- > From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]] > Sent: 20 July 2002 07:36 > To: [EMAIL PROTECTED] > Subject: Re: context problem > > It should work as menu.jsp and body.jsp ar

Re: List of users logged in

2002-07-19 Thread Adrian Janssen
cification > and reference > > > > > > > But...if the user closes the browser ...using browser's close button... > how to handle... > > - Original Message - > From: "Adrian Janssen" <[EMAIL PROTECTED]> > To: <[EMAIL

Re: List of users logged in

2002-07-19 Thread Adrian Janssen
maintian the list in a bean with application scope > -Original Message- > From: subbu [SMTP:[EMAIL PROTECTED]] > Sent: 19 January 2001 10:19 > To: [EMAIL PROTECTED] > Subject: List of users logged in > > Hi, > i want to list the users logged in our application > > ie: > 1.List of

Re: target of JSP scriptlet Code

2002-07-08 Thread Adrian Janssen
I'd hate to say no absolutely not, but I cannot see a way. Under Tomcat for instance the JSP interpreter automatically puts the code in the _jspService of a class that extends HttpJspBase. Since this is all generated code the only thing that I can see that maybe you could do is change HttpJspBase

Re: is this bug or normal situation?

2002-07-07 Thread Adrian Janssen
This is normal as the query part of the url (the bits after the '?') is considered part of the url when uniquely identifying cached pages. In fact if you fetch the "index.jsp?param=some" twice (with the same param=some), the second fetch will be pulled out of the cache. To avoid caching, you need

Re: off topic - que from java script

2002-07-01 Thread Adrian Janssen
res = window.confirm ( "your text here..." ); opens up a modal dialog box with the specified text on it and OK and Cancel buttons on it. It returns true if OK button is pressed, false if the Cancel button is pressed. > -Original Message- > From: Vaishali S. Pandya [SMTP:[EMAIL PROTECTED]

Re: slightly offtopic

2002-06-27 Thread Adrian Janssen
Very off-topic. They are not errors they are warning messages, you can safely ignore them in your case. > -Original Message- > From: Sandeep Kumar Agrawal, Noida [SMTP:[EMAIL PROTECTED]] > Sent: 28 June 2002 09:11 > To: [EMAIL PROTECTED] > Subject: slightly offtopic > > Hi All, >

Re: A very new game

2002-06-25 Thread Adrian Janssen
Here's an old mail (see below) on the topic of writning out binary content, with a good reference. BTW are gif's, tiff's etc in general transmitted in HTTP as binary? Or are they MIME encoded somehow to 7-bit ascii or whatever, I assume the HTTP headers are always text, so it seems to me to be a

Re: A very new game

2002-06-25 Thread Adrian Janssen
nope, no binary. > -Original Message- > From: Rodrigo Gevaerd [SMTP:[EMAIL PROTECTED]] > Sent: 25 June 2002 04:40 > To: [EMAIL PROTECTED] > Subject: Re: A very new game > > Of course you can. You can generate from JSP anything you can generate > from a servlet. > > []'s, > >

Re: which method is good for getting connection init() or doPost( )

2002-06-25 Thread Adrian Janssen
ore efficient in > terms of performance or overhead. > > Regards, > Vikram. > > > -Original Message- > From: Adrian Janssen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 25, 2002 2:24 AM > To: [EMAIL PROTECTED] > Subject: Re: which method is good for gettin

Re: which method is good for getting connection init() or doPost( )

2002-06-25 Thread Adrian Janssen
get a connection every time the user requests the servlet (i.e. in the doPost() ). Note thaty this will not generally create a connection as normally one will be available in the pool and will be returned. If you try to hold onto to a connection in your servlet by for instance getting it in the i

Re: Check This

2002-06-07 Thread Adrian Janssen
sigh if ( (name != null) && (name.length() != 0) ) { } > -Original Message- > From: It, Cockpit (CAP, Contractor) [SMTP:[EMAIL PROTECTED]] > Sent: 07 June 2002 10:53 > To: [EMAIL PROTECTED] > Subject: Re: Check This > > This code will surely throw up an error if name variabl

Re: Separation of HTML and Java work in a JSP

2002-05-30 Thread Adrian Janssen
Hi, I ran a largish (40 odd people) web development company for a while, and our approach was to get the graphic designers to just deleiver us photoshop files - These would then be cut and coded up into JSP by the programmers themselves - even HTML when pushed is beyond a designer when you go int

Re: can not get parameter (It's urgent)

2002-05-28 Thread Adrian Janssen
do you have form fields named like txtdesc[1] ? In other words like: This is what the code seems to be implying, if so, then reather use form field like "txtdesc1", i.e. withou the "[" and "]" as these might casuer problems. then in your Servlet you can use: String d = reque

Re: Use of Bean in function

2002-05-24 Thread Adrian Janssen
you have to pass the bean along to the function. it is not global. > -Original Message- > From: Jan Arenö [SMTP:[EMAIL PROTECTED]] > Sent: 24 May 2002 03:58 > To: [EMAIL PROTECTED] > Subject: Use of Bean in function > > Hi, I have a function problem > > I have a JSP page that uses

Re: pie-chart and bar-charts in java

2002-05-22 Thread Adrian Janssen
http://www.object-refinery.com/jfreechart/index.html > -Original Message- > From: Kesav, Ramesh [SMTP:[EMAIL PROTECTED]] > Sent: 22 May 2002 08:56 > To: [EMAIL PROTECTED] > Subject: pie-chart and bar-charts in java > > Hi all, > > can anybody let me have source code for drawing pi

Re: Problem with session variable

2002-05-20 Thread Adrian Janssen
The problem would seem to be that the IE6 users are not sending the session ID through with every request, check by dumping out the seesion id. It should stay the same for every page for the 5.5 users and differ for every page for the 6 users (and even accross different requests of the same page).

Re: newbie

2002-05-20 Thread Adrian Janssen
you need to connect to the postgresql port 5432 NOT 8080 (the tomcat port). > -Original Message- > From: Sagine E.Ferrus [SMTP:[EMAIL PROTECTED]] > Sent: 20 May 2002 04:16 > To: [EMAIL PROTECTED] > Subject: newbie > > I'm trying to have my jsp page connect to a postgresql

Re: sendRedirect() from within a ?

2002-05-20 Thread Adrian Janssen
Also, does anyone know if this is possible within the context of servlets / JSP? As pointed out sendRedirect actually just sets a header in the response - as I then understand things this is then sent to the browser (the response with just the redirect header and nothing else) and the browser the

Re: multiple HTML Forms

2002-05-16 Thread Adrian Janssen
Or if all 3 forms should be submitted to the same page (and all other answers in this thread seam to be assuming so...) then only have one form that looks like 3 forms with 3 submit buttons! > -Original Message- > From: Be Fair [SMTP:[EMAIL PROTECTED]] > Sent: 16 May 2002 09:19

Re: Ok, I'm new to JSP

2002-05-16 Thread Adrian Janssen
Marty Hall's book is one of the better books on JSP and servlets, go to www.coreservlets.com to download in pdf format. It is very accessible and gives you the juicy bits quickly. > -Original Message- > From: Christopher Martin [SMTP:[EMAIL PROTECTED]] > Sent: 16 May 2002 01:21 > To:

Re: Accessing self created packages in Tomcat3.3

2002-05-15 Thread Adrian Janssen
encing all the web-inf\lib directories automatically. I'd heard that > it's not recomended to be adding every single reference into the system > classpath.. apart from the fact that it would grow huge there's the > portability issue. Have you any thoughts in this area?

Re: Accessing self created packages in Tomcat3.3

2002-05-14 Thread Adrian Janssen
if your problems are at compile time then I suspect that it has very little to do with TOMCAT, are you sure that the TOMCAT_HOME\webapps\ourTest\WEB-INF\classes\com\ue\ueUtils directory is in your classpath? try something like: javac -classpath %classpath%;TOMCAT_HOME\webapps\ourTest\WEB-INF\clas

Re: properties file

2002-05-14 Thread Adrian Janssen
my 2c: I always put the properties file in the same directory as the class file that will read it and this has always worked for me. If you need to read it off disk from two different classes in different packages, then I dont know as I don't ever do this. Cheers > -Original Message- >

Re: properties file

2002-05-14 Thread Adrian Janssen
my 2c: I always put the properties file in the same directory as the class file that will read it and this has always worked for me. If you need to read it off disk from two different classes in different packages, then I dont know as I don't ever do this. Cheers > -Original Message- >

Re: sql Date

2002-05-07 Thread Adrian Janssen
til.Date and not long. > > By the Emmanuel Eze have you found the solution for your problem yet or > not? > > -Original Message- > From: Adrian Janssen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 3:25 PM > To: [EMAIL PROTECTED] > Subject: Re: sql Date > &g

Re: sql Date

2002-05-07 Thread Adrian Janssen
cbirthday.getTime() returns a long - which cannot be cast to any type of Date. Change your code to: birthday = new java.sql.Date ( cbirthday.getTime() ); > -Original Message- > From: Emmanuel Eze [SMTP:[EMAIL PROTECTED]] > Sent: 07 May 2002 10:50 > To: [EMAIL PROTECTED] > Subj

Re: sql Date

2002-05-07 Thread Adrian Janssen
Hi, That' pretty dangerous, what if the DB is expecting day then month (UK standard) instead of month then day (US Standard) ? From my experience that is a common issue with dates and DB's. It may be poossible to use SQL functions to build the date up. Cheers Adrian > -Original Message

Re: Cookies, sessions and proxy servers

2002-04-25 Thread Adrian Janssen
hey Gary, Are you sure it is the proxy? I have encountered the exact same problem but the cause was IE6 automatically disabling cokies becuase the web sitye did not have a Privacy Policy set-up, this occurred with INTRANET sites! It only happened to the IE6 users who had auto-updated thier browse