comp.lang.java.programmer
http://groups-beta.google.com/group/comp.lang.java.programmer
[EMAIL PROTECTED]

Today's topics:

* Good book on Java basics - 3 messages, 3 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6b796f558b4a9484
* Tomcat startup problem - 2 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/691dd280039df3ee
* Java Methods - 4 messages, 3 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dbbde6e7a639949f
* Stuff the purple heart programmers cook up - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ff788c5b12bf8d8f
* Custom Protocol over TCP - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4b24f908bd6b6b6b
* database access - PreparedStatement - DebuggableStatement - 4 messages, 3 
authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/61b32931886071f9
* Tomcat and struts: expanding empty XML tags in XHTML - 3 messages, 2 authors
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3f52f7759972078b
* Serializable vs Externalizable - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8d424c3b3da836c3
* Preserve session across webapps - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/56510aac64265620
* Manipulating audio data with filters - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d2a1f098702a36ec
* acceptable way to program - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/829184c5bd6bb8b0
* session id is determined by the cookie? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2a2b9a17b4d01adc
* Jetspeed (Enterprise) Portal vs Spring (Java/J2EE) Framework - 1 messages, 1 
author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/10b70c8c03f87f3f
* Microsoft and Sun JVM ? - 1 messages, 1 author
 
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dbdadd7a3dd948a4

==============================================================================
TOPIC: Good book on Java basics
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6b796f558b4a9484
==============================================================================

== 1 of 3 ==
Date: Fri, Dec 31 2004 3:11 pm
From: [EMAIL PROTECTED] 

Just Java  is one of the finest books on Java ever.




== 2 of 3 ==
Date: Sat, Jan 1 2005 12:12 am
From: Andrew Thompson  

On Fri, 31 Dec 2004 14:43:38 +0100, Mr B. wrote:

> Also, I seem to miss some offline helpfiles on the Java methods,

The online quick reference can be found here..
<http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html>

This should point to where to download the entire JavaDocs..
<http://onesearch.sun.com/search/developers/index.jsp?qt=download+javadocs>

HTH

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



== 3 of 3 ==
Date: Fri, Dec 31 2004 7:02 pm
From: "Wendy S"  

"Mr B." <[EMAIL PROTECTED]> wrote:
> Any recommendations on a good book on Java basics ?
> I am very experienced in Windows / C++ programming, but have no idea how 
> to build bas classes to inherit from etc etc etc etc

I recommend Joshua Bloch's "Effective Java".

-- 
Wendy S 






==============================================================================
TOPIC: Tomcat startup problem
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/691dd280039df3ee
==============================================================================

== 1 of 2 ==
Date: Fri, Dec 31 2004 3:20 pm
From: [EMAIL PROTECTED] (Kevin Lam) 

Dear experts,

I am trying to start my web application using tomcat, but I get the
following error, can anyone tell me what's happening? Thx

Kevin

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

javax.servlet.ServletException:
org.apache.jasper.JspCompilationContext.isTagFile()Z
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause 

java.lang.NoSuchMethodError:
org.apache.jasper.JspCompilationContext.isTagFile()Z
        
org.apache.jasper.compiler.ParserController.parse(ParserController.java:137)
        org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
        
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:508)
        
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



== 2 of 2 ==
Date: Fri, Dec 31 2004 11:04 pm
From: "[EMAIL PROTECTED]"  

JSP compilation error cuz you are calling the method which doesn't
exist.





==============================================================================
TOPIC: Java Methods
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dbbde6e7a639949f
==============================================================================

== 1 of 4 ==
Date: Sat, Jan 1 2005 12:09 am
From: Andrew Thompson  

On Fri, 31 Dec 2004 21:16:19 -0000, in comp.lang.java.programmer you wrote:

> Hi all,

Please refrain from multi-posting, Gemma.
<http://www.physci.org/codes/javafaq.jsp#xpost>

Since you are new to Java and your post has already been answered
on the post you made to c.l.j.help, it is probably better to stick
to that group for the moment.

While we are on the subject, *never* do what you just did with
the follow-ups to this post.  Cancelling the follow-up to the group 
and instead directing replies to your own email is way out of line.  
This is not your personal help desk Gemma, it is a public discussion forum.  

The idea is simple.  Search the group before asking for help, if the
answers are posted to the group as well, that provides a larger base
of answers to search for others who encounter the problem later.

In short, don't request email replies that when posting to public groups!

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



== 2 of 4 ==
Date: Sat, Jan 1 2005 1:15 am
From: Michael Borgwardt 
 

[EMAIL PROTECTED] wrote:

> www.sun.com

Specifically,  http://java.sun.com/docs/books/tutorial/index.html



== 3 of 4 ==
Date: Sat, Jan 1 2005 12:36 am
From: Andrew Thompson  

On Sat, 01 Jan 2005 00:09:11 GMT, Andrew Thompson wrote:

> While we are on the subject, *never* do what you just did with
> the follow-ups to this post.  Cancelling the follow-up to the group 
> and instead directing replies to your own email is way out of line.  
> This is not your personal help desk Gemma, it is a public discussion forum.

My apologies Gemma!  That would have been bad if you had done that 
but you had *not* done that.  

The email client I used was messed up apparently, and for some reason
was attempting to follow-up to an email address, probably because of my
own error. 

My fault and my mistake.

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



== 4 of 4 ==
Date: Fri, Dec 31 2004 9:35 pm
From: IchBin  

Gemma wrote:
> Hi all,
> 
> I started programming Java a couple of months ago now and I recently started
> methods, although my understanding of methods still isn't great.
> 
> I was wondering if anyone knows of any good online tutorials or examples of
> code.
> 
> Thanks in advance to anyone who replies!
> 
> 


Two bible sources..

*Java Language Specification*
http://java.sun.com/docs/books/jls/second_edition/html/jTOC.doc.html

*The Really Big Index*
http://java.sun.com/docs/books/tutorial/reallybigindex.html

Thanks in Advance...
IchBin
__________________________________________________________________________

'The meeting of two personalities is like the contact of two chemical 
substances:  if there is any reaction, both are transformed.'
-  Carl Gustav Jung,  (1875-1961),  psychiatrist and psychologist




==============================================================================
TOPIC: Stuff the purple heart programmers cook up
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/ff788c5b12bf8d8f
==============================================================================

== 1 of 1 ==
Date: Sat, Jan 1 2005 12:22 am
From: Andrew Thompson  

On 31 Dec 2004 10:26:26 -0800, Last Timer wrote:

> Ah, some bleeding heart ..

Purple Heart, Bleeding Heart.. 

*Damn* them!  All I need is an Ace of Spades and I've won!

[ And as an aside, if your posts made more - or any - sense they
might provoke more profound comments.  Now stop wasting bandwidth with 
your 738 lines of drivel and think of something interesting to post. ]

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane




==============================================================================
TOPIC: Custom Protocol over TCP
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4b24f908bd6b6b6b
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 31 2004 6:10 pm
From: Phil Staite  

Note, UDP is problematic for anyone behind a firewall... :-(

You may want to include in your protocol an exchange of "known 
servers/nodes" so that if/once you get out past your firewall you can 
rapidly expand the list of known nodes.






==============================================================================
TOPIC: database access - PreparedStatement - DebuggableStatement
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/61b32931886071f9
==============================================================================

== 1 of 4 ==
Date: Fri, Dec 31 2004 7:39 pm
From: "Ryan Stewart"  

"Rico" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> When I execute this query string through Enterprise Manager for MS SQL
> Server 2000 it says there's 34 rows returned. However in the code it
> throws SQLException saying that there's "No current row in the ResultSet"
>
First, are you aware that you must call next() on a ResultSet before trying 
to retrieve values from it? 





== 2 of 4 ==
Date: Sat, Jan 1 2005 3:48 am
From: anonymous  

Rico wrote:
> I'm quite at a loss with this:
> 
> I am able to obtain the query string (including values of params) for a
> PreparedStatement by using the debuggable package from the javaworld
> article:
> 
> http://www.javaworld.com/javaworld/jw-01-2002/jw-0125-overpower-p2.html
> 
> When I execute this query string through Enterprise Manager for MS SQL
> Server 2000 it says there's 34 rows returned. However in the code it
> throws SQLException saying that there's "No current row in the ResultSet"
> 
> Has anyone run into a similar case for some reason before?
> 
> I hope this is not the kind of problems like antivirus software causing
> Tomcat to fail to load jar's placed in <app-path>/WEB-INF/lib whilst all
> works fine when placed in common/lib
> 
> Thanks.
> 
> Rico.

If the program loads and the PreparedStatement executes, I fail to see 
how any anti virus software comes into play. Use a debugger to see what 
really happens. After that, use a real database and a real OS ;-)



== 3 of 4 ==
Date: Sat, Jan 1 2005 1:47 pm
From: Rico  

On Fri, 31 Dec 2004 19:39:00 -0600, Ryan Stewart wrote:
> "Rico" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
>> When I execute this query string through Enterprise Manager for MS SQL
>> Server 2000 it says there's 34 rows returned. However in the code it
>> throws SQLException saying that there's "No current row in the ResultSet"
>>
> First, are you aware that you must call next() on a ResultSet before trying 
> to retrieve values from it?

heh! I guess it's not a very good idea to mix programming and
celebrations, is it?

Thanks.
Rico.



== 4 of 4 ==
Date: Sat, Jan 1 2005 2:40 pm
From: Rico  

On Sat, 01 Jan 2005 03:48:52 +0100, anonymous wrote:
> Rico wrote:
>> I hope this is not the kind of problems like antivirus software causing
>> Tomcat to fail to load jar's placed in <app-path>/WEB-INF/lib whilst all
>> works fine when placed in common/lib
>> 
>> Thanks.
>> Rico.
> 
> If the program loads and the PreparedStatement executes, I fail to see 
> how any anti virus software comes into play.

I meant to express the idea of an external factor to the code or
application setup.

> Use a debugger to see what really happens.

Eclipse is the reason I enjoy programming in Java :)

> After that, use a real database and a real OS ;-)

Would you suggest Sybase?
If not for the requirements of my real job, I would be using a real OS.

Rico.




==============================================================================
TOPIC: Tomcat and struts: expanding empty XML tags in XHTML
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3f52f7759972078b
==============================================================================

== 1 of 3 ==
Date: Sat, Jan 1 2005 2:49 am
From: yzzzzz  

Hi,

I am using Tomcat 5.5 and struts 1.2.4, everything in XHTML.
Here is my problem:

If file.jspx contains
<script type="text/javascript" src="file.js"></script>
after it is parsed by Tomcat, the browser receives
<script type="text/javascript" src="file.js"/>

This is correct, and Firefox understands it, but it is not backwards 
compatible with HTML, so MSIE doesn't. I just get a blank page with MSIE.

Is there any solution to this problem? (Maybe a filter that could change 
<script/> back to <script></script> or something)

Thank you.

(PS. no I'm not going back to serving HTML4!)



== 2 of 3 ==
Date: Fri, Dec 31 2004 7:55 pm
From: "Ryan Stewart"  

"yzzzzz" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi,
>
> I am using Tomcat 5.5 and struts 1.2.4, everything in XHTML.
> Here is my problem:
>
> If file.jspx contains
> <script type="text/javascript" src="file.js"></script>
> after it is parsed by Tomcat, the browser receives
> <script type="text/javascript" src="file.js"/>
>
I haven't seen this one before. Are you *sure* it goes in Tomcat correctly 
and comes out changed? Do you have any thoughts on what might be causing it? 





== 3 of 3 ==
Date: Sat, Jan 1 2005 3:21 am
From: yzzzzz  

Ryan Stewart wrote:
> "yzzzzz" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> 
>>Hi,
>>
>>I am using Tomcat 5.5 and struts 1.2.4, everything in XHTML.
>>Here is my problem:
>>
>>If file.jspx contains
>><script type="text/javascript" src="file.js"></script>
>>after it is parsed by Tomcat, the browser receives
>><script type="text/javascript" src="file.js"/>
>>
> I haven't seen this one before. Are you *sure* it goes in Tomcat correctly 
> and comes out changed? Do you have any thoughts on what might be causing it? 

I don't know if this is normal, but all my jspx files are parsed and 
come out on a single line (when I view source). I suppose the jspx is 
parsed as XML (whitespace being ignored, as with any XML), and the 
canonical form in the XML parser is then interpreted (doing stuff with 
elements in the <html:> and <c:> namespaces) and then it regenerates the 
output, so it is not surprising I loose the code's "layout", the HTML 
comments, and empty elements are in their short form.

I can give you config details if you like.

BTW I have the same problem with empty <td>s becoming <td/> instead of 
<td></td> (but this is less important, as </td> is not required in HTML4).




==============================================================================
TOPIC: Serializable vs Externalizable
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8d424c3b3da836c3
==============================================================================

== 1 of 1 ==
Date: Sat, Jan 1 2005 2:08 am
From: "Alex Molochnikov"  

"Norris Watkins" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I didnt know that even with writeObject() defined, it will write the
> superclass "part" of the object.
> I somehow thought that one has to call defaultWriteObject() inside
> writeObject() for this to happen.

Yes, one does have to call the defaultWriteObject() to serialize the
superclass, and the serializable ivars of the given class. However, keep in
mind that you can control what instance variables to serialize by using the
"transparent" attribute which excludes the ivar from the serialization
process. All in all, the Serializable and Externalizable can be tuned to the
same performance.

Alex Molochnikov
Gestalt Corporation
www.gestalt.com






==============================================================================
TOPIC: Preserve session across webapps
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/56510aac64265620
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 31 2004 6:11 pm
From: [EMAIL PROTECTED] 

for the record, I've done the 'database-for-storing-sessions' thing
before, and it was fine.  of course, I used connection pooling, and the
load was light (< 10 concurrent users).





==============================================================================
TOPIC: Manipulating audio data with filters
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d2a1f098702a36ec
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 31 2004 6:53 pm
From: [EMAIL PROTECTED] 

awesome, thank you andrew thompson!





==============================================================================
TOPIC: acceptable way to program
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/829184c5bd6bb8b0
==============================================================================

== 1 of 1 ==
Date: Sat, Jan 1 2005 4:23 am
From: "Ann"  


"steve" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> Recently I have been looking at  the various ways people are implementing,
> interaction between java & oracle databases.
>
> I was always instructed on the purity of the data model,  "normalize the
> data" etc.
>
>  I have seen people Serializing java objects , such as purchase orders
> orders, customer records etc , then sticking the "object" into am oracle
blob
> column.
>
> finally when they want to retrieve it they de-serialize the object., work
on
> it then re-serialize and stuff it back into the oracle blob.
>
> to me this  causes the following problems:
>
> 1. the object can become very big, and can only be recovered in it's
> entirety, and if it contains pictures ,etc, it can become huge.
> 2. the object becomes "closed", in that  it cannot be modified or checked
in
> situ
> 3. it cannot be searched , without de-serialization.

How do you sort on a field that contains just picures (not pictures in
objects.)

>
>
> I'm looking to implement a java front end, (oracle back end), system ,that
> allows a product , to be inspected by an inspection team , and comments/
> photographic record kept.
>
> using an "object approach" would make it very simple, but the size of the
> resulting object could be very large.
>
> does anyone have any thoughts how to accomplish this task.
>
>
> steve
>
>
>






==============================================================================
TOPIC: session id is determined by the cookie?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2a2b9a17b4d01adc
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 31 2004 9:07 pm
From: "newB"  

1) no, that's wrong. everything would be saved to ur pc. just like a
cookie

2) session is saved to local pc as the cookies





==============================================================================
TOPIC: Jetspeed (Enterprise) Portal vs Spring (Java/J2EE) Framework
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/10b70c8c03f87f3f
==============================================================================

== 1 of 1 ==
Date: Fri, Dec 31 2004 10:41 pm
From: [EMAIL PROTECTED] 

Does anyone knows which is one a better choice for building a J2EE
application from scratch?





==============================================================================
TOPIC: Microsoft and Sun JVM ?
http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dbdadd7a3dd948a4
==============================================================================

== 1 of 1 ==
Date: Sat, Jan 1 2005 12:26 pm
From: "avp"  

hi there,

sorry for cross-posting

I am a newbie with Java programming here, I have written a simple applet
using Java SDK 1.4.2 now when i try to run this applet on other system
without sun's JVM impementation this does not run, i know that the Microsoft
JVM is suppose to be present on all the system except newer Windows XP, also
i have tested my applet on all the system using Sun JVM > 1.3 and it runs

I am looking for some way for my applet to run using Microsoft JVM

any suggestions ??





==============================================================================

You received this message because you are subscribed to the Google
Groups "comp.lang.java.programmer" group.

To post to this group, send email to [EMAIL PROTECTED] or
visit http://groups-beta.google.com/group/comp.lang.java.programmer

To unsubscribe from this group, send email to
[EMAIL PROTECTED]

To change the way you get mail from this group, visit:
http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe

To report abuse, send email explaining the problem to [EMAIL PROTECTED]

==============================================================================
Google Groups: http://groups-beta.google.com 

Reply via email to