 |
 |
Index ‹ java-programmer
|
- Previous
- 3
- Will MS be less evil now?I don't understand Gates. If he wants to do good deeds and be a
philanthropist, why limit such good deeds to healthcare and
education? Why not also do a good deed in the computer
industry? In this industry he is known less for his innovations
than for tactics such as sabotaging Java and cutting off
Netscape's air supply. He has done the industry and consumers
immeasurable harm, for example, by freezing the development
of web browsers. Here's an idea for Gates: Unfreeze the web
browser. Take web browsing to the next level. Start by
implementing SVG, the W3 standard for vector graphics, in IE.
- 3
- Handling of DST in javaStefan Ram wrote:
> Raymond DeCampo <email***@***.com> writes:
>
>>Perhaps, but that is not something the government can easily
>>legislate nor enforce. (Do you really want the time police
>>checking to see if you are working an hour later?)
>
>
> Something like this is done here for the closing-time of
> stores. So, since the government already enforces
> opening-times and closing-times of stores, they could change
> these and they could change to times for schools, universities
> and their own agencies. Some other institutions then might
> follow.
>
By "here", I assume you mean Germany, based on what you wrote below.
There are no such laws in the US with the exception of some states that
have "blue laws" that only apply on Sundays.
Your suggestion sounds like a nightmare where you never know what is
going to be available when.
>
>>There is nothing sacred about the time zone.
>
>
> It is only that, given two time stamps of the legal time for
> a location in Germany, like
>
> 2005-07-10T21:38:10 and
> 1960-07-10T21:38:13
>
> it would be a typical programming task to write a routine
> that can calculate the difference between them in seconds.
> And this would be much more easy, without the need to have
> to find out all details of regulations for DST in Germany.
>
> After WWII, in Germany, there were several different zones
> controlled by different countries and some details for the DST
> differed between these zones. In one zone, there was a special
> DST with two hours added for the mid of summer. Then there are
> reports that there were years with DST even in winter. And so
> on.
>
> All these special regulations make it very difficult to
> write such a routine.
>
This is why any environment worth its salt has these routines available
in a standard library. Asking people to forgo a substantial reduction
in energy use for the (supposed) convenience of computer programmers is
ridiculous. Remember that computers are not an end unto themselves,
they are tools here to serve.
Ray
--
This signature intentionally left blank.
- 5
- Apache Derby : create several instances.Hello.
I am using Apache derby database (Client network).
I see that when I create table it is created on an instance APP
(I don't know if instance is the correct word. sorry of my English).
I see that there are other instances (NULLID, SQLJ, SYS, etc).
Can I create an instance of my own in derby database, and how can I do that
?
(One instance may be used for repository, another for Datawarehouse, ...)
Another thing :
If I create several databases for te above reason (repository may be on
another db), how can I join them, when I am connected to database1, and want
to run a query that join both tables from database1 and database2 ?
Thanks :)
- 6
- sound in JavaHi all!
How is possible to change frequency at java's command beep()? Or
somehow? I need two different beeps in my application. They should be
only a kind of beeps and not playing MIDI or something similar.
Thanks,
Branko
- 7
- JSR 211 CHAPIHello everybody
Does anyone know if some mobile devices implement JSR211?
Thanks for help
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
- 7
- Junit: overriding original class private methodsI have a class that when run will call a private sendEfvent() method
that sends data to an external process. I would like to override that
behavior in testing and just report what is set to avoid the
complications, etc of having to use external processes during unit
testing.
I don't think I can just use an assertTrue() because I also want to
know how many times this private method is called (i.e. is it sending
the correct number of copies out)?
Is there a way I can cause Junit to stop the JRE from calling the true
sendEvent() method and instead call something in my test class??
-Robert
- 8
- Help needed with Realm authorization and AuthenticationDear All
I'm somehow new to weblogic workshop, and i want to have a role based
security for a project.
I used XML based security in web.xml and in web-config.xml . Now i have
a problem, regarding to my project, i want for example, if role A was
logged in, to show him A in one pages of pageflow (for example
index.jsp) and if another role was logged in, not to show him the A.
I mean I want to have access to Roles in the pageFlow, and by knowing
which Role change the sequence of pageflow, do you ever reach this
problem ? any suggestions ?
I think there must be an API for accessing the realm security for
Weblogic.
Shahin Sheidaei
- 8
- 9
- Preverifier error in Sun Java Wireless ToolkitHi ppl,
I'm using an SDK provided by my client and building a MIDlet
application which does ApiCalls on this SDK. I copied all the jar files
from the SDK and put it into my lib folder of my MIDlet project so that
it could add it to the classpath during build. But when I build it
shows the following error:
Error preverifying class com.myClient.sdk.attributes.AttributesMaster
VERIFIER ERROR
com/myClient/sdk/attributes/AttributesMaster.addErrorElements(Lorg/w3c/dom/Document;Lorg/w3c/dom/Node;[Lcom/myClient/sdk/attributes/model/ErrorSet;)Lorg/w3c/dom/Node;:
Cannot find class org/w3c/dom/Node
If I don't use that particular jar, and the rest of the jars, it
shows this error:
Error preverifying class com.myClient.sdk.call.AddDisputeCall
java/lang/NoClassDefFoundError: com/myClient/sdk/ApiCall
I read that this is because I might be using a class library created
for the J2SE platform and hence it doesn't work for the J2ME Wireless
toolkit which uses a limited JVM and APIs. Is there any way I can merge
it into my MIDlet so that it will use it?
P.S: I'm comparatively new to J2ME :( Also i'm using the Sun Java
Wireless Toolkit 2.3 Beta. Please help...
Thanks in advance,
Sajida Abdul Salam
- 9
- Compiling Java code using Ant within EclipseHi,
I am using Eclipse 3.0 to create a number of Java projects all located
within the same workspace. I had everything building ok but decided to
migrate to using Ant to try and manage things a bit better.
Now when I try and compile my app using Ant it does not find references
to external libraries. Now I suspect I need to specify the classpath in
the build.xml file, but is there a way of telling it to use the set of
libraries I have allready specified via Project->Properties->Java Build
Path->Libraries?
I currently have a build.xml file for each of the projects in my
workspace. Is there a way of creating a build.xml file which invokes
each of these in turn so that I can just do one big build?
Thanks for your help.
Andy
- 10
- Labels and paint questions...I have an applet, here
http://www.aquaticwhirlpools.com/sean/selectMenu.html
What I need is for the select menus to have some space between
them so that I can have the orange/yellow images next to each one.
As you can see, there is a bit of one of the images next to
"by product size" and a full image next to "by model".
The space between the two "by product size" and "by shape" is
created by an empty label. The image is placed in the paint method.
The problem is that without the empty label, the menus have no space
between them, as with "by shape" and "by model". Is there any other
way to create that space... or is there a way to make the images 'paint'
on top of the labels?
Thanks for any help.
- 11
- What is Delegation, versus inheritence, examples in C or C++"Bernard" <email***@***.com> wrote:
> I apologize if this has been brought up here before.
> Searching through the newsgroup I found variants of
> my question, but not exactly what I am thinking about.
>
> I am trying to learn UML from a well publicized book,
> "Instant UML" Wrox press by Pierre-Alain Muller.
>
> While I may admire the book for its conciseness, I
> have difficulty following its examples and explanation
> of Delegation. He explains Delegation mechanism by
> a diagram of client communicates with an interface that
> propagates questions to one or more delegates. It is
> not clear but is on page 53. Next page he has some
> discussion of the "covariance problem" which he discusses
> earlier but never defines, leaving a vague understanding.
> On p54, he also has example of how inheritence is simulated
> by hand using delegation and talks of X-windows which is
> written "entirely in C". There is no example. Where
> ever I was able to understand his discussion, it was
> due to prior knowledge of the field. If some kind
> soul has been able to follow this book and can give
> explanations with reference to page numbers that would
> be very nice.
>
> Thanks++,
I looked for your concept of "Delegation" in the only book that I have
on UML. This is by Craig Larman. Its index does not evennnnn list it.
You should expand your query to other language groups. I can do it
for you. OOP implementation questions have been asked there before
Monica
- 11
- USENIX Security '08 Call For Papers Reminder---------------------------------
Call for Papers
17th USENIX Security Symposium
July 28-August 1, 2008
San Jose, CA, USA
http://www.usenix.org/sec08/cfpb/
Submissions Deadline: January 30, 2008
---------------------------------
Dear Colleague:
I'm writing to let you know that the paper submissions site for the 17th
USENIX Security Symposium (USENIX Security '08) is now open and can be
found here:
http://www.usenix.org/events/sec08/cfp/submit_form.html
Please submit all work by January 30, 2008.
Refereed paper submissions are solicited in all areas relating to
systems and network security, including:
* Adaptive security and system management
* Analysis of network and security protocols
* Applications of cryptographic techniques
* Attacks against networks and machines
* Authentication and authorization of users, systems, and applications
* Automated tools for source code analysis
* Botnets
* Cryptographic implementation analysis and construction
* Denial-of-service attacks and countermeasures
* File and filesystem security
* Firewall technologies
* Forensics and diagnostics for security
* Intrusion and anomaly detection and prevention
* Malicious code analysis, anti-virus, anti-spyware
* Network infrastructure security
* Operating system security
* Privacy-preserving (and -compromising) systems
* Public key infrastructure
* Rights management and copyright protection
* Security architectures
* Security in heterogeneous and large-scale environments
* Security policy
* Self-protecting and healing systems
* Techniques for developing secure systems
* Technologies for trustworthy computing
* Usability and security
* Voting systems analysis and security
* Wireless and pervasive/ubiquitous computing security
* Web security
Please note that the USENIX Security Symposium is primarily a systems
security conference. Papers whose contributions are primarily new
cryptographic algorithms or protocols, cryptanalysis, electronic
commerce primitives, etc., may not be appropriate for this conference.
Submissions are due January 30, 2008, 11:59 p.m. PST
(firm deadline).
For more details on the submission process, please see the complete
Call for Papers at:
http://www.usenix.org/sec08/cfpb/
We look forward to receiving your submissions!
Paul Van Oorschot, Carleton University
USENIX Security '08 Program Chair
email***@***.com
---------------------------------
Call for Papers
17th USENIX Security Symposium
July 28-August 1, 2008
San Jose, CA, USA
http://www.usenix.org/sec08/cfpb/
Submissions Deadline: January 30, 2008
---------------------------------
- 11
- String exceeding length - Getting absolute string lengthHello,
I am having a problem when inputting very long strings into a database.
The application I am writing can use different databases (thanks to
the wonders of JDBC) so this issue has been causing problems on both
Oracle and SQL Server.
Because one of the design objects was to support any JDBC compatible
database, a concern was raised about text widths. It was therefore
decided that the maximum column width for a VARCHAR would be a
configurable value. We theoretically knew that data could be more than
a single line so we introduced a sequence number to allow multiple
rows. (Don't ask me why we didn't use CLOBs instead, this is the
schema I'm stuck with.)
We now need to store base64 data in the same fields. The problem is
that in an example 4000 characters as defined by the Java string
object, its physical size is approximently 4430. This seems to be
because of the amount of mark-up involved, either in the base64 data or
possibly with the text between.
It occurs to me that while a non-ASCII value many be only a single
character in a unicode string, it is 6 characters in UTF-8. Therefore
I'm looking for a way of calculates the absolute length, rather than a
count of characters.
Is this possible or will I have to change the schema?
- 11
- how does picking and intersection works ?hi
I am interested i knowing how does the picking and intersection of shapes.
I am more concerned about picksegment and shape3d intersection. what's the
algorithm used and how effective it is. I am interested in the thoery of
all this than programming.
I am using pick segment to pind the intersection point, I have to find the
distance and than do some maths to find the intersection point, is there
an built-in function for this.
Thanks
sonu
|
| Author |
Message |
Kenneth

|
Posted: 2004-11-30 14:22:00 |
Top |
java-programmer, ADT's vs. interfaces
what is the differences between ADT's and interfaces? also what are
abstract classes? can you also include examples?
thnks
|
| |
|
| |
 |
Chris Smith

|
Posted: 2004-11-30 11:34:00 |
Top |
java-programmer >> ADT's vs. interfaces
Kenneth <email***@***.com> wrote:
> what is the differences between ADT's and interfaces? also what are
> abstract classes? can you also include examples?
ADTs are a theoretical concept used in describing data structures.
Interfaces are part of the Java programming language, and are suitable
(among many other purposes) for describing an ADT.
You seem to not be very familiar with Java. It would be worth your time
to check out http://java.sun.com/docs/books/tutorial/index.html
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
|
| |
|
| |
 |
Kenneth

|
Posted: 2004-11-30 15:55:00 |
Top |
java-programmer >> ADT's vs. interfaces
Chris Smith wrote:
> Kenneth <email***@***.com> wrote:
>
>>what is the differences between ADT's and interfaces? also what are
>>abstract classes? can you also include examples?
>
>
> ADTs are a theoretical concept used in describing data structures.
> Interfaces are part of the Java programming language, and are suitable
> (among many other purposes) for describing an ADT.
>
> You seem to not be very familiar with Java. It would be worth your time
> to check out http://java.sun.com/docs/books/tutorial/index.html
>
you're right, i am not familiar with java. I am getting the hang of it
though. the link you gave me does not seem to have what interfaces or
ADT's are. do you have any other links?
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2004-11-30 19:46:00 |
Top |
java-programmer >> ADT's vs. interfaces
On Mon, 29 Nov 2004 23:55:19 -0800, Kenneth wrote:
> Chris Smith wrote:
>> Kenneth <email***@***.com> wrote:
>>
>>>what is the differences between ADT's and interfaces? also what are
>>>abstract classes? can you also include examples?
(snip explanation)
>> You seem to not be very familiar with Java. It would be worth your time
>> to check out http://java.sun.com/docs/books/tutorial/index.html
>
> you're right, i am not familiar with java. I am getting the hang of it
> though. the link you gave me does not seem to have what interfaces or
> ADT's are. do you have any other links?
Try <http://www.google.com/search?hl=en&q=adt+interface+tutorial>
[ See my response of a few minutes ago. ]
--
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
|
| |
|
| |
 |
Chris Smith

|
Posted: 2004-12-1 0:02:00 |
Top |
java-programmer >> ADT's vs. interfaces
Kenneth <email***@***.com> wrote:
> > You seem to not be very familiar with Java. It would be worth your time
> > to check out http://java.sun.com/docs/books/tutorial/index.html
>
> you're right, i am not familiar with java. I am getting the hang of it
> though. the link you gave me does not seem to have what interfaces or
> ADT's are. do you have any other links?
Yes, it does contain information about interfaces, as well as plenty of
other basic language topics you may encounter. I'm not trying to be
difficult here; it is just not possible for this newsgroup to rewrite
the entirety of a good introduction to Java. You're better off using
the existing material, and the link above is a good introduction.
If you're really anxious, interfaces are discussed under "Learning the
Java Language" in the "Trails Covering the Basics" section. However,
it's obvious that you could benefit from reading the rest of the
tutorial as well.
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
|
| |
|
| |
 |
Kenneth

|
Posted: 2004-12-1 7:56:00 |
Top |
java-programmer >> ADT's vs. interfaces
Chris Smith wrote:
> Kenneth <email***@***.com> wrote:
>
>>>You seem to not be very familiar with Java. It would be worth your time
>>>to check out http://java.sun.com/docs/books/tutorial/index.html
>>
>>you're right, i am not familiar with java. I am getting the hang of it
>>though. the link you gave me does not seem to have what interfaces or
>>ADT's are. do you have any other links?
>
>
> Yes, it does contain information about interfaces, as well as plenty of
> other basic language topics you may encounter. I'm not trying to be
> difficult here; it is just not possible for this newsgroup to rewrite
> the entirety of a good introduction to Java. You're better off using
> the existing material, and the link above is a good introduction.
>
> If you're really anxious, interfaces are discussed under "Learning the
> Java Language" in the "Trails Covering the Basics" section. However,
> it's obvious that you could benefit from reading the rest of the
> tutorial as well.
>
chris, i just wanted a couple sentences(jist) of how ADT and interfaces
are related.
andrew, thnks for the tutorial link. i am reading it right now and i
think this will be sufficient.
thnks.
|
| |
|
| |
 |
Starshine Moonbeam

|
Posted: 2004-12-3 12:31:00 |
Top |
java-programmer >> ADT's vs. interfaces
In article <cogp1v$cku$email***@***.com>, Kenneth
(email***@***.com) dropped a +5 bundle of words...
> what is the differences between ADT's and interfaces? also what are
> abstract classes? can you also include examples?
An abstract class is a class who's only purpose is to be extended.
Public abstract class Book {
}
Public class Fiction extends Book {
}
You can't instantiate an abstract class and if any method is abstract,
the class must be abstract. Unlike an interface however, you can have a
mixture of abstract methods and concrete methods and your variables
don't have to be static final.
With an interface, it's a little different. In java, there is no
multiple inheritance. Classes can use interfaces which have abstract
methods which must be made concrete by all the classes that implement
it. That way you can pass more general variables/methods to more
specific classes that use them.
It's a little light on details I guess but that's the gist of it. If
anyone can add more, feel free.
--
Starshine Moonbeam
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
|
| |
|
| |
 |
Starshine Moonbeam

|
Posted: 2004-12-3 14:25:00 |
Top |
java-programmer >> ADT's vs. interfaces
In article <email***@***.com>, Starshine Moonbeam
(email***@***.com) dropped a +5 bundle of words...
> In article <cogp1v$cku$email***@***.com>, Kenneth
> (email***@***.com) dropped a +5 bundle of words...
>
> > what is the differences between ADT's and interfaces? also what are
> > abstract classes? can you also include examples?
>
> An abstract class is a class who's only purpose is to be extended.
>
> Public abstract class Book {
>
> }
>
> Public class Fiction extends Book {
>
> }
>
> You can't instantiate an abstract class and if any method is abstract,
> the class must be abstract. Unlike an interface however, you can have a
> mixture of abstract methods and concrete methods and your variables
> don't have to be static final.
>
> With an interface, it's a little different. In java, there is no
> multiple inheritance. Classes can use interfaces which have abstract
> methods which must be made concrete by all the classes that implement
> it. That way you can pass more general variables/methods to more
> specific classes that use them.
>
> It's a little light on details I guess but that's the gist of it. If
> anyone can add more, feel free.
Oh before I forget, you can't use extends from an interface. You have to
use implements.
public class BigBooks implements Books {
}
--
Starshine Moonbeam
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
|
| |
|
| |
 |
Xavier Tarrago

|
Posted: 2004-12-3 16:36:00 |
Top |
java-programmer >> ADT's vs. interfaces
ADT & interface are not on the same level.
Abstract Data Type is an extension of a base type. It is a concrete class
that is designed to store coumpounds data for instance a signal, a complex,
a point... It's opposite is an object that have an identity. Two ADT are
equals if their content is equal.
An interface is a technical feature in java to describe an abstract entity.
Two abstract entities are equal if their references are equal (ie if it is
the same object)
"Starshine Moonbeam" <email***@***.com> a 閏rit dans le message de
news:email***@***.com...
> In article <cogp1v$cku$email***@***.com>, Kenneth
> (email***@***.com) dropped a +5 bundle of words...
>
> > what is the differences between ADT's and interfaces? also what are
> > abstract classes? can you also include examples?
>
> An abstract class is a class who's only purpose is to be extended.
>
> Public abstract class Book {
>
> }
>
> Public class Fiction extends Book {
>
> }
>
> You can't instantiate an abstract class and if any method is abstract,
> the class must be abstract. Unlike an interface however, you can have a
> mixture of abstract methods and concrete methods and your variables
> don't have to be static final.
>
> With an interface, it's a little different. In java, there is no
> multiple inheritance. Classes can use interfaces which have abstract
> methods which must be made concrete by all the classes that implement
> it. That way you can pass more general variables/methods to more
> specific classes that use them.
>
> It's a little light on details I guess but that's the gist of it. If
> anyone can add more, feel free.
>
>
>
> --
> Starshine Moonbeam
> mhm31x9 Smeeter#29 WSD#30
> sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
>
>
>
>
>
>
>
>
>
|
| |
|
| |
 |
Kenneth

|
Posted: 2004-12-8 7:31:00 |
Top |
java-programmer >> ADT's vs. interfaces
Starshine Moonbeam wrote:
> In article <email***@***.com>, Starshine Moonbeam
> (email***@***.com) dropped a +5 bundle of words...
>
>
>>In article <cogp1v$cku$email***@***.com>, Kenneth
>>(email***@***.com) dropped a +5 bundle of words...
>>
>>
>>>what is the differences between ADT's and interfaces? also what are
>>>abstract classes? can you also include examples?
>>
>>An abstract class is a class who's only purpose is to be extended.
>>
>>Public abstract class Book {
>>
>>}
>>
>>Public class Fiction extends Book {
>>
>>}
>>
>>You can't instantiate an abstract class and if any method is abstract,
>>the class must be abstract. Unlike an interface however, you can have a
>>mixture of abstract methods and concrete methods and your variables
>>don't have to be static final.
>>
>>With an interface, it's a little different. In java, there is no
>>multiple inheritance. Classes can use interfaces which have abstract
>>methods which must be made concrete by all the classes that implement
>>it. That way you can pass more general variables/methods to more
>>specific classes that use them.
>>
>>It's a little light on details I guess but that's the gist of it. If
>>anyone can add more, feel free.
>
>
> Oh before I forget, you can't use extends from an interface. You have to
> use implements.
>
> public class BigBooks implements Books {
>
> }
>
>
>
you explained it clearly. i have a much better understanding now.
i'm glad there are people like you in this newsgroup.
thanks.
|
| |
|
| |
 |
Tony Morris

|
Posted: 2004-12-11 9:20:00 |
Top |
java-programmer >> ADT's vs. interfaces
> Oh before I forget, you can't use extends from an interface. You have to
> use implements.
Not quite true.
interface X extends Y{} // perfectly valid.
It is an unfortunate thing that students are taught that inheritance is
typically from concrete types.
Well designed software typically inherits only from pure virtual types (i.e.
interfaces).
"That is, inheritance from concrete types is evil." (recommended google
search criteria)
In fact, I often write software where I enforce the following rules:
- All classes are declared final.
- All constructors are private.
- All references are of an interface type.
Google for "design by contract" for more information.
--
Tony Morris
http://xdweb.net/~dibblego/
|
| |
|
| |
 |
Frances Del Rio

|
Posted: 2004-12-12 8:12:00 |
Top |
java-programmer >> ADT's vs. interfaces
Tony Morris wrote:
>>Oh before I forget, you can't use extends from an interface. You have to
>>use implements.
>
>
> Not quite true.
> interface X extends Y{} // perfectly valid.
pls, what is the difference between extending and implementing? Can
only concrete classes be extended? could you implement a class instead
of extending it? or is 'implement' only for interfaces? I get confused
betw. abstract classes and interfaces, I find the distinction betw. them
a bit subtle.. an abstract class cannot be instantiated, but it can be
subclassed.. (right or wrong?) an interface cannot be instantiated
either (can it be subclassed)? a FINAL class cannot be subclassed (I
suppose this means it can't be instantiated either..) is all this right??
an instance var's scope is only within object..
a class variable if you change it on one object it changes for all other
instances of the same class from which our object has been
instantiated.. if not specif'd 'static' in decl. it's an instance var by
default (same with methods..) right or wrong?
you can inherit from only one class but from more than one interface,
right? if you implment an interface, it says in my SAMS 'Java 2', 'you
then have to implement all the methods in that interface' (this means
what, exactly? call them? overwrite them? all of them? even the ones
you don't use?) ok, I've been studying last night and today and have
been 'sorting out' my notes, and want to know I got right the most
essential things at least... thank you and everyone else who has
helped me in this ng... :) Frances
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Displaying multiple beans in a struts formI have a list of beans that I retrieved from a database. These beans
are all of the same class. Now I want to display these beans in a
struts form so that the user can modify the data in the beans and save
it back to the database.
Can anyone help with this problem? Is there any sample code out there
that would show how to do this?
Thanks
- 2
- User privilege for getMetaData()When using a basic user with only data query and update privileges I
cannot get column data from the DatabaseMetaData object returned from
getMetaData() (on a connection using the JDBC Oracle thin driver).
When I use the schema owner with full privileges, I get the column
data. What privilege is necessary to get column information from
getMetaData?
- 3
- Fwd: Reminder: Call for FreeBSD status reports!FYI.
Ernst
---------- Doorgestuurd bericht ----------
Subject: Reminder: Call for FreeBSD status reports!
Date: maandag 29 september 2003 23:33
From: Scott Long <email***@***.com>
To: email***@***.com
All,
Don't forget to submit your FreeBSD status reports by Oct 1, 2003!
These reports are open to not only official project memebers, but also
to anyone who is engaged in the development of projects that relate to
FreeBSD. Kernel, userland, ports, documentation, installation,
integration, etc, reports are all welcome and encouraged. Reports should
be 1-2 paragraphs in length, focus on one topic, and should follow the
template that is available at
http://www.freebsd.org/news/status/report-sample.xml.
Submissions must be made to email***@***.com. Submissions for multiple
projects per person are welcome.
Thanks!
Scott Long
Robert Watson
-------------------------------------------------------
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 4
- Reading file lines into large ListHi all,
I have tried posting this problem a few times looking for a solution.
What I have works but is slow.
I have to read unordered data from a text file. Data A has a
one-to-many relationship with Data B, and Data B has a one-to-many
relationship with Data C . Once I find Data A, Data B and Data C could
be anywhere in the file. So I do a RandonAccessFile.seek(0) . This
needs to be repeated hundereds of times for lots of Data B and Data C
relationships.
I'd like to put the file in memory. However, I'm using Scanner and
regex to get the data. I don't think I can run Scanner on ByteBuffer
per line.
So my latest idea is to read the file per line and store it in List. So
a 10,000 line file would have a 10,000 size List. That way I could run
Scanner on the Strings in the List, and Iterate repeatably. The data in
the List would be read only.
Any advice appreciated.
iksrazal
- 5
- 6
- JTextArea append method doesn't always appendI have an application with many custom loggers, and a number of JTextArea
instances for displaying the log entries written to the loggers. Each
JTextArea has a thread associated with it that continuously pulls entries
out of a particular logger and appends that text to the JTextArea. Thus,
each entry written to a logger should show up in the associated JTextArea.
The problem I have is that not all the log entries show up in the text area,
and what shows up and what does not can change with each execution. I've
put print statements before and after the log statements, and before and
after the text area append, and all the expected log entries show up at all
those places. Only in the JTextArea is there variability in what shows up.
Is this a bug in JTextArea, or is this some known behavior?
--
=================
Lee Graba
email***@***.com
=================
- 7
- What is J2EE and an application server?Can someone explain to me what java enterprise edition is?? I've been
looking into the web for some info, but can't really make sense of the
info found. Is there also an tutorial avaible?
I've found one at the java site, but there it was attached to an
application server. And that's my second question, what is a
application server and what can u do with it??
Thnx someone.....
- 8
- "CallByName" in Java?Hello,
is there any way to do the job "CallByName" (as in VB) for Java? We want to
build a hashtable which has the
names of java methodes with their parameters, and later all the methodes
will be called only by
names automatically.
Thanks,
Le
- 9
- Tomcat and QueueHi,
Does any one know about the Coyote connector queue in Tomcat?
How does it work? if a connection gets queued then when does it get a
thread? will it be given preference over the requests arriving after
its arrival??
rgds,
Prashant
- 10
- 11
- JBOSS and IPlanet setupHi,
This is a generic architectural question. I am not sure if this can
be posted at this forum.
I am using JBOSS as App server and Iplanet as WebServer and Reverse
Proxy plugin to forward all the JSP requests from Iplanet to JBOSS.
Both Web Server and App server are on different boxes.
When I request a JSP page, its coming up fine. But if that JSP page
has a 'response.sendRedirect' in it, then its failing to redirect to
the specified page. Instead its going to the webserver root.
Also, this behaviour is not consistent - meaning, sometimes it goes
through and sometimes its coming back to webserver root.
Using 'response.forward' fixed the problem.
But I do not want to use 'forward' in the web application because of
the obvious diff between 'forward' and 'redirect'. (Using the forward
doesn't change the URL and upon browser refresh, the same form gets
submitted again and again)
Are there any alternatives to fix the redirect problem?
Any help is appreciated.
Thanks,
-Sudheer
- 12
- Finding BeanInfo for superclass?Hi,
I'm having a problem or a misunderstanding with BeanInfo.
I have a class Alpha, and a class Beta. Beta extends Alpha. I've
created an AlphaBeanInfo class.
The following code works fine:
BeanInfo info = Introspector.getBeanInfo(Alpha.class);
...
Problem is though when I call the following code:
BeanInfo info = Introspector.getBeanInfo(Beta.class);
...
AlphaBeanInfo is not returned, nor are any of its methods called
(verified via debugging)
Shouldn't this be returned by the Introspector? I could of course write
a BetaBeanInfo, but this seems silly to have to do this.
Any ideas/clarifications?
Many thanks,
M
- 13
- A little optimization question: Local var allocationI often wonder: Does it make any difference in EXECUTION TIME which
version I choose:
#1:
String st;
while (true){
st=dis.readLine();
if (st==null) break;
< do something else >
}
#2:
while (true){
String st=dis.readLine();
if (st==null) break;
< do something else >
}
It's obvious that st is valid outside the loop in #1. But does it get
allocated on the stack for every iteration in #2, or just re-used? If
not, I suppose #2 is preferred as far as limiting the scope, enabling
gc, is an issue.
Chris
- 14
- setCursor() for a ContentPanel
Joana,
I was having a similiar problem and did some searching and found the
following forum:
http://forum.java.sun.com/thread.jsp?forum=57&thread=110928
Basically, I think you need to use setCursor on the GlassPane. I used
the following code in my application and it seems to work.
Component gp = getGlassPane();
gp.setVisible(true);
gp.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
//do your computations
gp.setCursor(Cursor.getDefaultCursor());
gp.hide();
Hope this helps,
Kin Wong
On 14 Jun 2003 09:09:45 -0700, email***@***.com (Joana)
wrotE:
>Hi!
>
>May I ask you for a favour ... a hint would please me a lot ...
>
>When the Graph is completely shown in the window I can see no
> WAIT_CURSOR, but DEFAULT_CURSOR.
>When I move the mouse out of the window and hit back the window area I
>get the WAIT_CURSOR.
>
>Could You please tell me, where is my bug or better what should I do,
>to get the WAIT_CURSOR during the graph computing process
>
>Thanks a lot for every single answer!
>
>Best regards,
>Joana
- 15
- jxta in subnetHallo,
i have a broblem with the jxta technology. I build up a testbed
consisting of a server a router and two clients. The router is
connected to the two clients and the server. Any connection from one
client to another or from one client to the server goes through the
router. Client 1 is configured with ip 192.168.100.1, client two with
172.16.0.1 and the server with 10.0.0.2. So the router routes for
three different subnets. No machine has access to the another (except
the router). There is also no connection to the internet.I wrote an
application built on jxta. The application runs on the server and the
two clients. I configured the peers as rendevouzs and added to every
peer the ip's of the two others to the list of known rendevouzs peers.
When i run my application, the peers can find each other, BUT it needs
a lot of time, somtimes about 10 miutes. I cannot understand this,
because the peers know each other by the list of known rendevouzs. How
can i improve the time the peers need to find each other? I think my
configuration settup is ok (, otherwise the peers never would find
each other?).
Can anyone help me ?
Michibeck.
|
|
|