Error while trying to generate .class file

2002-02-08 Thread Debasree Banerjee
Hi All, While trying to generate the .class file I am getting the following error: java.lang.OutOfMemoryError at java.lang.String.(String.java) at java.util.zip.ZipFile.readCEN(ZipFile.java) at java.util.zip.ZipFile.(ZipFile.java) at java.util.zip.ZipFile.(ZipFile.j

print page scope

2002-02-08 Thread Eric Cho
Hi all, Is there a way of defining print page scopes? ex. does not print this <% some jsp to define print page scope %> prints this <% end scopt %> THanks, Eric ** The contents of this em

Re: broswer versions

2002-02-08 Thread John Vanderbrook
you can very easily parse the "user-agent" header: request.getHeader("user-agent") will return a string which contains things like Mozilla, MSIE, Netscape etc... experiment with the different browsers to find out to exact format of the string. John -Original Message- From: Eric Cho <[

broswer versions

2002-02-08 Thread Eric Cho
hi all, can somebody give me some code to determine what version of browser the client is using wheter it be IE or Netscape?!?! Thanks, Eric ** The contents of this email and any attachments are c

Re: Javascript Clock

2002-02-08 Thread horwat
I configured the jsp-interest list so it strips any HTML attachments from postings while retaining HTML tags sent in the body of plain text messages. As a rule, I don't recommend sending or reading attachments on public lists. It's better to in-line the information or make it downloadable from a w

Re: Sort of OT: Getting data from database to JavaBeans

2002-02-08 Thread Hans Bergsten
Joe Cheng wrote: >>>Each Action class should correspond to one request type, so if you >>> > support retrieving data with one request and update with another, > you should have two Access classes. If you have one request type > that combines multiple database operations, say update information >

Re: Sort of OT: Getting data from database to JavaBeans

2002-02-08 Thread Joe Cheng
>> Each Action class should correspond to one request type, so if you support retrieving data with one request and update with another, you should have two Access classes. If you have one request type that combines multiple database operations, say update information and then retrieves the updated

Re: Javascript Clock

2002-02-08 Thread Joe Cheng
That was seriously off topic, but really cool nonetheless... Kind of irritating to cut and paste that HTML though. I've posted it here instead: http://www.joecheng.com/clock.html -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL

Re: Sort of OT: Getting data from database to JavaBeans

2002-02-08 Thread Daniel Jaffa
Look at struts. It does every thing that u are looking for _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx ===

Re: Javascript Clock

2002-02-08 Thread Arnold Shore
Dynamite! I've changed the arrays to English, but what language are the days/months? I don't recognize them. Arnold Shore Annapolis, MD USA -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ganszky, Balazs

RE : urgent help please - error connecting to the db

2002-02-08 Thread hassan afif
Hi ashraf, U can try this code before : Driver driver = (Driver)Class.forName(driverClassName).newInstance(); DriverManager.registerDriver(driver); -Message d'origine- De : A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]

Re: Sort of OT: Getting data from database to JavaBeans

2002-02-08 Thread Hans Bergsten
Gerry Scheetz wrote: > Start off with Hans I loved the book. It was extremely helpful when I > was first writing JSP/Servlet applications. Great job! Thanks, I'm glad you liked it. > [...] >>The variation of the above that I had in mind goes something like >>this. Let your Access classes use

Re: What's the best way to access my resources ???

2002-02-08 Thread Panagiotis Konstantinidis
I always put my properties's file inside my classpath (under WEB-INF) so I never have problems retrieving it. I always use a ResourceBundle: ResourceBundle bundle = ResourceBundle.getBundle("."); host = bundle.getString(""); 08/02/2002 16:21:33, Chris Pratt <[EMAIL PROTECTED]> wrote: >In a s

Re: What's the best way to access my resources ???

2002-02-08 Thread Chris Pratt
In a servlet I always make one of the Initialization Parameters (ServletConfig.getInitParameter("properties")) point to my properties directory. If you're writing an application, a command line parameter works nicely. (*Chris*) - Original Message - From: "Tony Keshikku" <[EMAIL PROTE

Re: Sort of OT: Getting data from database to JavaBeans

2002-02-08 Thread Gerry Scheetz
Start off with Hans I loved the book. It was extremely helpful when I was first writing JSP/Servlet applications. Great job! Hans Bergsten wrote: > EJB is overkill for most web applications, and comes at a great cost > in terms of learning and additional implementation time. Unless you're > ver

Re: Sort of OT: Getting data from database to JavaBeans

2002-02-08 Thread Gerry Scheetz
[EMAIL PROTECTED] wrote > >> The run-time performance of this class is fine, but with multiple > developers everyone want to access this file at the same time. :( << > If this is the only reason you're abandoning the one-class approach, perhaps > you should consider a source control system that w

Offtopic again

2002-02-08 Thread Ganszky, Balazs (GEL,NonGE,MSX)
Sorry it was the code modified by me. Here is the original one dCol='00';//date colour. fCol='00';//face colour. sCol='00';//seconds colour. mCol='00';//minutes colour. hCol='00';//hours colour. ClockHeight=40; ClockWidth=40; ClockFromMouseY=0; ClockFromMouseX=100; //Al

[no subject]

2002-02-08 Thread Ganszky, Balazs (GEL,NonGE,MSX)
Sorry, I had to share it with you. Try it it is a HTML file... dCol='00';//date colour. fCol='00';//face colour. sCol='00';//seconds colour. mCol='00';//minutes colour. hCol='00';//hours colour. ClockHeight=40; ClockWidth=40; ClockFromMouseY=0; ClockFromMouseX=100; //Al

Re: What's the best way to access my resources ???

2002-02-08 Thread servlet_prem
better to place .properties file along with .class file (evenif it is in .jar file), and to use getResourceAsStream(String propertyFileName). By this, access to .properties file will not be PATH dependent. hope this will help -prem - Original Message - From: "Tony Keshikku" <[EMAIL PROTEC

Re: What's the best way to access my resources ???

2002-02-08 Thread LearningEdition
One of the best ways to do them is not to hardcode paths etc. in the source files. Keep the path information in another properties/xml file. Read this file at startup and keep in memory in the form of a hashtable etc. If the path changes in the future, just reload the hashtable and that should d

Re: urgent help please - error connecting to the db

2002-02-08 Thread LearningEdition
Just try the following java -classpath .;%classpath% Connect Should be nothing more than the classpath problem. --- "Shahata, Ashraf" <[EMAIL PROTECTED]> wrote: > I have the following code, which is quite simple and > used to connect to the > db, but I keep getting the error: > Exception in thr