| stdout being redirected to an open file? |
|
 |
Index ‹ java-programmer
|
- Previous
- 2
- Where can i download the local oracle client?Hi
I want to install oracle client in order to connect Oracle(9i)
database from local web server.I used to go to this
<a href="http://otn.oracle.com/software/index.html">oracle download
link </a>.But i dont know which is the suitable one.Could anyone tell
me?
Thanks
Ricky
- 2
- Java programs won't install on HP machineTrying to gather as many details as I can on a particular problem I'm
having right now. Just wanted to post what I have so far in case
anyone out there sees a light go off.
My company sells a java (version 1.4.2) based software package. We
use InstallAnywhere to install. Really haven't had a problem with our
installs on any flavor of Win machines to date.
A customer running Win98 SE on an HP machine (I'll get a model # asap)
calls today and says the installation program hangs his machine
completely after extraction part of the install.
We look at some install log data and it indicates that everything
extracted to Windows temp folder ok. From there the log says "starting
java..."
My understanding is what should happen at this point is the install
process is supposed to start a bundled JVM (i assume in the contents
extracted to the temp folder) and run a .jar file that completes the
installation process. It hangs the machine shortly into this java
part though (the last thing it tried to do is "UI mode set
to"......and off to oblivion...
We eliminated some known issues at this point. Minimum direct X
version to run InstallAnywhere installs is 8.1. Customer has 9.0
installed. All Win updates complete. No viruses on machine.
Anti-virus software disabled for the install. No video driver issues.
These are all things InstallAnywhere tells you to watch for.
Additionally, the install file is not corrupted (same file installs
fine on another machine).
We thought we'd install a current JVM on the machine for sh*t's and
giggles because I believe InstallAnywhere will use it if present.
Downloaded the latest from Sun and the install hangs the machine in
the same manner as our IA installer.
This machine appears not to be able to run java programs at all. What
gives?
- 2
- Tomcat5.5 queryHi,
I have installed tomcat5.5.
In the tomcat docs it is recommended that i install Ant build tool as
well as Concurrent Version System (CVS) too.
Can someone tell me, how much neccesary are these to install and use?
How it can help me for developing my application?
- 3
- how does ANT work?On Fri, 11 Jul 2003, Roedy Green <email***@***.com> wrote:
> Does ANT work by parsing any changed file to discover the
> dependencies?
Depends on the task you are talking about. For most tasks, including
<javac> it does not. <javac> simply compares the timestamps of *.java
and *.class and compiles those files with outdated .class files.
<depend> in turn parses the compiled .class files to discover
dependencies, then compares the timestamps of .class files to the
.java files and deletes all .class files that are older then the .java
files of any class they depend upon. <javac>'s timestamp checking
after that is going to succeed then.
There are third party tasks like <javamake> - see Ant's external tools
page - that can do that in one step and are more sophisticated.
> Can it be relied on to recompile everything that needs it if a
> static final changes?
No.
And a static final primitive will be inlined by the compiler so even
<depend> will not detect the change (as it wouldn't detect the
dependency) - not sure whether <javamake> would.
> Is ANT smart enough to avoid loading the compiler over and over for
> each file; i.e. does it invoke it only once for the whole shot?
It will invoke the compiler exactly once per <javac> task (that
actually needs to compile at least one file).
Stefan
- 4
- struts templates - template is inserted in wrong placeJust wondering if anyone else has run into this issue. I am using
templates in struts and I use the same template for every form. I
insert a page in one spot on my template file and it works fine on my
machine. When I upload it to the server, it suddenly starts inserting
the page about a quarter of the way down the template instead of where
it is defined to go. Has anyone else experienced this?
- 4
- please inform a newbclass A{
class B{
boolean flag;
int value;
}
B b[] = new B[10];
public A(){
for (int i = 0; i < 10; i++)
b[i] = new B();
}
}
I'm wondering if there is a more elegant way to instantiate the elements of
b[] than the 'for' loop.
- 4
- convert hex to longHey
midp 2.0
J2ME Wireless Toolkit 2.2
JDK 5
Long id;
String arg1 = "0b"; //arg1 can also have values like "01", "0a" etc
id = Long.parseLong(arg1);
This converting isn't working with "0b" or "0a"... but I've read in the
documentation of jdk5 that this parseLong is overloaded:
public static long parseLong(String s, int radix), and I guess this is the
correct method to use, but I'm not sure what the second parameter (radix) of
this method is?
Jeff
- 6
- SAX reserved XML char encoding/decodingHi,
Is there an option to get the Sax parser (java 1.5) to convert xml safe encoding
sequences back to the original character, as returned by the Contents() event?
For example "<" back to "<" ?
Thanks.
Ben
PS (and what's with comp.lang.java.api? - nothing seems to register there since
sept 2004. , including my post of this question there)
- 8
- FirewireHello everyone,
Does Java's API include Firewire support? I have been doing some googling
and all I can find are projects that have been started but not completed.
I'm looking for Firewire support for both Linux and Windows.
Anything information or tips would be great, thank you.
---
Alvn Beach
Email: email***@***.com
Website: http://users.eastlink.ca/~alvinbeach
- 8
- Please Help - Java, Database oracle or sybaseHi All,
I am a java programmer used to using oracle database.
In my new job, we have oracle plus sybase database. Some applications
use oracle and some use Sybase. I am writing framework, so it can be
used by all applications.
Is it possible to write connection code, independent of database
driver, by just using java.sql package.
One problem I am seeing in sql package is java.sql.types does not have
cursor. I don't know how sybase returns a resultset but java.sql.other
does not look very promising.
Could any body suggest a general solution using two different database.
Thanks a lot,
Jill.
- 8
- JRE 5 on Freebsd 6fbsd6-Mimi# rpm --install jre-1_5_0_05-linux-i586.rp
error: failed dependencies
glibc >= 2.1.2-11 is needed by jre-1.5.0_05-fc
sh-utils >= 2.0-1 is needed by jre-1.5.0_05-fc
fileutils >= 4.0-8 is needed by jre-1.5.0_05-fc
gawk >= 3.0.4-1 is needed by jre-1.5.0_05-fc
textutils >= 2.0-2 is needed by jre-1.5.0_05-fc
/bin/sh is needed by jre-1.5.0_05-fc
/bin/sh is needed by jre-1.5.0_05-fc
/bin/sh is needed by jre-1.5.0_05-fc
this is what I get when try to install the rp
jre-1_5_0_05-linux-i586.rp
I have mounted linprocfs my linux-base is up to date 8.8.0.
I have Javavmwrapper that says that i have no conf file i
/usr/local/et
I do not need JDK I have a jar file i want to start thats al
please help[i:cb2c6e6b3c][/i:cb2c6e6b3c
Sent via Archivaty.com
- 11
- Tomcat 5.5 - IIS 6 using isapi_redirect.properties
I am trying to use IIS 6.0 as a front end for Tomcat which I have
working as expected. The issue I have is that I can only get it
working using the registry settings and not using
isapi_redirect.properties. We will have several sites and I want them
to independent of each other and I am not sure how to do this without
using the isapi_redirect.properties files. Please advise. Thanks in
advance.
- 11
- Mutliple thread access to object methodCan multiple threads access the same object public void method
simultaneously? Or does the method need to return for each thread? I guess
not because that's what public synchronized void is for?
- 15
- Query in Prepared statements cachingHii ,
I am using Db2 V 7.1 on ZOS
I have the following Java Code
query.append("insert into ");
query.append(schemaName+".EMAIL_DATA ");
query.append("(EMAIL_NBR, DT_FIRST_SENT,SUBJECT
,EMAIL_ADDR,EMAIL_DTL,ER_NBR, DT_CREATED,DT_LAST_SENT)
values(?,?,?,?,?,?,?,?) ");
prepStmt=connect.prepareStatement(query.toString());
I want to know whether the above query would be cached in the data
base server since apart from the using the standard ? to give various
parameters at runtime , I am also picking up the schema at runtime and
not hardcoding.
But obviously the schema name will remain the same for all the calls
to the DB.
I donno whether due to the usage of a Java Variable in the query at
runtime whether this will be cached or not ?
Can some one please throw some light on it ?
Regarda,
-Neeraj
- 16
- Read-only methods for webservices with JavaBeansHello,
unfortunately i wrote this thread before in german, so i will do this
in english again.
Here we've got a standalone application which stores several data on
an SQL Server. In the last time we added a webservice to display and
sometimes modify several information from this data via webpages
(JSP). Many functions are already implemented and working fine. We
have webservicemethods returning objects stored in javabeans. To get
the data out of the beans, we have to use some get methods. Some data
is "READ-ONLY", so we don't want any set method there. The problem is:
If we don't write some "dummy" Set-Methods, wscompile will not
generate the needed get-Methods. We find that writing dummy-methods is
not a very fine way.
Is there another easy posibility to make the getMethods available for
the client without writing dummy set methods like this?
// That's what we don't need but have to write in order to make
wscompile ready to produce the getMethod
public void setName(String value) {}
// That's what we need only
public String getName()
{
return name;
}
Greetings and thnx a lot!
Andreas
|
| Author |
Message |
bjhartin

|
Posted: 2005-10-24 23:56:00 |
Top |
java-programmer, stdout being redirected to an open file?
All,
Does anyone know why text sent to stdout might intermittently get sent
to an open file? I have some code which writes data to a file and logs
its activity using log4j. On Friday, the log statements began to
intermittently appear in the file. I know the following things are
true:
* The code did not change
* The configuration did not change
* The log4j Logger is mapped only to a ConsoleAppender, i.e. log
statements are written only to stdout
* The name of the file is always unique
Here is the code:
//Create a unique filename for the order
filename = "Order " + orderId;
//Create the file
logger.info("Creating file " + fileName);
File file = new File(fileName);
FileWriter fw = new FileWriter(file);
logger.info("Writing File Content ");
fw.write(fileContent + System.getProperty("line.separator"));
logger.info("Closing File ");
fw.close();
It smells to me of an O/S or app server problem in which the file
handle for the open file is being provided for calls to stdout. Has
anyone ever seen this?
Thanks,
Brian
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-10-25 12:40:00 |
Top |
java-programmer >> stdout being redirected to an open file?
On 24 Oct 2005 08:55:57 -0700, email***@***.com wrote, quoted or
indirectly quoted someone who said :
>Does anyone know why text sent to stdout might intermittently get sent
>to an open file? I have some code which writes data to a file and logs
>its activity using log4j. On Friday, the log statements began to
>intermittently appear in the file.
See http://mindprod.com/console.htm
You can dynamically redirect System.out and System.err.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-10-25 18:38:00 |
Top |
java-programmer >> stdout being redirected to an open file?
On Tue, 25 Oct 2005 04:40:27 GMT, Roedy Green
<email***@***.com> wrote, quoted or
indirectly quoted someone who said :
>>Does anyone know why text sent to stdout might intermittently get sent
>>to an open file? I have some code which writes data to a file and logs
>>its activity using log4j. On Friday, the log statements began to
>>intermittently appear in the file.
>
>See http://mindprod.com/console.htm
>
>You can dynamically redirect System.out and System.err.
oops, did it again. That should be.
http://mindprod.com/jgloss/console.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
|
| |
|
| |
 |
bjhartin

|
Posted: 2005-10-25 23:50:00 |
Top |
java-programmer >> stdout being redirected to an open file?
Hmm, I'll check to see if any other code is redirecting stdout. I
would assume that this is done per-JVM and not per-thread, right? This
code is running as part of a POJO that backs a stateless session bean,
so there are definitely other threads going in the JVM. However, I'm
not sure how they could redirect stdout to the particular file I'm
writing to, since it is created with a unique name each time the method
is called.
Thanks for your reply.
Brian
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-10-26 12:34:00 |
Top |
java-programmer >> stdout being redirected to an open file?
On 25 Oct 2005 08:49:42 -0700, email***@***.com wrote, quoted or
indirectly quoted someone who said :
> I
>would assume that this is done per-JVM and not per-thread, right?
there is only one static copy of Sysout.out.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-10-26 12:35:00 |
Top |
java-programmer >> stdout being redirected to an open file?
On 25 Oct 2005 08:49:42 -0700, email***@***.com wrote, quoted or
indirectly quoted someone who said :
>Hmm, I'll check to see if any other code is redirecting stdout. I
>would assume that this is done per-JVM and not per-thread, right? This
>code is running as part of a POJO that backs a stateless session bean,
>so there are definitely other threads going in the JVM. However, I'm
>not sure how they could redirect stdout to the particular file I'm
>writing to, since it is created with a unique name each time the method
>is called.
so you don't really want to mess with Sysout. You simply want to
direct some encoded character output to a file. For how to do that see
http://mindprod.com/applets/fileio.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
bjhartin

|
Posted: 2005-10-27 1:08:00 |
Top |
java-programmer >> stdout being redirected to an open file?
Perhaps I haven't explained the problem well. We're not having trouble
writing to a file. That part is fine. The problem is that in addition
to the expected data, the files intermittently contain data that was
destined for stdout. You can run the same code ten times and see the
problem only once or twice. In addition, the log statements which
unexpectedly appear in the file are often out of order, as if they're
being 'held up'. This does *not* reflect multithreading, because each
file is given a unique name created from a database sequence.
Since my original post I have discovered that other code on this box
has had trouble writing to stdout. Sometimes the output just vanishes,
while in our case it shows up in a file. I think we have a problem
with the app server, JVM or O/S.
Thanks for your replies.
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-10-27 6:43:00 |
Top |
java-programmer >> stdout being redirected to an open file?
On 26 Oct 2005 10:07:45 -0700, email***@***.com wrote, quoted or
indirectly quoted someone who said :
>In addition, the log statements which
>unexpectedly appear in the file are often out of order, as if they're
>being 'held up'.
This sounds possibly like you are logging with many threads but your
logging class is not thread safe. See
http://mindprod.com/jgloss/threadsafe.html
As for System.out stuff getting mixed in, your first job is to track
which line in the code could have generated those lines, and make sure
System.out is not redirected at that point or if those lines are being
logged instead of System.outed.
Unless you are using some home-grown spooling software, I would put
blaming generic spooling low on my list of suspects. The problem would
likely show up all over the place, not just this program if that were
the source of the problem.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
bjhartin

|
Posted: 2005-10-28 0:17:00 |
Top |
java-programmer >> stdout being redirected to an open file?
>This sounds possibly like you are logging with many threads but your
>logging class is not thread safe.
As I mentioned, we are using log4j with no customizations. log4j
claims to be thread-safe. The log4j code has syncrhronized blocks of
code for accessing resources for which there might be contention. At
any rate, our log4j configuration specifies only console logging, for
which contention should not be an issue, right?
>As for System.out stuff getting mixed in, your first job is to track which line in the
>code could have generated those lines, and make sure System.out is not
>redirected at that point or if those lines are being logged instead of System.outed.
I did a search and System.setOut appears nowhere in our codebase, nor
in the log4j code. The code which generates the lines in question is
simply that I described in my first message, i.e. simple calls to
log4j's Logger.info() method.
>Unless you are using some home-grown spooling software, I would put
>blaming generic spooling low on my list of suspects. The problem would
>likely show up all over the place, not just this program if that were
>the source of the problem.
As I mentioned above, I recently discovered that other java apps on
this machine *are* having intermittent trouble writing to stdout.
However, the common thing among these apps is that they run under
Weblogic 8.1. Each app runs in its own JVM, i.e. its own Weblogic
server (keep in mind Weblogic servers are virtual).
Thanks for your help.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- BDK for J2SDK 1.4 onwardsDoes anybody know about BDK for J2SDK 1.4 onwards?
If yes please let me know the website or downloads
Regards
MAnjiri
- 2
- Squeeze tabs closer together in JTabbedPane??Is there a way to squeeze the tabs closer together in a JTabbedPane? I
noticed there is some free space in the tab itself to the right of the
text in the tab. Don't want to overhaul the look of the GUI. Just want
to move the tabs closer together. An option I thought of, don't know
if it's the best, is to make the tab text image icons and show the
icons instead of text. Don't know if this will free up space.
- 3
- JAXB unmarshalling - missing referenced objectsHi
I've come upon a problem which I just can't figure out.
So, here's a little about the context. An enterprise-application is
running on a Java EE-server. Some POJOs are annotated as Java
Persistence entities aswell as JAXB-annotations to create wanted XML-
representation for them. All annotations are added manually (meaning
no auto-generated classes/factory). A Servlet acts as an interface
against an Ajax-enabled webpage. The script in the web-page retrieves
xml-representation from the servlet and should also send xml back on
the same form for persisting on the server. The script returns the xml
in string-representation.
And here's the problem. Marshalling to xml works just as it should.
The script returns an xml in the exact same form, but the
unmarshalling of it does not produce what is expected. An object for
the main class is created, however any referenced objects are not
created. Primitive fields are generated correctly. No error is thrown.
Simplified, this is how it looks:
---List.java---
@XmlRootElement(name="list")
@XmlType(name="ListType")
@Enitity //JPA
public class List implements Serializable {
private Long id;
private weekNumber;
private Set<Element> elements;
@XmlAttribute(name="weeknumber", required=true)
public void getWeekNumber() {
//...
}
@XmlAttribute(name="id", required=true)
public void getId() {
//...
}
@XmlElementWrapper(name="elements", nillable=false)
@XmlElementRef
@ManyToMany( //JPA
//...
)
public void getElements() {
//...
}
}
---Element.java---
@XmlRootElement(name="element")
@XmlType(name="ElementType")
public class Element implements Serializable {
//...
private Long id;
@XmlAttribute(name="id", required=true)
public void getId() {
//...
}
//...
}
---xml---
<?xml .....>
<ns2:list ..... weeknumber="3" id="21">
<elements>
<ns2:element ... id="42">
...
</ns2:element>
<ns2:element ... id="43">
...
</ns2:element>
...
</elements>
</ns2:list>
In this example, a List-object would be created by the unmarshaller,
however the referenced elements of class Element will not. And I have
no idea why! The package contains a jaxb.index with all class names,
and I also added an ObjectFactory, but the result was the same. Here's
the unmarshalling:
private <T> T recieve(Class<T> classType, String xml) {
JAXBElement<T> obj = null;
try {
JAXBContext jc =
JAXBContext.newInstance(classType.getPackage().getName());
Unmarshaller um = jc.createUnmarshaller();
obj = (JAXBElement<T>)um.unmarshal(new StreamSource(new
StringReader(xml)));
} catch(JAXBException jex) {
jex.printStackTrace();
}
return obj.getValue();
}
I hope someone has something wise to say about this. I've really
twisted my brain to try to figure it out!
Thanks.
- 4
- Apache Project Xalan XML/XSLT Processor Is Good, But Its Extension Not Work on Netscape/IEFirst, let me say I couldn't find a group discuss
XML/XSLT. So I only choose the closest groups to
post this message.
Here is part of my *.xsl file
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan"
xmlns:my-javascript-ext="my-ext1"
extension-element-prefixes="my-javascript-ext"
version="1.0">
<xalan:component prefix="my-javascript-ext" elements="whichever"
functions="hello">
<xalan:script lang="javascript">
function hello(w) {
return ("Hello " + w + "!");
}
</xalan:script>
</xalan:component>
....
<xsl:if test="function-available('my-javascript-ext:hello')">
<xsl:value-of select="my-javascript-ext:hello('World')" />
<br></br>
</xsl:if>
....
And this is part of my *.xml file:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<?xml-stylesheet type="text/xsl" href="http://myHostName/XML/myfile.xsl" ?>
....
This is working greate for an XML file iff (if only if) I type
java org.apache.xalan.xslt.Process -in myfile.xml -xsl myfile.xsl
or
java org.apache.xalan.xslt.Process -in myfile.xml
That is wonderful, when I set CLASSPATH with
/usr/local/xalan/bin/xalan.jar:/usr/local/xalan/bin/bsf.jar:/usr/local/xalan/bin/js.jar
So I can make my own extension to call my JavaScript functions and/or
Java Class methods inside a XSL file with XALAN Processor.
But unfortunaely this will NOT work on Netscape, Firefox, IE browsers,
even all these browser support XML/XSLT.
Anyone has some idea how should I make Apache Project XALAN's extension
work on a browser?
Thank Q!
- 5
- comments when decompilingAnother newbie question:
When I decompile Java bytecode, will my comments come back through?
Makes sense that they woudln't, but I just wanted to check.
- 6
- Differences between getImage and createImage and using ToolkitHello,
What are the differences between getImage and createImage,
and what if I want using toolKit - (getImage and createImage are static,
and I didn't find a way to create an Image object from a function of
toolkit).
I need a sample code, please.
Thanks :)
- 7
- Tomcat 4.1.29 connectors on Linux problem ?
Hallo,
I have very strange problem with apache/mod-jk/tomcat installation
on Linux. I have installed very simple test servlet HelloWorld.class.
Well when I try to do some easy stability test and I call this
servlet from the same IE browser session more times I bring whole
tomcat to the state when it is not responding any more, even other
servlets from other sessions are not served. I have allready tried to
change acceptCount= and connectionTimeout= (even 0,-1) in server.xml
but without any satisfactionary results. Only the complete restart of
tomcat helps afterwards (!).
Thanks
Jan Kopinec
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<Service name="Tomcat-Apache">
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="300" debug="0" connectionTimeout="5000"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<!--
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="300" debug="0" connectionTimeout="5000"
useURIValidationHack="false" disableUploadTimeout="true" />
-->
<Engine name="Standalone" debug="0" defaultHost="localhost">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="/var/log/jakarta/" prefix="apache_log." suffix=".txt"
timestamp="true"/>
<Host name="localhost" debug="0" appBase="/home/tomcat"
unpackWARs="true" autoDeploy="true">
<Context path="/test" docBase="test" debug="0"
reloadable="false" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="/var/log/jakarta/" prefix="localhost_test_log."
suffix=".txt"
timestamp="true"/>
<ResourceLink name="linkToGlobalResource"
global="simpleValue"
type="java.lang.Integer"/>
</Context>
</Host>
</Engine>
</Service>
</Server>
- 8
- Running Ant from BATCH FILESHi
Does anyone know is it possible to conditionally continue with a batch
file depending on the result of an ant script.
I want to only continue with the batch file if the ant command was
succesfull - otherwise abort the script for user to see the error.
Thanks in Advance.
- 9
- new to java, need helpSirs/Madam
I encounter the problem on date field.
Sometimes, when there is no date, then it will return the null object. When
I want to check by
aDate.toString() = "" or null, it throws exception.
How can I ensure they return the value or not.
Please help
- 10
- Chennai - Java/J2EE Urgent RequirementGreetings,
One of the leading software development company is looking for
java/j2ee professional urgently. Interested candidates forward your
resume immediately to email***@***.com
You will be receiving call as soon as you send your resume.
All the best
TimesTickets.Com Team
- 11
- Random Access On a TableHi,
I've got a problem with 2 open Dataset:
That's I had opened a table running an SQL command like this "SELECT *
FROM XXX WHERE YYY=ZZZ" and i want to access to another table with the
keys came from previous ResultSet; BUT I dont want to run an SQL
command ; I'm looking for a command like
setnearest(keylist,keylist,...) then I want read the second table with
a while loop ( ex. (while !eof(second_table))).
Is there a way for me ;)
Thx in advance;
- 12
- Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novellhttp://www.web20developers.com
http://www.web20developers.com/index.php?option=com_content&task=view...
Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell
AJAX - microlink pattern tutorial : A microlink is a link that opens up
content below it.
Ajax BBC News RSS Reader : demo by Nigel Crawley
AJAX Chat in Python with Dojo : at AquaAjax
Ajax Chess : multiplayer chess
Ajax examples at BackBase : examples demonstrating several aspects of
the Backbase technology.
Ajax examples at Rico : Inner HTML, JavaScript updater etc.
Ajax examples using ColdFusionMX, SQLServer, SOAP : Contact Manager,
NOAA 7 Day Forecast code and demos.
Ajax Feed TV : News feed
Ajax inline dictionary : Highlight any text on this site then right
click. A tooltip containing the definition of the selected word should
show up.
Ajaxload : Ajax loading gif generator.
Ajax Login Demo : Creating a secure login system using XMLHttpRequest
Ajax Newsletter Signup : A newsletter signup form that shows Thank You
on the same page.
ajaxProject : Project Management applicaiton with rich UI
Ajax Rater : A star rating system that uses Ajax.
AJAX-S : An Ajax-based slideshow system.
AJAX Spell Checker : spell check text / form content.
Ajax Toolbox : Tools for the Ajax Developer
Amazon Catalog Tree : Amazon Catalog Tree
Amazon Zuggest : Amazon product suggestion (like google suggest)
Askeet by symfony : Digg-like AJAX interactions; open source
Backbase - Ajax Demos : Ajax demos at BackBase
Basic Ajax Examples : Ping, track changes, drop down, Google suggest
hack etc at Clearnova
Behaviour : Fading lists, Sortable lists, Dropout boxen, Shaky lists
chat.app : ajax chat
Chihuahua Word Puzzle : daily word puzzles
Coloir : Ajax Slideshow
DHTML arcade/action games : a collection that demonstrate the power of
DHTML
DomAPI : Windows Desktop, Outlook-like, RSS Reader
Drag and Drop Shopping Cart Demo : at CyberDummy
Easy AJAX inline text edit 2.0 : edit a piece of text inline
Gmail Style Check Username AJAX Demo : at CyberDummy
Google Web Toolkit Example Projects : Hello World, Dynamic Table,
Desktop App Clone etc
GreyBox : Pop up window using idea of light box.
FiftyFourEleven: Ajax Examples
IntuiCat - ajax Catalogue : Ajax-based Catalogue Demo
jsLINB programming demos : LINB(Lazy INternet and Browser)
JSlog : Ajax logging tool.
JS/UIX Unix Shell : JS/UIX is an UN*X-like OS for standard
web-browsers, written entirely in JavaScript.
Lace : free web chat application
Lightbox : simple, unobtrusive script used to overlay images on the
current page.
Leightbox : Light Box with inline div's instead of AJAX calls.
Live Quote Demo : Simple way of creating an updating stock quote table
in ajax.
Magnetic Poetry : drag and drop poetry
Metatron Chat Engine : PHP/MySQL/JavaScript powered chat engine
Monket Calendar : online calendar
Multi List Drag Drop Demo : at CyberDummy
NetDirector : open and extensible framework for managing configurations
of common open source network services.
nexImage : Image processing demo
Opera Platform : Enabling AJAX applications on mobile phones
Orbeon examples : various examples illustrating the capabilities of
OPS, from the OPS Tutorial examples to XForms examples
OVO Suite : Online Virtual Office : virtual office limited demo
phpFreeChat : php Free Chat
S5: A Simple Standards-Based Slide Show System : S5 is a slide show
format based entirely on XHTML, CSS, and JavaScript.
script.aculo.us Reflector : image reflector script that uses uses
opacity-based fades
Slider Bar Demo : at CyberDummy
SmallestAjax : Smallest Ajax example in the world?
Spell Check demo : by Primal Grasp
Super Maryo World : Japanese game demo
Tacos : Tacos provides a library of useful Tapestry components. This
application provides some examples to get you started.
theList : to-do list / bug-tracker
ThickBox : ThickBox is a Lightbox than can show html pages as well as
images.
Tooltip.js : Tooltip.js is a simple class to make it possible to add
tooltips to your page.
Treehouse Chat : ajax chat
Tudu Lists : open-source to-do lists
WeBoggle : Ajax Boggle
XHTML live Chat : ajax chat
YahooSearchAsYouType : Yahoo search as you type
ZK Demo : demo programs for various components
- 13
- simple beginners questionHello,
I just got the SUN Java IDE. (Netbeans IDE 3.5.1)
Very very nice, and I worked myself through the tutorial (about making a
colorswitch).
Now, When I compile it gives no errors at all. So far so good.
But when I want to execute, it askes to "set project main class".
The only option it displays is the default project. But the "okay" button
won't highlight.
I cannot select anything else, nor can I roam directories to select
anything.
Can someone please help me out.
I feel kinda silly not even knowing how to start a kind of hello-world
applet. ;-)
best regards,
martin
- 14
- Layout in J2ME, MIDP 2.0Hi,
I wrote a little Midlet and want to have a StringItem and a TextField
next to each other, i.e. they should be in the same row. After
considering MID Profile I coded my Midlet as listed below.
So in my understanding they should be in the same row. The only
condition, which I cannot be sure of is "this Item has a LAYOUT_LEFT,
LAYOUT_CENTER, or LAYOUT_RIGHT directive that differs from the Form's
current alignment." (MIDP, class Form).
But how can I set the directive of a Form? Or did I misunderstand sth?
Why are the two items not in ONE row?
Thanks in advance!
Best regards, Franz
---BEGIN CODE---
public class Layout extends MIDlet implements CommandListener {
private Display display;
private Form form;
private Command EXIT;
public Layout() {
display = Display.getDisplay(this);
}
public void startApp() {
form = new Form("LayoutTest");
EXIT = new Command("Exit", Command.SCREEN, 1);
StringItem s1 = new StringItem("", "Eingabe:");
TextField tf1 = new TextField("", "", 20, TextField.ANY);
tf1.setLayout(TextField.LAYOUT_2);
form.append(s1);
form.append(tf1);
form.addCommand(EXIT);
form.setCommandListener(this);
display.setCurrent(form);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command command, Displayable
displayable) {
if(command == EXIT) {
destroyApp(false);
notifyDestroyed();
}
}
}
---END CODE---
- 15
- BufferedInputStream vs BufferedReaderHas anyone done any experiments on which is preferable -- putting your
buffering at the BufferedInputStream level or the BufferedReader level
when you have a Reader?
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
|
|
|