 |
 |
Index ‹ java-programmer
|
- Previous
- 1
- Online Pharmacy Drugs Medical !Online Pharmacy Drugs Medical
http://pharmacy-stores.easy--forex.com/
4Rx specialize in selling generic versions of top selling
pharmaceutical products bought from licensed wholesalers and WHO/GMP
approved manufacturers. 4Rx are committed to providing quality
generic
medications that deliver the results you need.
With 4RX.com, you can be assured you will get the best possible
service. 4Rx offer fast shipping, secured shopping cart, dedicated
customer support and more! If you are looking for a quality supplier,
4RX.com is the place for you, They guarantee it!
http://pharmacy-stores.easy--forex.com/
BUY DISCOUNT Drugs: A Shopping Guide for online shoppers - This site
has the ambition to be the best online Drugs discount shops guide
totally independent from any pharmacy store. We work hard to get the
best possible discount Drugs information, and deals for online Drugs
buyers. Compare prices of discount Drugs at over 50 online discount
pharmacy retailers. Also, get information about manufacturers'
coupons, other pharmacies products, online shoppers' rights, taxes,
and more.
BENEFITS OF ONLINE PHARMACIES
Lower prices -- Lower drug prices in other countries and lower
overhead
costs compared to bricks and mortar pharmacies often result in
savings
compared to local pharmacy prices. In addition, you can quickly shop
around for the best price online.
Privacy/Anonymity -- You may feel more comfortable purchasing or
asking
questions online (or by fax or phone) regarding certain medications.
However, privacy can be compromised if an online pharmacy is using
your information for other purposes so it is important that the
online
pharmacy has an appropriate privacy policy and upholds it; this is
one
of the things that 1PharamcyGuide.com checks for you and provides in
its Pharmacy Profiles.
Access to more generics -- Due to differences in patent protection,
generic drugs may be available outside the U.S. for drugs only sold
as
brand name versions in the U.S.
Prescription not needed -- Some sites do not require you to have a
prescription at all to order medications -- although this is not
always
wise or legal. Other sites offer to write a prescription for you
based
on an online consultation. In many states this practice is illegal
and
the American Medical Association considers the practice unethical.
Convenience -- If you find it physically difficult to make it to the
pharmacy, live in remote rural areas, or have a very busy schedule,
online and mail-order pharmacies enable you to avoid travel and can
save you time.
Medical information -- Some online pharmacies provide useful
information about medications and diseases as well as links to
medical
resources such as universities, government agencies, and health
associations.
- 1
- JSF tld newbie QuestionHello all,
I was looking at the JSF implementation source and some sample JSPs
from sun. I was wondering how/where the tld files are referenced/found.
For example the tld file html_basic.tld is jarred in the jsf-impl.jar.
In a jsf page it is imported with <%@ taglib prefix="h"
uri="http://java.sun.com/jsf/html" %>. Now there does not seem to be
any reference to the uri mapping in the web.xml or faces-config.xml or
anywhere else to the above uri.
So how does the application know that uri="http://java.sun.com/jsf/html"
references html_basic.tld?
Thanks
- 1
- .Net winforms not that greatFrustrated with java desktop deployment issues , I decided to give .net
a try. I must
say that I don't find the winforms very elegant. at first glance it
seems snappy and look and feel on windows seems right without really
any effort. but beyond that It is very difficult to extend and somehow
it seems like programming in VB.It does not have the coherence of swing
or swt. I guess i am back from that detour. I going to give swt/GCJ a
try this time. I had tried it before and was having a hard time getting
executables with swt. and all of this to get around forcing the user to
download the jre for desktop apps....
- 2
- Coders, find work with Colance! EFl
Webmasters: Colance specialise in connecting your ideas with Freelance Professionals to produce your project.
Programmers: Providing your Service is made easy through Colance. It is free to sign up with no monthly costs
yoOebJpaRfxS
- 3
- Interrupt blocked database queryHello all,
I know this has been discussed often, but I still can not find a good
solution. I want to write an application where in one thread a database
query is run against an oracle db. This query could run into a deadlock
so I have to monitor this in another thread and react accordingly.
I understand that the use of Thread.stop() is strongly discouraged and
not working either. What is the best solution to this? Could I close the
socket and see what is left from the database connection? Where do I get
the socket then? Any other ideas?
Thanks,
Markus
- 7
- a great dealIT'S SIMPLE AND IT'S LEGAL!!!!!!! I found this on a bulletin board
and decided to try it a little while back; I was browsing through
news groups just as you are right now and came across an article
similar to this saying that you could make thousands of dollars
within weeks with only an initial investment of $6.00!! So, I thought
yeah right. This must be a scam, but like most of us, I as curious,
so I kept reading. Anyway, it said that you send one dollar to each
of the six names and addresses stated in the article. You then delete
the first address and change the numbers. (2 becomes 1, 3 becomes 2,
etc.) Place your own name and address on the bottom of the list at
number 6 and post the article to at least 200 newsgroups. (There are
thousands) No catch that was it. Therefore, after talking to a few
people and thinking it over I decided to try it. What do I have to
lose except 6 stamps and $6.00 right? Then I invested the measly six
dollars. WELL GUESS WHAT!!! Within 7 days, I started getting money in
the mail!!! I was shocked. I though it was going to stop but it just
kept coming. In my first week, I made $25.00. By the end of the
second week, I had $900.00. In the third week, I made $5,000.00!!!
It's still growing right now. This is my fourth week and I have made
a total of just over $38,000.00! Moreover, it's still coming in
rapidly. This is certainly worth $6.00 and 6 stamps. I have spent
more then that on the lottery!! Let me tell you how this works and
most importantly why it works... Also make sure that you print a copy
of this article NOW so you can get the information off of it, as you
need it. I promise you that if you follow the directions exactly,
that you will start making more money than you possibly thought just
by doing something so easy!! SUGGESTION: READ THIS ENTIRE MESSAGE
CAREFULLY (Print it out or download it) Follow the simple directions
and watch the money come in! It's easy. It's legal. And your
investment is only $6.00 (plus postage) IMPORTANT: This is not a rip
off; it is not indecent; it is not illegal; and it is virtually no
risk - it really works!!!!! If all of the following instructions are
adhered to, you will receive extraordinary dividends. PLEASE NOTE:
please follow these directions exactly and $50,000 or more can be
yours in 20-60 days. This program remains successful because of the
honesty and integrity of the participants. Please continue its
success by carefully adhering to the instructions. You will now
become a part of the mail order business. In this business, your
product it not solid and tangible, it's a service. You are in the
business of developing a mailing list. Many large corporations are
happy to pay big bucks for quality list. However, the money made from
the mailing list is secondary to the income, which is made from
people like you and me asking to be included to that list. Here are
the four steps to success: STEP 1: Get 6 separate sheets of paper
write the following on each piece of paper "PLEASE PUT ME ON YOUR
MAILING LIST." Now get 6 US 1 dollar bills and place ONE inside EACH
of the six pieces of paper so the bill will not be seen through the
envelope to prevent thievery. Next, place one paper in each of the
six envelopes and seal them. MAKE SURE THERE ARE ENOUGH STAMPS ON
YOUR ENVELOPES. You should now have 6 sealed envelopes, each with a
piece of paper stating the above phrase your name and address and a
$1.00 bill. What you are doing is creating a service. THIS IS
ABSOLUTELY LEGAL! You are requesting a legitimate service and you are
paying for it! Like most of us, I was a little skeptical and a little
worried about the legal aspects of it all. So, I checked it out with
the U.S. Post Office (1-800-725-2161) and they confirmed that it is
indeed legal!!!!! Mail the six envelopes to the following addresses
.
#1) Rupert Springsteen 2103 E. Pine St. Tucson, AZ 85706
#2) Mark Finch 4909 S. Cherry Ave. Tucson, AZ 85706
#3) Joanty Gomez 6131 South Meade Ave. Chicago, IL 60638
#4) Kasey Nicoletti 127 cherry lane Medford, NY 11763
#5) Alexis Beadles 22310 Audrey, Warren Mi, 48091
#6) Shane MacDonald 502-43 Powell St., Vancouver, BC , Canada, V6A 1E9
STEP 2: Now take the #1 name off the list that you see above, move
the other names up (6 becomes 5, 5 becomes 4, etc...) and add YOUR name
as number 6 on the list. STEP 3: Change anything you need to but try
to keep this article as original as possible. Now post your amended
article to at least 200 news groups. (I think there are 24,000
groups) All you need is 200, but remember, the more you post, the
more money you make!! ** EVERYBODY AROUND THE WORLD CAN DO THIS BUT
REMEMBER TO PUT ENOUGH STAMPS ON YOUR ENVELOPES!!!! ** This is
perfectly legal! If you have any doubts, refer to title 18 sec. 1302
& 1341 of the postal lottery laws. Keep a copy of these steps for
your self and whenever you need money, you can use it again and
again. PLEASE REMEMBER that this program remains successful because
of the honesty and integrity of the participants and by carefully
adhering to the directions. Look at it this way, if you are of
integrity, the program will continue and the money that so many
others have received will come your way. NOTE: You may want to retain
every name and address sent to you, on either a computer or a hard
copy and keeps the notes people sent you. This verifies that you are
truly providing a service. (Remember to wrap the $1 bill in the note
to prevent mail theft.) So, as each post is downloaded and the
directions carefully followed, six members will be reimbursed for
their participation as a list developed with one dollar each. Your
name will move up the list geometrically so that when your name
reaches the #1 spot you will be receiving thousands of dollars in
CASH!!!! What an opportunity for only $6.00 ($1 for each of the 6
people listed above) Send it now, add your own name to the list and
you're in business! DIRECTIONS: HOW TO POST TO NEWS GROUPS STEP 1:
You do not need to retype this entire letter to do your own posting.
Simply put your cursor at the beginning of this letter and drag your
cursor to the bottom of this document, and select "copy" from the
edit menu. This will copy the entire letter into the computers
memory. STEP 2: Open a blank notepad file and place your cursor at
the top of the blank page. From the edit menu, select "paste". This
will paste the copy of the letter into the notepad so you can add
your name to the list. STEP 3: Save your new notepad file as a .txt
file. If you want to do your own postings in different settings,
you'll always have this file to come back to. STEP 4: Use Netscape
and Internet Explorer and try searching for various news groups (on-
line forums, message boards, chat sites, discussions.) STEP 5: Visit
these message boards and post this article as a new message by
highlighting the text of this letter and selecting "paste"from the
edit menu. Fill in the subject, this will be the header that everyone
sees as they scroll through the list of postings in a particular
group, click the post message button. You're done with the first one!
CONGRATULATIONS... THAT'S IT! All you have to do is jump to different
news groups and post away, after you get the hang of it, it will take
30 seconds for each news group! **REMEMBER THE MORE NEWSGROUPS YOU
POST IN (MESSAGE BOARDS, ETC...) THE MORE MONEY YOU WILL MAKE!! BUT YOU
HAVE TO POST A MINIMUM OF 200. That's it! You will begin receiving
money from around the world within days. You may want to eventually
rent a P.O. Box due to the large amount of mail you will receive. If
you wish to stay anonymous, you can invent a name to use as long as
the postman will deliver it. **JUST MAKE SURE THE ADDRESS IS
CORRECT** Let me break it down, say I receive only 5 replies, so then
I made $5 with my name it number 6 on the letter. Now each of the 5
persons who just sent me $1 made the MINIMUM 200 postings, each with
my name at #5 and only 5 people respond to the original 5 people.
That is another $25 for me. Now those 25 people make the MINIMUM 200
post with my name at #4 and only 5 replies each, I will make $125.
Now, those 125 people post the MINIMUM 200 postings with my name at
#3 and only get 5 replies each, I will make an additional $625! O.k.,
now here's the fun part each of those 625 people post a MINIMUM 200
with my name at #2 and they only get 5 replies they just made me
$3,125!!! Those 3125 people send a MINIMUM 200 posting and they only
get 5 replies each with my name at #1, I will receive $15,625!!! With
an original investment of $6!!! AMAZING!!!! . When your name is no
longer on the list, you just take the latest postings in the news
groups and send out another $6 to names on the list putting yourself
at #6 and start posting again. Thousands of people are joining the
Internet each day and they are reading articles like these just as
you are right now. So this can never be played out just keep it going
and you can make tons of money to!!!! Please try it now and make big
bucks in a few short weeks!!!!!!
- 7
- Array infoOn 12 Feb 2006 04:25:24 -0800, "Bigval" <email***@***.com> wrote,
quoted or indirectly quoted someone who said :
>public class Hardware {
public class Cpu extends Hardware
{
public String clockSpeed;
public boolean amd;
public boolean intel;
public String name;
public Cpu(String name, boolean intel, boolean amd, String
clockSpeed)
{
super(name);
}
public String getSpeed()
{
return clockSpeed;
}
public String getName()
{
return name;
}
public String toString()
{
return getName();
}
}
In this code, you discard 3 of your 4 constructor parameters. I am
begriming to wonder if you imagine java automatically copies
constructor parameters to the matching instance variables.
You code offers no way to set the public instance variables, unless
you count aCpu.name = "Sempron";
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
- 7
- Strange problemDear All:
I have used MySQL as prototype on an application that I am developing.
The project has been
approved and I am now moving to Oracle for the production run. I have a
section
that deals with user password. My front end is in JSP/Servlet using
Apache tomcat and talking
to Oracle 8i using JDBC driver from Oracle (but I am using the Oracle 9i
driver).
The user password, I am using MD5 hashes and storing the string copy of
that hashes onto the database (as varchar).
MySQL was ok. However, when I moved the application to talk to Oracle,
I am always getting a different string back
from the database than what I am saving into it. However, I am
always getting back, from ORacle, the same
set of characters. So it was consistently different but consistently in
the same format. So I think there
are some character conversion that is happening. Some of the
characters are non-printable characters so
they look like rubbish. But you can still compare with your bare eyes
as the strings always contain the
same set of characters.
I think I am missing something as to how Oracle handle non-printable
character strings.
Any help much appreciated!!
Please email me as well as posting back to the newsgroup.
Thanks
--Vincent
email***@***.com
- 8
- Property Editor Hi all,
I am doing a library with some beans (Bean A and B for example). B has a
"aProperty" that references an object of type A. I would like to do a
property editor thar pemits, doing an object of type B to get in the
aProperty a list of A existing objects. For example, y put in my form 2
objects a1 y a2 of type A. if I create a b1 object of type B y would like to
show a1 and a2 in the posibles values.
I can do a static list using the getTags function of my property class,
but don't know how to access to a1 and a2 variables.
Any idea ?
Thanks a lot,
Sylvain.
- 8
- mysql and named pipesI'm using Win2000 and I want to use named pipes instead of a TCP/IP
connection to MySql.
I'm using the following connection string:
jdbc:mysql://localhost/?enable-named-
pipe&socket=MySQL&socketFactory=com.mysql.jdbc.NamedPipeSocketFactory
And I get the following error:
java.io.FileNotFoundException: \\.\pipe\MySQL (The system cannot find the
file specified)
Any idea what I'm doing wrong?
- 9
- SPNEGO TOKENHello,
trying to implement some kerberos authentification, and all works fine if
authenticating local user, but when i try to authenticate
remote user with servlet, through Internet Explorer i keep getting the NTLM
token not the SPNEGO.
I have done following things:
1. put the requesting site in IE to local-network
2. in the IE extended security option enable Integrated Windows
Authentication
then you should see a client response something like YIll....... which is
true.
(nope i get
TlRMTVNTUAABAAAAB7IIogoACgAuAAAABgAGACgAAAAFASgKAAAAD0ZJTElQTUNSRURPQkFOS0E=
which is NTLM)
To configure Intranet Authentication:
1. Click the Security tab, click Local intranet, and then click Custom
Level.
2. In the Security Settings dialog box, scroll down to the User
Authentication section of the list.
3. Select Automatic logon only in Intranet zone. This setting prevents users
from having to re-enter logon credentials; a key piece to this solution.
4. Click OK to close the Security Settings dialog box.
In addition to the previous settings, one additional setting is required if
you are running Internet Explorer 6.0.
1. In Internet Explorer, click Tools, and then click Internet Options.
2. Click the Advanced tab.
3. Scroll down to the Security section.
4. Make sure that Enable Integrated Windows Authentication (requires
restart) is checked, and then click OK.
5. If this box was not checked, restart the browser.
I do have JCIFS NTLM setup for entering the site, but afterwards i need to
do authorisation with Kerberos to authenticate with EIM to work with jt400
on as400.
So when i do
httpServletResponse.setHeader("WWW-Authenticate", "Negotiate");
i allways get the NTLM token.
Searched the web couldn't find anything apart from the above given steps.
- 9
- Synchronized output stream sends data out of order, Possible?Hi All,
I have a strange problem... I have > 1000 threads wanting to send data
through synchronized DataOutputStream wrapped around a sockets
OutputStream. Replies sent across the internet are received perfectly
in the sent order but across the router the stream is somehow
corrupted.
Is there something I need to set to stop this problem?
Please take a look a the code and corrupted output to see if I'm just
being a bit dumb... thanks
to send:
try {
synchronized(dos) {
System.out.println(getName() + " send response " + file + "
resp " + resp);
dos.writeUTF(file);
dos.writeByte(resp);
dos.flush();
}
} catch (Exception e) {
System.out.println(file + " response failed lm");
e.printStackTrace();
}
I checked to see that syncronisation was being obeyed, no other thread
accesses the stream until it's released by another so all bytes are
written to the stream in the desired order.
to receive:
try {
pause(); //synchronize on this and wait until is.dataAvailable()>0
String file = is.readUTF();
System.out.println("rec reply " + file + " rm");
while (!"done".equals(file)) { //done respone sent when all reply
threads terminate
pause();
int reply = is.readByte();
System.out.println("resp " + reply + "rm");
pause();
file = is.readUTF();
System.out.println("rec reply " + file + " rm");
}
System.out.println("done received rm");
} catch (Exception e) {
e.printStackTrace();
}
send output:
Thread-1207 send response 0002_01.dat resp 4
Thread-1208 send response 0002_02.dat resp 4
Thread-1209 send response 0003_01.dat resp 0
Thread-1210 send response 0003_02.dat resp 0
Thread-1211 send response 0005_01.dat resp 0
Thread-1212 send response 0005_02.dat resp 0
Thread-1213 send response 0006_01.dat resp 0
Thread-1214 send response 0006_02.dat resp 0
Thread-1215 send response 0007_01.dat resp 4
Thread-1216 send response 0008_01.dat resp 4
Thread-1217 send response 0008_02.dat resp 4
Thread-1218 send response 0008_03.dat resp 4
Thread-1219 send response 0009_01.dat resp 0
Thread-1220 send response 0009_02.dat resp 0
Thread-1221 send response 0010_01.dat resp 4
Thread-1222 send response 0010_02.dat resp 4
Thread-1223 send response 0011_01.dat resp 0
Thread-1224 send response 0011_02.dat resp 0
Thread-1225 send response 0012_01.dat resp 4
Thread-1226 send response 0012_01_1.dat resp 0
Thread-1227 send response 0012_02.dat resp 4
Thread-1228 send response 0012_02_1.dat resp 0
Thread-1229 send response 0013_01.dat resp 0
Thread-1230 send response 0013_02.dat resp 0
Thread-1231 send response 0014_01.dat resp 0
Thread-1232 send response 0014_02.dat resp 0
Thread-1233 send response 0015_01.dat resp 0
Thread-1234 send response 0015_02.dat resp 0
Thread-1235 send response 0016_01.dat resp 0
Thread-1236 send response 0016_02.dat resp 0
//end of output
Note the order of this
Thread-1216 send response 0008_01.dat resp 4
Thread-1217 send response 0008_02.dat resp 4
Thread-1218 send response 0008_03.dat resp 4
Thread-1219 send response 0009_01.dat resp 0
Thread-1220 send response 0009_02.dat resp 0
Thread-1221 send response 0010_01.dat resp 4
Thread-1222 send response 0010_02.dat resp 4
Thread-1223 send response 0011_01.dat resp 0
Thread-1224 send response 0011_02.dat resp 0
Thread-1225 send response 0012_01.dat resp 4
Thread-1226 send response 0012_01_1.dat resp 0
Thread-1227 send response 0012_02.dat resp 4
Thread-1228 send response 0012_02_1.dat resp 0
You'll see below that after 0008_01.dat and reponse as 4 is sent
0012_02_1.dat is next received but wasn't sent until much further down
the list. This corrupts the stream, which then appears to be in the
correct order there onwards. Following output is all read in as the
result of a single readUTF() operation
Receive output
rec reply 0002_01.dat rm
resp 4rm
rec reply 0002_02.dat rm
resp 4rm
rec reply 0003_01.dat rm
resp 0rm
rec reply 0003_02.dat rm
resp 0rm
rec reply 0005_01.dat rm
resp 0rm
rec reply 0005_02.dat rm
resp 0rm
rec reply 0006_01.dat rm
resp 0rm
rec reply 0006_02.dat rm
resp 0rm
rec reply 0007_01.dat rm
resp 4rm
rec reply 0008_01.dat rm
resp 4rm
rec reply 0012_02_1.dat rm
resp 0rm
rec reply 008_02.dat 0008_03.dat 0009_01.dat 0009_02.dat
0010_01.dat 0010_02.dat 0011_01.dat 0011_02.dat 0012_01.dat
0012_01_1.dat 0012_02.dat 0013_01.dat 0013_02.dat 0014_01.dat
0014_02.dat 0015_01.dat 0015_02.dat 0016_01.dat 0016_02.dat
0017_01.dat 0017_02.dat 0018_01.dat 0018_02.dat 0019_01.dat
0019_02.dat 0020_01.dat 0020_02.dat 0021_01.dat 0021_02.dat
0022_01.dat 0022_02.dat 0023_01.dat 0023_02.dat 0024_02.dat
0025_02.dat 0026_02.dat 0029_02.dat 0025_01.dat 0029_01.dat
0026_01.dat 0024_01.dat 0030_01.dat 0030_02.dat 0031_01.dat
0032_01.dat 0031_02.dat 0032_02.dat 0035_01.dat 0035_02.dat
0037_01.dat 0037_02.dat 0038_01.dat 0038_02.dat 0041_01.dat
0041_02.dat 0042_02.dat 0042_01.dat 0043_01.dat 0044_01.dat
0045_01.dat 0043_02.dat 0044_02.dat 0046_01.dat 0045_02.dat
0046_02.dat 0047_01.dat 0047_02.dat 0048_01.dat 0048_02.dat
0049_01.dat 0049_02.dat 0050_01.dat 0050_02.dat 0051_01.dat
0051_02.dat 0052_01.dat 0052_02.dat 0053_01.dat 0053_02.dat
0054_01.dat 0054_02.dat 0055_01.dat 0055_02.dat 0056_01.dat
0056_02.dat 0057_02_1.dat 0058_01.dat 0058_02.dat 0059_01.dat
0059_02.dat 0060_01.dat 0060_01_1.dat 0060_02.dat 0060_02_1.dat
0063_01.dat 0063_02.dat 0067_01.dat 0068_01.dat 0067_02.dat
0068_02.dat 0069_01.dat 0070_01.dat 0069_02.dat 0070_02.dat
0071_01.dat 0071_02.dat 0072_01.dat 0072_02.dat 0074_01.dat
0074_02.dat 0075_01.dat 0075_02.dat 0076_01.dat 0076_02.dat
0089_01.dat 0093_01.dat 0094_01.dat 0095_01.dat 0096_01.dat
0097_01.dat 0099_01.dat 0099_02.dat 0101_01.dat 0102_01.dat
0103_01.dat 0105_01.dat 0106_01.dat 0107_01.dat 0108_01.dat
0109_01.dat 0110_01.dat 0128_01.dat 0128_02.dat 0141_01.dat
0142_01.dat 0143_01.dat 0200_01.dat 0200_01_1.dat 0200_02.dat
0200_02_1.dat 0201_01.dat 0201_02.dat 0202_01.dat 0202_02.dat
0203_01.dat 0203_02.dat 0205_01.dat 0205_02.dat 0206_01.dat
0206_02.dat 0207_01.dat 0207_02.dat 0208_01.dat 0208_02.dat
0209_01.dat 0209_02.dat 0210_01.dat 0210_02.dat 0211_01.dat
0211_02.dat 0212_01.dat 0212_02.dat 0214_02.dat 0215_01.dat
0215_02.dat 0216_01.dat 0216_02.dat 0217_01.dat 0217_02.dat
0219_01.dat 0219_02.dat 0220_01.dat 0220_02.dat 0221_01.dat
0221_02.dat 0222_01.dat 0222_02.dat 0223_01.dat 0223_02.dat
0224_01.dat 0224_02.dat 0225_02.dat 0226_01.dat 0226_02.dat
0227_02.dat 0230_02.dat 0231_01.dat 0231_02.dat 0232_01.dat
0232_02.dat 0233_01.dat 0233_02.dat 0237_02.dat 0237_01.dat
0238_01.dat 0238_02.dat 0239_01.dat 0239_02.dat 0240_01.dat
0240_02.dat 0250_01.dat 0250_01_1.dat 0250_02.dat 0251_01. rm
resp 100rm
Any ideas would be helpful.
Thank you
- 9
- Making new Flavors : Making a custom transferhandler for and drop applicationsHi all .. im trying to make a simple application thru which i can
accept files of any kind via a drag and drop interface .
I tried making my own transferhandler , but it gives a compilation
problem saying
cannot parse java.io.File
here is the code
--------------------------
//FileTransferHandler.java
package com.tcs.search.classes;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.datatransfer.*;
public class FileTransferHandler extends javax.swing.TransferHandler {
DataFlavor fileFlavor ;
public FileTransferHandler() {
try {
fileFlavor = new DataFlavor("java.io.File");
}
catch(ClassNotFoundException c)
{ System.out.println(c.getMessage()); }
}
public boolean importData(JComponent c, Transferable t)
{
if (hasFileFlavor(t.getTransferDataFlavors())) {
try {
File f = (File)t.getTransferData(fileFlavor);
return true;
} catch (UnsupportedFlavorException ufe) {
} catch (IOException ioe) { }
}
return false;
}
protected boolean hasFileFlavor(DataFlavor[] flavors)
{
if (fileFlavor == null) {
return false;
}
for (int i = 0; i < flavors.length; i++) {
if (fileFlavor.equals(flavors[i])) {
return true;
}
}
return false;
}
}
--------------------------
//FrontLauncher.java
package com.tcs.search;
import javax.swing.*;
import java.awt.*;
import com.tcs.search.classes.*;
public class FrontLauncher extends JFrame {
public FrontLauncher() {
Container c = this.getContentPane();
JEditorPane ep = new JEditorPane();
c.add(ep);
ep.setDragEnabled(true);
//ep.setDropTarget(this);
ep.setTransferHandler(new FileTransferHandler());
}
public static void main(String[] args) {
FrontLauncher frame = new FrontLauncher();
frame.setSize(500, 400);
frame.setTitle("FrontLauncher");
frame.setVisible(true);
}
}
--------------------------
- 15
- Tomcat and Connection pool size difficultiesI am experiencing something similar. I manage a website that is load
balanced across two servers. They are both running Tomcat 5 and they
both connect to the same database. On both servers we have maxActive
set to 10 and maxIdle set to 2 in the Tomcat ResourceParams. For the
most part, Tomcat DBCP plays by the rules and keeps the number of
connections to our database below 10, but today for reasons unknown,
both servers started using around 50 connections. Our database
quickly ran out of connections and our website produced errors.
I would have blown this off as a glitch, but both Tomcat servers
exhibited this behavior independently of each other, which means that
something triggered this behavior in a reproducable way. Anyone else
having this problem? Anyone find a solution?
- 16
- Intern failure
Roedy Green wrote:
> On Tue, 06 Apr 2004 22:12:42 GMT, Roedy Green
> <email***@***.com> wrote or quoted :
>
>
>>I had a situation where intern appeared to fail once in a very long
>>while. Has anyone else seen this?
>
>
> false alarm. I think the problem involved serialisation. My
> reinterning code on reconstituting was not getting run.
>
> --
> Canadian Mind Products, Roedy Green.
> Coaching, problem solving, economical contract programming.
> See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
interns are not to be trusted. They may appear eager when they first
start, but they bore easily and get tired.
|
| Author |
Message |
Timo Nentwig

|
Posted: 2004-5-9 0:43:00 |
Top |
java-programmer, EL: escaping HTML
Hi!
I need to escape HTML - can this be done with EL alone? For a matter of
quotations marks I cannot use JSTL in a plain JSP:
<a href="javascript:f('<c:out value="problem"/>')">
Timo
|
| |
|
| |
 |
Timo Nentwig

|
Posted: 2004-5-10 21:43:00 |
Top |
java-programmer >> EL: escaping HTML
Timo Nentwig wrote:
> Hi!
>
> I need to escape HTML - can this be done with EL alone? For a matter of
> quotations marks I cannot use JSTL in a plain JSP:
>
> <a href="javascript:f('<c:out value="problem"/>')">
>
> Timo
${fn:escapeXml(problem)}
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Openings in javaHi All
We currently have openings in java, for a reputed company in chennai.if
you interested please send your profile to email***@***.com
to refer any of your friends, colleagues who are looking for a
change....
POSITION Project Manager
PROFILE: 6+ years experience
Sound technical knowledge in java
Should have handling a team
Must be good team player
POSITION IN Chennai
Regards
for
current profile
- 2
- (Review ID: 186942) # HotSpot Virtual Machine Error, Internal
--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Mon, Jun 02, 2003 at 14:30:27 -0700, Tom Samplonius wrote:
> > FULL OS VERSION :
> > FreeBSD sherman.cs.miami.edu 4.5-RELEASE-p26 FreeBSD 4.5-RELEASE-p26 #1: Sun Mar 30 17:45:29 EST 2003 email***@***.com:/usr/obj/usr/src/sys/SHERMAN i386
> Probably should use 4.8-RELEASE instead, and upgrade the Linux emulator.
I encounter the same error, with my 5.1-BETA
Terry [/home/ijliao] -ijliao- /usr/local/linux-sun-jdk1.4.1/bin/java -version
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_03-b02 mixed mode)
#
# Error ID: 4F533F4C494E55580E43505002DD
#
Abort (core dumped)
--
The sooner you start to code, the longer the program will take.
--- Roy Carlson
--IJpNTDwzlM2Ie8A6
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
iD8DBQE++ZZyrMYBZRHAI4IRAtlWAKC0FYiYG7KRDPC5H5W8VA3MGhDDWQCaAnsl
CFbtsDjRYc6BIM/KFEl6RVM=
=TXcN
-----END PGP SIGNATURE-----
--IJpNTDwzlM2Ie8A6--
- 3
- Barcode reading in JavaHi Everybody I am an MCA student.
I want to know how does the bar code reaer works and How we can use it
in a poject where we can take input by reading the bar code and
display the information about the item.
like in malls they just read the barcode and all the info comes there?
Which tool to use?
I am a fresher and want to implement this in project.
Thank U
Pankaj
- 4
- www/mod_jk2 fails to build (Maintainer fix enclosed!)
>Submitter-Id: current-users
>Originator: Larry Lansing
>Organization: AgileView Software Inc.
>Confidential: no
>Synopsis: www/mod_jk2 fails to build (Maintainer fix enclosed!)
>Severity: non-critical
>Priority: medium
>Category: ports
>Class: maintainer-update
>Release: FreeBSD 5.0-CURRENT i386
>Environment:
System: FreeBSD fuzzilicious.fuzzynerd.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Apr 1 11:50:43 EST 2003 email***@***.com:/usr/obj/usr/src/sys/FUZZILICIOUS i386
>Description:
Attempting to build mod_jk2 yields the following:
libtool: link: `../common/jk_ajp12_worker.lo' is not a valid libtool object
>How-To-Repeat:
I could not reproduce this bug on 5.x, I received one report from
someone who did. I wasn't aware of the problem until I started
receiving bug reports from people running 4.7 and 4.8. If you attempt
to build mod_jk2 on 4.x, you should be able to repeat this bug 100% of
the time.
>Fix:
I found a one-line fix that seems to eliminate this problem for me.
Thanks go to the apache folks, who rolled this into one of the later
mod_jk versions. I'll update the port to the latest version in the
near future. Until then, please commit this fix.
Fix: replace the contents of www/mod_jk2/files/patch-configure.in with
the following:
--- configure.in.orig Tue Dec 17 05:20:55 2002
+++ configure.in Mon Jun 30 13:03:18 2003
@@ -102,7 +102,8 @@
WEBSERVER="apache-2.0"
APXSCFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CFLAGS`"
APXSCPPFLAGS="`${APXS} -q EXTRA_CPPFLAGS`"
- APACHE_CONFIG_VARS=${apache_dir}/build/config_vars.mk
+ APACHE_CONFIG_VARS=${prefix}/share/apache2/build/config_vars.mk
+ LIBTOOL=`$APXS -q LIBTOOL`
fi
AC_MSG_RESULT([building connector for \"$WEBSERVER\"])
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 5
- JVM parametersWhen using the parameters:
-Xms32m -Xmx200m
What exactly does this do in terms of how much memory is allocated to
the JVM from the system?
Does it initially allocate 32m to the JVM and allow it to grow to 200m
over time? Or does it allocate 200m initially?
Thanks.
- 6
- A simple way to play a file in an ApplicationHi all,
I am looking for a simple way to play a sound clip (.au file) in a java
application (not applet). AudioClip in java.applet seems to require URLs for
clips, and the Java Sound API looks a little too elaborate for what I am
trying to do. All I need is for this .au file to be played once inside
another method. Can anyone give me some pointers here?
TIA
- 7
- How to delete lines from input file?I'm writing this program to implement a two phase multi-way merge sort.
It works by splitting the data to be sorted into temporary sorted
lists (output files) equal in size to a memory constraint that is
passed in when the program is run. What I've got to do now is actually
merge the lists into one final output. The trick is that this is
supposed to save disk I/Os. What happens is I read the smallest
element from each temporary file into an array. From that array, the
smallest goes into the final output, and that element is then replaced
by the next element from the same list.
I feel like what I need to do is delete a number from one of the
temporary when it's read into the array. Then all I have to do is read
the first line from the same list to get the next number into the
merging array. Any suggestions on how to do this?
I'm using SDK 1.4.2 and the input/output files are binary, so I'm using
DataInput/OutputStream to do this.
Thanks,
Andrew Weber
- 8
- 9
- Problems with NetBeans and Subersion.Hi all,
I've got a problem with the subversion module.
I started to checkout from a svn repository with Subversion-
>Checkout...
Next I was asked to create a new project. I took a C++ project (C++
module).
My project window showed a new project BUT with ZERO files! But the
svn repository is fine...
Any hints for me?
Thanks
Goran
- 10
- Generating classes for tables of a data baseHi,
I've got an already existing data base (Postgres) which consists of a
couple of tables and connections. There exist also some stored
procedures. Now, how can I get java-classes generated of this
information? Which tool can do this?
I would like to see a class for each table and methods to call stored
procedures or to locate records by their key.
PS. this must be done for c++, too.
- 11
- #gN Almost FREE MONEY !! #gNMAKE MONEY!!!
MAKE THOUSANDS!!!
I found this on a bulletin board and decided to try it: I don't care about
the useless pre-fabricated crap this message usually says. All I say is, it
works. Continue pre-fab crap.
WELL GUESS WHAT!!!
Within seven days, I started getting money in the mail!! I
was shocked!! I figured it would end soon, but the money just kept
coming in. In my first week, I made about $25.00. By the end of the second
week I had made a total of more than $1000.00!!
Let me tell you how this works and most important, why it works..........
also make sure you print this out NOW, so you can get the information off
of it, as you will need it. I promise you that if you follow the directions
exactly that you will start making more money than you thought possible by
doing something
so easy!!
Suggestion: Read this entire message carefully!! (Print it out or download
it)
Follow the simple directions and watch the money come in!! It's easy.
It's legal. And, your investment is only $6.00 (Plus postage) !!!
You can use any currancy as people can always change it..
IMPORTANT:
This is not a rip-off, it is decent; it's legal; and it is virtually no
risk - it really works!! If all the following instructions are adhered to,
you will receive extraordinary dividends.
PLEASE NOTE:
Please follow the directions EXACTLY, and $50,000 or more can be yours
in 20 to 60 days. This program remains successful because of the honesty
and integrity of the participants. Please continue its success by carefully
adhering to the instructions. You will now become apart of the Mail Order
business.
You are in the business of developing Mailing Lists. Many large corporations
are happy to pay big bucks for quality lists. However, the money made from
the
mailing lists is secondary to income which is made from people like you
and me asking to be included in that list. Here are the four easy steps to
success.
STEP ONE:
Get six separate pieces of paper and write the following on
each piece of paper "PLEASE PUT ME ON YOUR MAILING LIST."
Now get 6 U.S. $1.00 bills and place ONE inside of EACH of the six pieces
of paper so the bill will not be seen through the envelope (to prevent
thievery). Next, place one paper in each of the six envelopes and seal them.
You now should have six sealed envelopes, each with a piece of paper stating
the above phrase, your name and address, and a $1.00 bill. What you are
doing is creating a service.
THIS IS ABSOLUTELY LEGAL!!!!!
You are requesting a legitimate service and you are paying for it!! Like
most of us I was a little skeptical and little worried about the legal
aspects of it all. So I checked it out with the U.S. Post Office
(1-800-238-5355)
and they confirmed that it is indeed legal!!
Mail the six envelopes to the following addresses:
Matthew Dutton
46 Hayworth St
Point Vernon, Hervey Bay
QLD, 4390
Australia
R. Visser
P.O. Box 274
Nobby Beach
QLD, 4218
Australia
S. Phillips
77 Manly Drive
Robina, QLD 4226
Australia
Chris Pittman
7651 Abigail Glen Dr.
Charlotte, NC 28212
USA
Mike Vango
29 Pebblewood Ave
Scarborough, ON M1V-2A7
Canada
C. Wehler
137 Sara Rd
St. Marys, PA 15857
USA
STEP TWO:Now take the #1 name off the list that you see above, move the
other names up (six becomes 5, 5 becomes 4, and etc.) and add YOUR NAME as
number 6 on the list.
STEP THREE:
Change anything you need to but try to keep this article as close to
original as possible. Now post your amended article to at least 200 news
groups. : (I think there are close to 24,000 groups) All you need is 200,
but
remember, the more you post, the more money you make!! This is perfectly
legal!! If you have any doubts, refer to Title 18 Sec. 1302 & 1341 of the
Postal Lottery laws. Keep a copy of these steps for yourself and whenever
you need money, you can use it again, and again. PLEASE REMEMBER that this
program remains successful because of the honesty and integrity of the
participants and by their carefully adhering to directions. Look at it this
way. If you were of integrity, the program will continue and the money that
so many others have received will come your way.
NOTE: You may want to retain every name and address sent to you,> either on
a computer or hard copy and keep the notes people send you.
This VERIFIES that you are truly providing a service. (Also, it might be
a good idea to wrap the $1 bill in dark paper to reduce the risk of mail
theft). So, as each post is downloaded and the directions carefully
followed, all members will be reimbursed for their participation as a List
Developer with one dollar each. Your name will move up the list
geometrically so that when your name reaches the #1 position you will be
receiving thousands of dollars in CASH!!! What an opportunity for only $6.00
( $1.00 for each of the first six people listed above) Send it now, add your
own name to the list and you're in business!!!
*****DIRECTIONS FOR HOW TO POST TO NEWS GROUPS!!!*****
STEP ONE: You do not need to re-type this entire letter to do your own
posting. Simply put your cursor at the beginning of this letter and drag
your cursor to the bottom of this document, and select 'copy' from the edit
menu. This will copy the entire letter into the computer's memory.
STEP TWO:
Open a blank 'notepad' file and place your cursor at the top
of the blank page. From the 'edit' menu select 'paste'. This will paste a
copy of the letter into the notepad so that you will add your name to the
list.
STEP THREE:
Save your new notepad file as a text file. If you want to do your posting
in different settings, you'll always have this file to go back to.
STEP FOUR:
You can use a program like "postXpert" to post to all the newsgroups at
once. You can find this program at <<http://www.download.com>>.
Use Netscape or Internet Explorer and try searching for various new
groups (on- line forums, message boards, chat sites, discussions.)
STEP FIVE:
Visit message boards and post this article as a new message by
highlighting the text of this letter and selecting paste from the edit menu.
Fill in the subject, this will be the header that everyone sees as they
scroll through the list of postings in a particular group, click the post
message button. You're done.
Congratulations!!!!!!
THAT'S IT!! All you have to do, and It Really works!!!
BEST WISHES ...
ouYj\
- 12
- The new Net Beans IDE Java developer software. Good in theoryNowadays when you obtain the SDK form java.com
you get a new interactive programming environemt
much like the Borland C++ IDE.
Up to now I've been developing applications "the old way"
using the operating system command line method.
that is, javac MyApp.java
Then my computer at home crashed and I decided to install the
JDK on my office computer. This was when I got the new
Net Beans IDE. It all seemed good in theory, having eveything
conveniently in one package, the editing, compiling and
executing of your program. It even promised a way to assemble
Jar files.
The problem is that application programs which compiled just fine
using the Command line compiler (javac MyApp.java) seemed to generate
numerous "Cannot Resolve Symbol" errors on this new IDE thing.
This is despite I had all necessary classes in the same directory.
Another thing, I cannot make Jar files for my applets.
I also han do problems with the command line method.
I just don't understand. What's worse is that there are no readily
available online resources to address such issues.
Thank goodness I didn't have to pay for this thingy.
What did these super-qualified programmers employed by Sun Microsystems
lear in college?
I finally got my home computer up and running again and
I so happend to have an SDK (command line java compiler) from a CD I got
with a Java textbook.
I loaded it onto my computer and I am back in business again.
Francis
- 13
- Need help regarding java application development....sir i am a student of enggineering and i have assigned a project named
"Download Accelerator".
In this application i need to provide fuctionality such that if a user
clicks on any downloading link in its default web browser our
application must be invoked to start respective downloading with
enhanced spped.
Secondly, i have to provided some features that are used in some
downloading applications for example Aries, DAP etc.
Plz reply soon....
Nitesh
- 14
- question about console InputHello group,
I wonder if there's any equivalent to C's getch() in java, i.e to
fetch a character from the console immediately after the user typed it,
without pressing the "Enter" key.
Any solution or suggestion is welcome, thank you!
layman
- 15
- How do you do THAT with genericsI am working on an event mechanism. Part of my need is to be able to
have a pool of events that can be reused, rather than incurring the cost
of instantiating one via reflection every time I need one. The pool
interface has this method for checking out an event:
<E extends Object & Event> E checkout(Class<E> cl);
Creating an event from this is easy; "return cl.newInstance();" works
fine. The problem is in storing them for later use.
Since there are many event classes in the event hierarchy, and since I
want this method to be able to return an event of the exact type (so I
don't have to cast it after getting it), I thought to use an inner class
(PoolList<E extends Event>) that holds a list of just one type of Event
and tracks which of its objects are in use and which are available. Then
I could use a Map to key these PoolList objects by Class.
That map is the problem. I need to have it store Class<E> as keys and
PoolList<E> as values...the same parameter (E) in both. Except that the
parameter isn't fixed...it could be any implementation of Event. So the
closest thing that I have is...
private Map<Class<? extends Event>, PoolList<? extends Event>> pool;
...which is wrong because it can't guarantee that the type parameters to
Class and to PoolList are the same (only that they are both
implementations of Event, but they could very well be different ones).
Something like...
private <T extends Event> Map<Class<T>, PoolList<T>> pool;
...would work, except that it isn't legal (the <T extends Event> part
can't be used for fields, only for generic methods). It makes sense that
there should be SOME way to do it...all of the necessary type
information is there at compile time and nothing that's needed at
runtime gets erased. But I can't come up with it.
All I need is a Map that knows that if one type parameter is being used
in the key, the same one should be used in the value. Is there a way in
generics to do this?
|
|
|