 |
 |
Index ‹ java-programmer
|
- Previous
- 1
- <defunct> processesI've got a problem with <defunct> (zombie) processes on Linux...
I'm running child processes using Runtime.exec() and it usually goes well.
But just sometimes (undefined sometimes), process finishes as defunct. Is
there anything I can do about it? I suck out both inputStream and
errorStream, check Process.exitValue(), but it stucks on Process.waitFor().
I even try to suck these streams in separate threads, but it doesn't help.
I had the idea to detect if the process has stucked, and then try from
another thread to Process.destroy(), but it didn't help! Destroy does
nothing, process is still defunct, and waitFor() blocks it again... There
are no more methods in class Process to try, and I've already tried all the
combinations of existing ones...
Newsgroups and web are full of similar questions, but no answer. They all
say that a process is zombie if it is finished, but parent process hasn't
yet read the exit code. But I do read exitValue, and I also do
Process.waitFor(). Can I consider this a bug in Java VM?
Where could find the solution? Which direction should I go? I've been trying
for months, but no results...
Now, this is the latest version of code, as seen on java.sun.com...
{
...
Process process = Runtime.getRuntime().exec(commandLine);
inputVacuum = new TextVacuum(process.getInputStream());
errorVacuum = new TextVacuum(process.getErrorStream());
process.waitFor();
int exitValue = process.exitValue();
...
}
public class TextVacuum extends Thread {
private BufferedReader reader;
private StringBuffer buffer = new StringBuffer();
...
public TextVacuum(InputStream inStream) {
reader = new BufferedReader(new InputStreamReader(inStream));
start();
}
public void run() {
try {
char[] cbuf = new char[4096];
int numRead = reader.read(cbuf);
while (numRead != -1) {
buffer.append(new String(cbuf, 0, numRead));
numRead = reader.read(cbuf);
}
}
catch (IOException e) { }
finally {
try { reader.close(); }
catch (IOException e) { }
reader = null;
}
}
...
}
Thanks!
- 2
- Why does this query take forever?For some reason, I have a rather large (to me) query, with numerous inner
joins, accessing a remote server, and it is taking about twenty times longer
than most queries to the same database.
The query itself is built programmatically within my application, and
example of which is below. I am hoping someone in the group may have some
insight into why this query is so slow, suggesting perhaps a better
structure for it, such that I can go back in and rewrite my code that
creates such queries.
Thanks in advance, Ike
"SELECT DISTINCT
chronology.id,status_id.status,chronology.completed,chronology.completeddate
,chronology.completedtime,activities_id.activity,chronology.activities_activ
ity,chronology.activities_attachment,chronology.activities_available_to_all,
chronology.upcards_firstnamelastname,upcard_id.id,chronology.feedbackrequire
d,chronology.landondate,chronology.hasspecifictime,chronology.datetoperform,
chronology.timetoperform,chronology.duration,chronology.weekends,chronology.
prefix,statusactivitieisid.id,associateresponsible.username,activities_usern
ameid.username,chronology.editFlag FROM
chronology,status,activities,upcards,statusactivities,associates
INNER JOIN status status_id on chronology.status_id=status_id.id
INNER JOIN activities activities_id on
chronology.activities_id=activities_id.id
INNER JOIN upcards upcard_id on chronology.upcard_id=upcard_id.id
INNER JOIN statusactivities statusactivitieisid on
chronology.statusactivitieisid=statusactivitieisid.id
INNER JOIN associates associateresponsible on
chronology.associateresponsible=associateresponsible.id
INNER JOIN associates activities_usernameid on
chronology.activities_usernameid=activities_usernameid.id
WHERE chronology.upcard_id = 18"
- 3
- Applet file readinghello every one;
i m making an applicaion by using java Applet, on which i wish to open
a file from users system, but i dont know how to do this;
is any one have any idea about reading files on users system by using
Applet.
- 3
- AccessControlException
The following is a snippet from a method in an applet RSSTree:
private Document getOPMLFile(String OPMLFileName) {
Document OPMLFile = null;
try {
URL u = new URL(getCodeBase(), OPMLFileName);
try {
BufferedReader br = new BufferedReader(new
InputStreamReader(u.openStream()));
if (br != null) {
try {
Builder parser = new Builder();
OPMLFile = parser.build(br);
}
.
.
.
This method is called out of RSSTree.start(). Document & Builder are
classes in the open source XML processor com.nu.xom. I get the following
error when parser.build(br) is executed:
java.lang.ExceptionInInitializerError
at RSSTree.getOPMLFile(RSSTree.java:63)
at RSSTree.start(RSSTree.java:31)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission
org.apache.xerces.xni.parser.XMLParserConfiguration write)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.System.setProperty(Unknown Source)
at nu.xom.Builder.<clinit>(Unknown Source)
If I replace the bad line with a loop to read the the stream myself and
write out the lines, I get the XML I expect.
Without seeing the source for XOM can someone give me an idea as to why I
have an access problem when going through XOM but don't when the applet
reads directly?
Thanks.
Ken
- 4
- Get installed appHi,
I want to write an app but I'm not sure if I should use Java.
The app is a crossed platform.
My questions:
1.Can Java return me the name/position of install app on the OS it
supports?
2. Does Java supports the following OS:
Unix/GTK+ , Unix/Motif and X11 , Mac OS , MGL and OS/2 ?
TIA.
Eran
- 5
- free E-book linksdear friends,
this link will help full see more number of E-books use this
http://www.apsira.com/etc/usefulllinks.php?keyid=5.1
- 5
- Can we change enctype dynamically??Hello all,
Can we change enctype in the form tag using javascript
document.formname.enctype = 'variable' variable being
multipart/form-data or application/x-www-form-urlencoded. I can do
this in Netscape7 not in IE6 ??
My problem is when I am in the rendered page of type
mulipart/form-data, I have to call another servlet (which process
regular form fields only). When I do that it breaks.
If I use all my servlets to process enctype=mulipart/form-data jsp's
is there any performance or any kind of issues???
Any help will be appreciated.
Thanks - gsr
- 7
- How to speed up the Portal development in eclipseHi all,
I am new in portal development. I am used to Eclipse to write Java
standalone application, but no server contained application such as
servlet.
Is there any way to setup a integrated development environment with
JetSpeed in Eclipse to do portal environment?
Please enlighten me.
Thanks in advance for your inputs and ideas.
Eclifeww
- 8
- Learning Apache Ant, problems with Swing(?)I'm attempting to learn Apache Ant (apache-ant-1.6.1); OS Linux Fedora
Core 2; j2sdk1.4.2_04. I appear to have problems with Ant + Swing, but
each work separately.
The following is my first build file (copied from the web).
<?xml version="1.0"?>
<!-- build file for lesson 1 -->
<project name="tutorial" default="build" basedir=".">
<target name="build">
<javac srcdir="." />
</target>
</project>
Works fine on a simple Java program, e.g.
import java.io.*;
public class Hello {
public static void main(String args[]) {
System.out.println("Hello");
}
}
However, when I progress to anything involving Java Swing, I get
compilation errors like:
[javac] /home/jc/java/classes/anttest/GuiScreens.java: In method
`GuiScreens.main(java.lang.String[])':
[javac] /home/jc/java/classes/anttest/GuiScreens.java:24: error:
Can't find constructor
`javax.swing.JFrame(Ljava/lang/String;Ljava/awt/GraphicsConfiguration;)'
in type `javax.swing.JFrame'.
[javac] frame[j][i] = new JFrame("Config: " + i,
gc[i]);
/This program compiles okay using javac./
(BTW jc@localhost~/java/classes/anttest>$ echo $ANT_HOME
/usr/apache-ant-1.6.1
jc@localhost~/java/classes/anttest>$ echo $JAVA_HOME
/usr/java/j2sdk1.4.2_04)
Any ideas?
TIA,
Jon C.
- 10
- Sunspot: Java Virtual Machine Implementation Vulnerability``SUN Java Virtual Machine Implementation Vulnerability
We have found a security vulnerability in the SUN's implementation of
the Java Virtual Machine, which affects the following SDK and JRE
releases:
- SDK and JRE 1.4.1_03 and earlier
- SDK and JRE 1.3.1_08 and earlier
- SDK and JRE 1.2.2_015 and earlier.
SUN was informed about this issue on June the 2nd 2003 and has already
addressed it in their latest SDK/JRE versions. Please, see Sun Alert
Notification numbered 57221 for more information about the patched
SDK/JRE releases. [...]
The described vulnerability allows for the creation of a malicious
applet that could *completely* bypass applet sandbox restrictions. We
developed proof of convept code which successfully exploited this
vulnerability in Netscape 6 and 7 as well as Mozilla web browsers
environment using vulnerable versions of JRE Plugin. [...]''
- http://www.net-security.org/vuln.php?id=3018
Sun's page on the problem:
``A Vulnerability in JRE May Allow an Untrusted Applet to Escalate Privileges''
- http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert%2F57221&zone_32=category%3Asecurity
--
__________
|im |yler http://timtyler.org/ email***@***.com Remove lock to reply.
- 13
- java/121420: Java applet fails to find class
>Number: 121420
>Category: java
>Synopsis: Java applet fails to find class
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-java
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 06 08:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Andrew Reilly
>Release: FreeBSD 7.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD duncan.reilly.home 7.0-STABLE FreeBSD 7.0-STABLE #3: Sat Mar 1 17:44:29 EST 2008 root@duncan:/usr/obj/usr/src/sys/DUNCAN amd64
A 3G Athlon64-X2.
>Description:
An attempt to use a java client from within firefox,
while connecting to a Juniper ssl VPN service fails with
this message in the java log. (The same service works OK
with firefox on a MacOS-X laptop.):
Java Plug-in 1.6.0_03-p4
Using JRE version 1.6.0_03-p4 Java HotSpot(TM) 64-Bit Server VM
User home directory = /usr/home/andrew
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
load: class de.mud.jta.Applet not found.
java.lang.ClassNotFoundException: de.mud.jta.Applet
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:626)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:780)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2074)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:709)
at sun.applet.AppletPanel.run(AppletPanel.java:363)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Invalid argument
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:519)
at sun.net.NetworkClient.doConnect(NetworkClient.java:155)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:271)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:328)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:284)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:173)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:170)
... 9 more
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
- 16
- optimizing java compilerHi!
As the -O option of javac does nothing and Sun obviously think it can affort
not to do so, which compiler is known to optimize bytecode well? Jikes?
eclipse? What about AspectJ?
Regards
Timo
- 16
- Midlet TextBox-------------------
TextBox tb = new TextBox("title", null, 5, TextField.DECIMAL);
tb.addCommand(new Command("Ok", Command.BACK, 0));
tb.setCommandListener(this);
Display dis = Display.getDisplay(this);
dis.setCurrent(tb);
-------------------
The code above shows (in my mobile Sony Ericsson K300i) a TextBox with 2
Commands "Ok" and "Ok".
If TextBox is empty of chars, first "Ok" is grayed but second not.
I suspect that the first Command "Ok" is part of TextBox (Screen) and
when I press it, it does nothing and commandAction method does not run.
Only when I press the second Command "Ok" commandAction method runs.
So, first "Ok" is "feature" of my mobile or it is in MIDP Specification?
If the second, how can I get access to this Command?
- 16
- Vowel Counter ProgramHey,
I am trying to write a basic program that counts how many lowercase
vowels and non-vowels are in a string. I'm trying to use the
StringTokenizer function. Also, I have to prompt the user again by
using a do while loop. The string ends with the string "DONE".
Here's my code. If anyone could help me, please do. Thanks.
import cs1.Keyboard;
import java.util.StringTokenizer;
class vowelCounter;
{
public static void main(String[] args)
{
// Initialize Answer to Zero
int answer = 1;
do // Start the do loop
{
// Declare all variables and set counters to zero
int aCounter = 0;
int eCounter = 0;
int iCounter = 0;
int oCounter = 0;
int uCounter = 0;
int nonVowelCounter = 0;
String line, temp;
int letter;
StringTokenizer tokenizer;
// Prompt the user for String and read string
System.out.print ("Please enter text (Type DONE to quit):
");
line = Keyboard.readString();
while (!line.equals("DONE"))
{
tokenizer = new StringTokenizer (line);
while (tokenizer.hasMoreTokens())
{
temp = tokenizer.nextToken();
letter = temp.length();
for (int i=0; i<=letter; i++)
{
// Increment vowel counters
if (line.charAt(i) == 'a')
aCounter++;
else if (line.charAt(i) == 'e')
eCounter++;
else if (line.charAt(i) == 'i')
iCounter++;
else if (line.charAt(i) == 'o')
oCounter++;
else if (line.charAt(i) == 'u')
uCounter++;
else
nonVowelCounter++;
}
}
line = Keyboard.readString();
}
// Print out number of vowels and non-vowels
System.out.println ("Number of 'a': " +aCounter);
System.out.println ("Number of 'e': " +eCounter);
System.out.println ("Number of 'i': " +iCounter);
System.out.println ("Number of 'o': " +oCounter);
System.out.println ("Number of 'u': " +uCounter);
System.out.println ("Number of non-vowels: "
+nonVowelCounter);
// Prompt the User About Continuing
System.out.print ("Do you want to continue?
(0=exit/1=continue) ");
answer = Keyboard.readInt();
System.out.println ("");
}while (answer == 1);
}
}
- 16
- Open Source quality better then closed?hi...
i just wondered, does the fact you write a product as open source,
forces you to write better code, in the hopes (fears?) that who ever
may see you code in the future will be impressed (shocked?)
|
| Author |
Message |
mahmar02@gmail.com

|
Posted: 2007-9-1 16:32:00 |
Top |
java-programmer, People Favourite Sites
Dear Friend,
I have found some websites:
for msn messenger,
http://www.hotmailpk.com/
For
entertainment,spotlight.articles,interviews,dailyupdate;Wrestling;gosips;amazing
pictuers;cookingrecipes;lifestyle;
htttp://www.familyandtwist.com/
for sms messeges, smsjokes,
http://www.smstwist.com/
Visit these websites:
For Myspace.Com users visit:
http://www.myspacepk.com/
To learn a language visit:
http://www.codedcode.com/
To download world's best wallpapers for your computer visit:
http://picture-gallery.dnspk.com/
Thanks
|
| |
|
| |
 |
Lew

|
Posted: 2007-9-1 19:48:00 |
Top |
java-programmer >> People Favourite Sites
email***@***.com wrote:
> Dear Friend,
Dear fiend:
Do you read responses to your posts?
--
Lew
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Java Developer - Oracle, UML, Spring, Hibernate -HOT HOT OPENINGSTitle: Java Developer - Oracle, UML, Spring, Hibernate
Company: Trinity Consultancy Services
Skills: Java Developer, Software Engineer, Java Programmer, Software
Developer, Software Programmer, Java Engineer, UML, Hibernate, Spring
- Java Developer, Software Engineer, Java Programmer, Software
Developer, Software Programmer, Java Engineer, UML, Hibernate, Spring
Trinity Consultancy Services is seeking applications from qualified
and experienced software engineers with above skills for various
requirements with their Clients.
Job description and Skills:
* Java Developer, Software Engineer, Java Programmer, Software
Developer, Software
* Programmer, Java Engineer, UML, Hibernate, Spring
* Java Developer- Oracle, UML, Spring, Hibernate
* 4+ years of Java experience
* Oracle expertise
* Knowledge of Spring and/or Hibernate and/or Tapestry
* UML experience
* Experience in creating database intensive applications from the
ground up
* Full life cycle software development
* Design and deliver complex web applications
Trinity Consultancy Services is a leading source of Information
Technology, Engineering and Management Experts that corporations of
all sizes turn to, from Global 2000 corporations to mid-sized and
small organizations nationwide. With the commitment to excellence, is
subtly managed to find, recruit, screen, submit and effectively
organize a technical workforce anywhere in the United States for
various Technical needs of corporation irrespective of its size.
Trinity Consultancy Services is one of its unique kind of the leading
information technology consulting services, and business process
outsourcing organizations committed for excellence.
Trinity provides business consulting, systems integration, application
development, staffing services and managed services to Global 2000
Corporations, medium-sized businesses, and government organizations
throughout the United States.
Trinity can mobilize the right resources, skills and technologies to
enable our clients to reach their dreams by enhanced performance. With
deep industry and business process expertise and broad global
resources, Trinity Consultancy Services is committed for excellence.
Please contact our Human Resource Manager Ms. Ann and send your
detailed Resume with your work authorization status, current salary
and expectations.
Mention the position you are applying in the subject line.
Email: email***@***.com
www.trinityconsultancy.com
- 2
- illegalMonitorStateExceptionhello everybody!
it is well known that one has to be in the monitor of an object to call
myObj.wait(), f. E. by putting it into a synchronize(myObj) block.
my questions:
- is it bad programming style to just catch the exception without doing
the synchronize? because if i do this my program still perfectly does
what it should.
- why does this exception exist?
thanx a lot,
moritz.
- 3
- Make Java plugin SysTray icon visible ?I have a java plugin (for IntExp) browser which is currently for version 1.4.2_14b05
On some machines I noticed that the plugin shows an icon in the SysTray
on others not. How can I hide/unhide this Java plugin SysTray icon ?
Where are the files for this java plugin physically stored (in which directory) ?
Lars
- 4
- Interested in ai project in java ??hi, anybody interested in long term artificial intelligence software
project to develop an intelligent bot for stock market trading in india
?, the project is to be implemented in java using the bea weblogic
application server platform on almost all paltforms
(windows/linux/solaris/bsd), with a capability of handling the trading
accounts of thousands of clients with their perferances. if u r
interested plz let me know. i will put all the project requirements and
tools and programming languages required for the project in my project
page at http://www.aistockbot.ravichoudhari.worldfreeweb.com after 22nd
jan 2k6. if u r interested then send me a mail at
email***@***.com.
- 5
- Reading data from a file using AntHi Everyone,
Im new to Ant and I am encountering some problems.
I have a text file which contains a value in there. I need that value
to be set into another file.
I tried using Javascript but Javascript does not support I/O for files.
Is there any command in Ant that can read a value from a text file (
eg. output.txt ) and then use that value to replace into another file (
eg. jsp ).
Thanks,
Marvin
- 6
- Eclipse 3.08 problemEclipse show not problems, it means when I write code must every time
rebuild to view compiler errors.
How it fix?
- 7
- 8
- Instant dragging from JTreeHi NG,
I cannot drag an unselected element of a JTree. First I have to select
it, then I can drag it. Is there a way to implement that? I think I can
spare that extra click.
Best regards, Christoph
- 9
- Corrupted JPEG: DataInput/OutputStreamHi!
I download a JPG and write it to disk; this is rather old code which
certainly worked. The only thing I'm aware of that changed is JDK 1.4 ->
1.5b2. The written file is corrupt:
URL u = new URL ("http://foo/bar.jpg");
DataInputStream in = new DataInputStream
(u.openConnection().getInputStream());
File f = new File (foo);
FileOutputStream fs = new FileOutputStream (f);
DataOutputStream out = new DataOutputStream (fs);
for (int b; (b = in.read ()) != -1;)
{
out.write (b);
}
in.close();
fs.close();
out.close();
What's wrong? And, can I repair the corrupt files?
- 10
- Phara3omacy news
o C t i q a i I x i i s $9 u 9 (1 Iy 0 h p p i d l r l l s a )
m V m a i I e i m u i m $1 t 05 ( jk 30 r p m i s l l l j s o )
m V q i z a j g j r t a $ f 69 ( l8 10 u p e i p l b l n s x )
Many oth I1 er, Vis nh it our sit Vn e <http://dapi42.taurantome.com>
and Sa Pw ve o 29 ver 5 YL 0%
- 11
- java with swinghello to all,
I have done a java component in Swing
I have included the java component as plugin and
embedded in applet for web based access. But it is not
visible in other clients.
It is visible in Only the server.
I read javaweb start's JNLP can do that (since I
didnot want to install anything jre like in client )
is it possible.
thank you in advance,
vishnu.
- 12
- Creating MouseEventsHi,
I'm trying to dispatch interaction with a touch screen as a MouseEvent, but
I can't get java to register an event on components like the drop-down list
from a combo box, or invisble components that accept normal mouse click
events.
Thanks,
Andrew
- 13
- getting starting with ...... Java
I am newbie of sorts: I'm familiar with java to a some extent, but I have
never had the chance to use it. Which means, I'm not as comfortable with
it as I am with other languages (php,asp,python,c,perl,etc). What is the
best way to get comfortable? Is there any particular direction I should be
heading? I never read a book from start to end, unless it's a novel, so
with other programming languages I've learnt the fundamentals, and the
bits and pieces here and there as needed. Database connectivity, web
(server based) apps are of interest as most work I do is related to these.
Current projects include pulling stats from a database (Postgres,mysql) in
python and, a web credit card payment system in php. Im also maintaining
one of our "legacy" systems in perl.
I have lots of time, and I want use doing something productive in java,
that is my aim.
Directions will be helpfull....
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
- 14
- jsp:setProperty, java.io.File, and I thoroughly confusedHi,
I'm writing a webapp based on JSP technology. I've been doing
some reading and from what I've read, it isn't possible to use
jsp:setProperty to set a File property. So, I created a BeanInfo class
for the Bean I had the File variable in. I also created a class that
extended PropertyEditorSupport to assign the BeanInfo class to the
Bean. But, those don't appear to get called. I CAN, however with
Tomcat 5.0.28 on Windows XP, simply set a File property with
jsp:setProperty. The Bean ends up looking for the file in the Tomcat
bin directory, and I can thus set a relative path to the file. So, I'm
completely confused. What is going on? Is this expected behavior?
Thanks,
Jason Mazzotta
- 15
- log4j - openning a new fileHi,
I need to open a new log file in a specific location in the code, how
can I do that?
Log file size and number of records are unknown so I cannot use this
information.
|
|
|