| subclass DeflaterOutputStream just to get bytes written? |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- Parallel PortHello,
I want to drive a device using the parallel port data output.
I want to use preferably an applet to do that. Is that possible?
I heard that javax.comm is not very reliable, does anyone have experience
with it?
thanks,
anwar
- 1
- Networked version of Swing (X windows style)?Hello,
I was wondering if something like that exists or if someone has ever
thought about it:
Instead of Swing updating the local screen and obtaining events from
the local mouse & keyboard, it may be useful in some cases to have a
networked version of Swing, just like XWindows.
Imagine a workstation connecting to a remote JVM that starts a typical
swing application. But this JVM/Classpath/etc is configured so that all
Swing calls are serialized to the remote workstation, where all the
screen updates are made. And viceversa for the mouse and keyboard.
Probably Swing is not well designed for this kind of "pluggability"...
in any case it would be an interesting thing to have.
The key requirement here is that preexisting AWT/Swing applications can
be remotely executed without modification.
Is there any project or product that does this?
If not, any ideas on how to implement it?
Thanks,
Luis.
- 2
- Designing presentation-tier for occasionally connected applications.Folks
We are in the process of developing a web-based app that needs to be
functional when the user is on the road where the Internet connection
to the server is not available. There are 3 basic requirements:
1. Must be web-based, not a fat client app.
2. The UI for the offline mode and on-line should be identical.
3. In the off-line mode some basic functionality to enter data (fill
forms) should be available, that do not need to be reentered when the
connectivity is available.
Can some one think of a solution on how one would design this app. To
me disconnect from the network mean no web application, but some one
here insisted that we can put a web-server/appserver on each client
machine (about 200 of these).
Swing based solutions are ruled out because that is not a web-based
architecture.
Any ideas?
Thanks in advance.
Vijay
- 2
- Bypassing Struts validator - why doesn't bCancel=true work?Hi there,
I'm trying to bypass the Struts validator sometimes on my page. I'm
using JSP and Struts 1.1.
Basically I have a submit button that submits a form. The Struts
validator component is working great for client-side validation of the
contents of this form.
However, now I've been asked to implement a drop down on the page that
repopulates another drop down box when it is changed. Because of the
size of the data, I'm doing this server side, not client side. That
is, I want the page to refresh and then repopulate these fields.
This means I have to bypass the validator to ignore anything the user
might have already entered in the fields. I've read all over the
newsgroups how putting "bCancel=true" in your onclick or onchange
method should do the trick, but it doesn't work for me. When I create
my select box like this
<html:select property="countyId" tabindex="1"
onchange="bCancel=true;document.forms[0].method.value='changeCounty';document.forms[0].target
= '_self';document.forms[0].onsubmit();document.forms[0].submit();">
and then change the drop down box, nothing happens. Control never
gets to my changeCounty action. I've checked that. But I also don't
get any validation messages from the validator, despite there being
validation errors on the page when I change the drop down box. So
it's like the validator function doesn't execute either. (The method
value is there because I'm using a DispatchAction class.)
Is the validation function running or not? How can I bypass the
validation and still submit the form?
Thanks for the help!
Marnie
- 3
- cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com )cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
- 3
- Log4j - dealing with multithreaded invocations?Hi,
I have a class with 4 methods. I want to use Log4j to log messages for
each of these methods to a common log file.
Ideally I would like the log messages for each method to be seperated
from the others. But if multiple users were to invoke the methods at
the same time, then the messages in my log file would be jumbled up
with the others.
I can probably try making the methods synchronized so i dont get into
this sort of trouble, but logging by itself doesn't seem to be a good
enough reason to be making methods synchronized.
What approach can I use to deal with this?
Thank you,
Rohit.
- 6
- Switching Locale intermittent geometry position bugHi,
I'm working on a 3D visualization of the Mars Exploration Rover
Mission.
Please refer to my webpage:
http://home.comcast.net/~meralizer/
Everything appears to be working well, except I'm still haunted with
what appears to be a Locale/HiResCoord bug.
What makes it more difficult to debug is that it's intermittent!
Sometimes when I switch to a Locale, geometry in the scene/heirarchy
jumps to the wrong position and orientation. However, when I switch to
another Locale and back again, this "fixes" the problem.
So it appears that some information in the transformation heirarchy is
temporarily corrupted. Then when I toggle the Locales, it's is
restored/updated/recalculated to the correct values.
I'm trying to finish this project, but this one remaining bug is
driving me nuts.I'm getting the same bug on two different platforms,
so it's not a platform/grapics card-specific bug.
Any ideas?
thanks
- 6
- XApool +multiple replicated nodesHi All,
I am creating a small research system for testing various fall over
algorithms in a distributed database situation and and have been looking at
using XApool as a possible JDBC XA proxying and load balancing solution. I
am just wondering if anyone else has had any luck getting the XApool system
to talk to different oracle hosts ? I plan to use the development/personal
edition of oracle and their thin jdbc driver, which is also XA compatible.
Anyway, if someone could point me in the right direction I would be much
appreciated :) I've had a look at the docs but cannot see where I add the
different nodes into the pool ???
- 6
- Strange problem with Bluetooth and RFCOMMHi,
I have programmed an application that sends data from a PC to a mobile
phone. This application uses the Bluecove library and a RFCOMM
connection.
When I establish a connection between these two devices and send from
the server (PC) a float number (e.g. 3.12) to the client (mobile
phone), the number is displayed correctly and everything is fine. But
when I want to send 20 float values the following reaches the phone:
3.12
3.12
3.12
3.1199999,
-2.12422343E14
9.707659E-27
9.707659E-27
...
0.0
0.0
...
0.0
These values are changing when sending them multiple times. Sometimes
there are more correct numbers (3.12), sometimes less. And sometimes
the mobile application just crashes without an error.
Probably the reason for that is the data which is not transferred
properly. I tested different ways to transfer the data, e.g. partioning
the data into smaller packets or using DataOutputStream but nothing was
a success.
Snippets of one of my source codes:
/* SERVER */
OutputStream out = null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(baos);
for (int i = 0; i < 20; i++) {
float f = 3.12f;
dos.writeFloat(f);
}
byte[] rawData = baos.toByteArray();
dos.close();
baos.close();
out = connection.openOutputStream();
out.write(rawData.length >> 8);
out.write(rawData.length & 0xff);
out.write(rawData);
out.flush();
out.close();
connection.close();
/*CLIENT*/
in = connection.openInputStream();
int length = in.read() << 8;
length |= in.read();
byte[] data = new byte[length];
length = 0;
while (length != data.length) {
int n = in.read(data, length, data.length - length);
if (n == -1) {
throw new IOException("Can't read data");
}
length += n;
}
ByteArrayInputStream bais = new ByteArrayInputStream(data);
DataInputStream dis = new DataInputStream(bais);
for (int i = 0; i < 20; i++) {
Log.out(dis.readFloat() + " ");
}
Has anyone an idea how to solve this problem?
Peter Vermeer
- 6
- Tools To Tackle New Code Base?Hi,
I'm looking for advice on how to quickly come to grips with
a large ( ~5000 files), undocumented codebase that's mostly Java
( compiles with Sun's command line compiler under Windows XP ).
Here are some considerations.
1) I'm new to Java, coming from a C++ background
2) I need to get a handle on this quickly but also cheaply.
3) I have no access to the original programmer.
What tools are availble that might help me analyze and
visualize the relationship between various modules and classes
in this project? In the past, with large C++ codebases I've
looked at Doxygen but the learning curve seemed very steep
and I never did figure out the graphical tools.
Appreciate any advice, the more concrete the better.
If there's a different forum I should be posting this in please let
me know.
TIA,
Gerry Murphy
- 11
- java long in an Access databaseHi,
Perhaps this is more of an Access question. I'm discovering that
Access' "Long Integer" cannot store a java Long. So I'm resorting to
string the numbers as strings. I'm I doing the right thing (other than
using Access :) ) or missing someting?
Many thanks in advance!
Aaron Fude
- 13
- considering a job as an ATG dynamo server adapter to j2ee enviormenthi...
i've been offered a job which involves getting a large content based
java application based on ATG dynamo server version 4.5.0, they
considering a move to a j2ee enviorment system (a rewrite of the
entire application is in order) and need a person who will study the
current application and who willl provide insight for writing the
existing one.
i have no actuall expirience in j2ee ejb etc.. and as such, would
like what is the learning curve for this server
- 13
- Add a computer language to NetbeansHello
This may be a simple question. I searched in Google but I think I am
using inapropiate words for the query and I don't get what I want.
How can I add a syntax highlight for a new language, in my case X3D,
to Netbeans?
Any general tutorial?
Thanks
Jordi
Note: Does someone already have done this with VRML or X3D?
- 15
- CLOB problem in JAVAHi :
I am getting a casting exception (java.lang.ClassCastException:
com.ibm.ws.rsadapter.jdbc.WSJdbcConnection) when invoking the
CLOB.createTemporary metehod. Extract of relevant lines shown below:
Any
ideas how I can resolve this?
Versions:
Oracle 9i
WebSphere Ver 5.1
Cheers
Lig
import java.io.Writer;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.CallableStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Blob;
import javax.sql.DataSource;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.NamingException;
import java.util.List;
import java.util.ArrayList;
import java.sql.Types;
import oracle.jdbc.OracleConnection;
import oracle.jdbc.driver.*;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import oracle.sql.CLOB;
.
.
.
Context jndiContext = new InitialContext();
DataSource ds = (DataSource)jndiContext.lookup("java:comp/env/"
+s_dataSource);
Connection conn = ds.getConnection();
tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION );
Error Encountered: -
java.lang.ClassCastException:
com.ibm.ws.rsadapter.jdbc.WSJdbcConnection
- 15
- Client Code for Axis - Newbie QuestionHi,
I'm a first time Axis 1.1 user and trying to figure out how to write
web services client code. I used WSDL2JAVA to create java source from
the wsdl. I ended up with the following files...
xxxx_Port.java
xxxx_Service.java
xxxx_ServiceLocator.java
xxxxBindingStub.java
xxxxRequest.java
xxxxResponse.java
Does anyone have some sample code they can share with me that shows
the basics of how to set up the request and response parameters and
then actually make the call to the web service. Not sure which
classes or methods to use.
Thanks
|
| Author |
Message |
Shea Martin

|
Posted: 2005-8-17 21:39:00 |
Top |
java-programmer, subclass DeflaterOutputStream just to get bytes written?
I am using a deflater output stream, GZIPOutputStream specifically. I
need to know the number of bytes written out by the stream. Obviously
this is not the same number as the number of bytes I have given the
stream. It looks like the only way to get this information is through
the 'def' field, calling getBytesWritten(), or getTotalOut(), depending
on whether I want a long or an int. The problem is that the 'def' field
is protected. So to get this information, I have to subclass
GZIPOutputstream.
Surely, it is fairly common to need this information. Is this a design
flaw, or am I just too stupid to see an easier way to get this information?
Thanks,
~Shea M.
|
| |
|
| |
 |
Chris Uppal

|
Posted: 2005-8-17 22:36:00 |
Top |
java-programmer >> subclass DeflaterOutputStream just to get bytes written?
Shea Martin wrote:
> Surely, it is fairly common to need this information. Is this a design
> flaw, [...]
Yup.
-- chris
|
| |
|
| |
 |
jan V

|
Posted: 2005-8-17 23:51:00 |
Top |
java-programmer >> subclass DeflaterOutputStream just to get bytes written?
> > Surely, it is fairly common to need this information. Is this a design
> > flaw, [...]
>
> Yup.
Common on, give those Sun engineers a bit of credit. It's not because a
class doesn't expose every possible usage scenario that we're allowed to
call this a "design flaw". The OP can achieve his goal by subclassing, so I
think there's absolutely no flaw whatsoever - just an inconvenience. Sun is
pretty good at making a lot of things less than convenient.. but flaws are
very different beasts.
|
| |
|
| |
 |
Shea Martin

|
Posted: 2005-8-18 4:32:00 |
Top |
java-programmer >> subclass DeflaterOutputStream just to get bytes written?
jan V wrote:
>>>Surely, it is fairly common to need this information. Is this a design
>>>flaw, [...]
>>
>>Yup.
>
>
> Common on, give those Sun engineers a bit of credit. It's not because a
> class doesn't expose every possible usage scenario that we're allowed to
> call this a "design flaw". The OP can achieve his goal by subclassing, so I
> think there's absolutely no flaw whatsoever - just an inconvenience. Sun is
> pretty good at making a lot of things less than convenient.. but flaws are
> very different beasts.
>
>
Point taken, but this isn't some obscure situation. I would hazzard to
guess that at least half* the people who use the class would want to
know such information.
~S
|
| |
|
| |
 |
Chris Head

|
Posted: 2005-8-18 8:15:00 |
Top |
java-programmer >> subclass DeflaterOutputStream just to get bytes written?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Shea Martin wrote:
> I am using a deflater output stream, GZIPOutputStream specifically. I
> need to know the number of bytes written out by the stream. Obviously
> this is not the same number as the number of bytes I have given the
> stream. It looks like the only way to get this information is through
> the 'def' field, calling getBytesWritten(), or getTotalOut(), depending
> on whether I want a long or an int. The problem is that the 'def' field
> is protected. So to get this information, I have to subclass
> GZIPOutputstream.
>
> Surely, it is fairly common to need this information. Is this a design
> flaw, or am I just too stupid to see an easier way to get this information?
>
> Thanks,
>
> ~Shea M.
Hi,
Wouldn't it be easier and more appropriate to write a filter stream for
this purpose? Make a class called ByteCounterOutputStream. Instead of
wrapping GZIPOutputStream directly around FileOutputStream, put the
ByteCounterOutputStream between them. ByteCounterOutputStream simply
passes bytes written to it to the underlying stream, but also counts how
many bytes pass through it.
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
iD8DBQFDA9Ma6ZGQ8LKA8nwRAmIGAJwM0Vf11UscWR/yk+kzakHXkb2YXgCgjEkF
4t27xvarlPHg08d8W4xgZ+0=
=RU56
-----END PGP SIGNATURE-----
|
| |
|
| |
 |
Chris Uppal

|
Posted: 2005-8-18 15:47:00 |
Top |
java-programmer >> subclass DeflaterOutputStream just to get bytes written?
jan V wrote:
> > > Surely, it is fairly common to need this information. Is this a design
> > > flaw, [...]
> >
> > Yup.
>
> Common on, give those Sun engineers a bit of credit.
What !? Why on earth would I want to do that ??
;-)
> It's not because a
> class doesn't expose every possible usage scenario that we're allowed to
> call this a "design flaw".
Actually, I would go further and call it (in its small way) an example of
bloody awful design.
There are four integer values that the internal compressor had to maintain, and
which are potentially useful outside the implementation itself (because they
are used in various protocols / file formats that use zlib-style compression).
They are the compressed size, the uncompressed size, the "Adler" checksum, and
a different CRC checksum. The first two of those can usually be found by other
means, but the last two are not sensibly accessible from anything except the
compressor. Note that this is true whether the compressor is implemented using
the zlib library (as I believe it is now) or by pure Java code, or my some
other mechanism. Now, /given/ that there is a need to get at the last two of
those numbers, it seems reasonable to use the same technique to provide access
to the first two. And, in fact, that's what the Sun code does. Fair enough so
far.
But what's /really/ stupid is the decision to expose those numbers as protected
int fields. In the first place, by making them protected, they (effectively)
make them completely public. That has the (relatively minor) consequence that
"anyone" can change them. More importantly they become part of the public
contract of that class -- any future implementation has to contain them, and
has to maintain their meaning. Making them "protected" gains /nothing/ in
terms of encapsulation over making them fully public. Secondly, why make them
fields at all ? As it happens the compressor maintains those values anyway, so
there's nothing much to gain by copying them into the stream object (though it
may be worthwhile nevertheless). Providing access via an getter method (and
thus hiding the implementation detail of /where/ the values were stored) would
be an obvious improvement. And that would also prevent anyone changing the
values -- which there is no reason for anyone ever to want to do.
So, I say that there are two separate design errors here. The choice of
protected access, and the decision to expose the data as fields, rather than
via a method. They make the class harder to use (since you have to mess around
with subclassing). They reduce encapsulation. They provide /nothing/ in
exchange.
Bad design.
-- chris
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- 2
- How come DefaultTreeCellRenderer's behaviour changes when called from different directories ?!?Hi,
I use the following lines in a TreePanel class I've written:
> DefaultTreeCellRenderer rend = new DefaultTreeCellRenderer();
> rend.setLeafIcon(null); rend.setClosedIcon(null); rend.setOpenIcon(null);
> tree.setCellRenderer(rend);
to see to it that when displayed, my tree will be as plain as can
be (no icon at all, no default small picture on the line where you
click to expand the node etc.).
When I use this class with a certain app., it works, I get what I
want, the tree appears in a thin black dotted line, with a little
squares containing a '+' sign when the nodes are closed, and a '-'
when they're expanded; but in another app. (I use THE VERY SAME
CLASS, the same .class file) instead of the small square with '+'/'-'
I have the Sun default small picture of a node you see ?, a tiny
circle with a dot in its middle and a little hyphen, and the line
is blue pale.
Anyone can explain me this behaviour ??
Thanks...
Regards,
Spendius
- 3
- Proper use of CharsetDecoder?I have some text originating from XML which does not
contain tags anymore but character references like "@" .
I thought about writing my own java.nio.charset.CharsetDecoder only
to find that this more or less forces me to also supply a my
own java.nio.charset.Charset class ... and probably a CharsetProvider ...
Since all I want is the conversion of "&64;" and the like
to a Java char I don't see the point of defining a Charset. The
CharsetDecoder alone would suit me well passed right into
a new InputStreamReader(InputStream, CharsetDecoder).
Certainly I misunderstand the importance of the connection between
CharsetDecoder and Charset and should choose a different route.
Should I implement my own Reader having the converions built in? This seems
equally odd.
Any other ideas?
Harald.
- 4
- Sound/Midi questionHi,
I need to extract the outgoing pcm audio data while playing midi.
With the getData() method of a SoundbankResource object,
I can only catch sampled audio data stored in a soundbank.
Is there any way I could catch (well, in real time more or less)
the actual sampled data produced by the synth (channels mixed
or unmixed) ?
Any indications or links welcome. Tx !
Ben
- 5
- Thread.sleep(10000)Is that true Thread.sleep(10000) will make current thread to sleep for
10 seconds?
I cannot use Thread.currentThread().sleep(10000) since sleep is a
static method of Thread. Right? Thread.currentThread() will return a
reference to the currently executing thread object.
- 6
- jstl does not work with foreachI am testing jstl, here is my jsp:
<%@ page language="java" contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<body>
<table border=1>
<tr>
<th>Value</th>
<th>Square</th>
</tr>
<c:forEach var="x" begin="0" end="4" step="2">
<tr>
<td><c:out value="${x}"/></td>
<td><c:out value="${x * x}"/></td>
</tr>
</c:forEach>
</table>
</body>
</html>
But the output in web broswer is :
Value Square
${x} ${x * x}
${x} ${x * x}
${x} ${x * x}
Why?
Thanks,
qq
- 7
- How to build a class w/ return value?I apologize for a newbie question, but I'm just starting with Java.
I'm trying to write a program which includes a class for checking if a
given text field has a value.
My basic logic would run something like:
A button is pressed
On that event, check if a text field has a value
if it does, return true, else return false.
So, I want to say in the action listener event for that button something
like:
if ( checkValue( txtFieldName ) == true)
do something
else
do something else
I'd then have a public funciton for checking the value
public checkValue( String txtFieldName )
{
if ( txtFieldName == "" )
return false;
else
return true;
}
This keeps giving me an error that a return code is needed for a public
class. If i put void in the class, I can run it but then nothing gets
returned.
Now, a bit of background - I've been doing VB for 12 years, so maybe my
thinking is flawed. If so, is there another way of going about this? I've
googled for the past hour and am very frustrated.
--
kai - email***@***.com - www.perfectreign.com
kai:/> format a:
Error: The DOS concept of formatting disk media is screwed.
To format a floppy, use "fdformat /dev/fd0"
and then "mkfs.minix /dev/fd0".
- 8
- delete all jvm'sI think I have a corrupt JVM on my machine. I would like to delete all
JVM's and just install the sun JVM. Could anyone tell me how to delete
all JVM's.
Aidy
- 9
- the iPhone Widget List!wow, already many apps / widgets for the iPhone and the thing doesn't
ship for 55ish hours! expect 1000's of these in a few months... they
really make apps on any other mobile phone obsolete!
http://www.iphonewidgetlist.com/
Those guys are sooooo screwed!
Learn how to make them fast, here:
http://webkit.org/blog/?p=87
Check the left side for the tools...
-
- 10
- Can you write to a file from a vector??How do I write to a file (using a FileWriter) from a filled vector??
I.E. Why can't I do this??
for (i = 0; i < myVector.size(); i++){
myWriter.write(myVector.elementAt(i));
myWriter.flush();
myWriter.close();
}
Thanks,
Steve
- 11
- OpenMapHello to all, I have a GREAT problem: I am using OpenMap in order to
realize one application GIS. I must implement the analysis function
spaces them "buffering" similar to that one of Arcview GIS. Who
knows to say me as I make to trace a polygon around to the cities as an
example? how I can find the coordinates just in order to make this?
Thanks.
- 12
- JSP and response object sizeIs there any way to know the size of a JSP (amount of bytes sent in the
response object)?
We need to know the size of the generated JSP when they are sent to the
client. I can only ask for the buffer size... but no the real amount of
bytes sent in the response object.
Any idea???
Thanks in advance
- 13
- Spring MVC Data Binding and user-friendly error messagesDear Spring MVC experts!
I am using a controller of type AbstractWizardFormController to
implement a multi-page form entry workflow. This controller operates
on a session-scoped command object which has a property of type
java.util.Date. On page 3 of the wizard, the user enters a date into a
textbox which will be bound to a java.util.Date property of the command
object.
In my controller, I am registering a custom editor as follows:
protected void initBinder(HttpServletRequest request,
ServletRequestDataBinder binder) throws Exception {
DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
CustomDateEditor editor = new CustomDateEditor(df, false);
binder.registerCustomEditor(Date.class, editor);
}
The data binding process is behaving as I would expect. If the user
types an invalid date into the textbox, then the field cannot be bound
and the framework adds a FieldError to the Errors object with code
"typeMismatch". Unfortunately, this FieldError results in a very
un-user-friendly error message being put on the screen. The text of
the message is:
"Failed to convert property value of type [java.lang.String] to
required type [java.util.Date] for property billDate; nested exception
is java.lang.IllegalArgumentException: Could not parse date:
Unparseable date: "xyz" "
It is not at all clear to me how to transform this ugly error message
to a user-friendly message. I can think of a number of possible ways
of doing this, but all seem overly-complex. Is there a standard way to
map data-binding errors to user-friendly messages? Thanks in advance
for your help.
Regards,
Craig
- 14
- Tomcat - Invalid Direct Reference To Login Page ( Workaround help )Hi,
I'm really happy that the "Invalid Direct Reference To Login Page" has
finally been fixed. However I am stuck using Tomcat 4.0.x ( and I
cannot recompile the app-server as it is a managed resource ) , and
the requirement to have a login box included in each page via a panel
is still there.
I've been looking for a workaround. According to the FormAuthenicator
Tomcat code, if the requestURI in the request is NULL, then the
"Invalid Direct Reference To Login Page" error is thrown.
I've written a proxy servlet called LoginProxy. Its job was to alter
the requestURI in the request object before posting to the
j_security_check target.
My login form would post to something like:
LoginProxy?j_username=my&j_password=test&j_forward_uri=/index.jsp
Great, apart from one small problem - HttpServletRequest is READ ONLY.
Damn. I had a look at the actual class heirarchy, and found that
HttpServletRequestFacade was the class that implemented
HttpServletRequest for Tomcat ( I am prepared write Tomcat specific
code, as long as it doesn't involve changing Tomcat itself. ).
HttpServletRequestFacade extends HttpServletRequestImpl, which
implements HttpRequest. HttpRequest does have write access, however
the code:
( ( HttpRequest ) a_Request ).setRequestURI( sForward )
gives a ClassCastException.
My other thought, was - if I just do a sendRedirect ( I was using
forward before ), won't the requestURI be the url of the LoginConfig
servlet.... I could cope with tomcat forwarding me back to the
servlet, I'd just have to add some extra logic. Alas, the request
still retains the null indicating to requestURI.
Can someone tell me how I can modify the request object, or even
create a new one?
Thanks
Ben
- 15
- Jar: protocol questionI've been using the Jar: protocol a bit in the last few days and I'd like to
know if this is a valid use of that protocol:
jar:file:!/Images/foo.gif
Basically, I'm trying to describe the location of a GIF that a program
should be able to find in one of the various jars that are on the classpath
used by the program.
Since 'this.getClass().getResource()' will search EVERY jar in the classpath
for the desired file, it shouldn't be necessary to specify the jar name.
Therefore, it seems to me that this should be valid notation for indicating
that the jar name isn't necessary in this case: the bang ('!') in the name
following the 'file:' suggests to me that the default jar(s), namely all of
the jars found in the classpath, will be searched for an Images directory
and a file named foo.gif within that directory.
Does that seem reasonable? If not, can anyone suggest a better notation to
use for my situation?
I can't find any discussion of this "special case" in the articles I've seen
about the Jar: protocol.
--
Rhino
---
rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies." - C.A.R.
Hoare
|
|
|