 |
 |
Index ‹ java-programmer
|
- Previous
- 1
- Please help me
"Andrew Thompson" <email***@***.com> wrote in message
news:email***@***.com...
> On Wed, 9 Jun 2004 19:16:11 +0100, April wrote:
> > "Andrew Thompson" <email***@***.com> wrote in message
> >> On Tue, 8 Jun 2004 16:38:14 +0100, April wrote:
> >>
> >>> I have recently got a new pc but for some reason I am unable to get
java
> > on
> >>> it. I have downloaded it several times and it has gone through the
> > motions
> >>> but still does not work. This is starting to annoy me as many web
sites
> > I go
> >>> to use java. Any ideas anyone please.
>
> > Yes I am running windows XP with internet explorer.
>
> Would you consider using a different browser?
>
> Before we go to what might be a great deal
> of effort, I should point out that internet
> explorer is the single most broken browser
> available.
>
> Installing a browser like Mozilla or Opera,
> then (if necessary) installing Java almost
> always goes smoothly on browsers that are *not*
> IE. Both Opera and Mozilla are also better
> at rendering valid web-pages, and offer things
> that IE simply cannot do.
>
> >> Do you know how to open the command line,
> >> also known as DOS?
>
> > I am not too sure about
> > opening the comand line.
>
> We will leave that for the moment, though
> that may be necessary if you really want
> to coax IE into understanding Java (though
> I cannot make any guarantees we will get
> Java working in IE even then)
>
> >> <http://www.physci.org/pc/properties.jsp>
> ...
> >> Once you download it, double click
> >> it and report what happens.
>
> >..I downloaded jtest but am unable to run it as I
> > have not got the programe to run it with. It asks me if I want to choose
a
> > programe to open it with or look on the internet. I looked on the
internet
> > but I am totally lost.
>
> I had hoped this was a more limited problem,
> but that test rules out those hopes..
>
> >..You can email me if you would likl to.
>
> I answer questions on usenet for free,
> email help costs money. ;-)
>
> For the moment I suggest you try one of
> the other fine browsers available, see
> if you can get Java working in it (which
> will probably be as easy as IE promised,
> but failed to deliver), and get back to us..
>
> --
> Andrew Thompson
> http://www.PhySci.org/ Open-source software suite
> http://www.PhySci.org/codes/ Web & IT Help
> http://www.1point1C.org/ Science & Technology
Ok I am going to try morzila and hope for no problems but if I do get any
then I just system restore.
- 1
- Petstore populate dbHello, why some applications like Petstore populate the db
when the application start? It's a java demonstration or is a
usual procedure?
TIA
- 1
- Apache Derby : create several instances.Hello.
I am using Apache derby database (Client network).
I see that when I create table it is created on an instance APP
(I don't know if instance is the correct word. sorry of my English).
I see that there are other instances (NULLID, SQLJ, SYS, etc).
Can I create an instance of my own in derby database, and how can I do that
?
(One instance may be used for repository, another for Datawarehouse, ...)
Another thing :
If I create several databases for te above reason (repository may be on
another db), how can I join them, when I am connected to database1, and want
to run a query that join both tables from database1 and database2 ?
Thanks :)
- 8
- String exceeding length - Getting absolute string lengthHello,
I am having a problem when inputting very long strings into a database.
The application I am writing can use different databases (thanks to
the wonders of JDBC) so this issue has been causing problems on both
Oracle and SQL Server.
Because one of the design objects was to support any JDBC compatible
database, a concern was raised about text widths. It was therefore
decided that the maximum column width for a VARCHAR would be a
configurable value. We theoretically knew that data could be more than
a single line so we introduced a sequence number to allow multiple
rows. (Don't ask me why we didn't use CLOBs instead, this is the
schema I'm stuck with.)
We now need to store base64 data in the same fields. The problem is
that in an example 4000 characters as defined by the Java string
object, its physical size is approximently 4430. This seems to be
because of the amount of mark-up involved, either in the base64 data or
possibly with the text between.
It occurs to me that while a non-ASCII value many be only a single
character in a unicode string, it is 6 characters in UTF-8. Therefore
I'm looking for a way of calculates the absolute length, rather than a
count of characters.
Is this possible or will I have to change the schema?
- 8
- how does picking and intersection works ?hi
I am interested i knowing how does the picking and intersection of shapes.
I am more concerned about picksegment and shape3d intersection. what's the
algorithm used and how effective it is. I am interested in the thoery of
all this than programming.
I am using pick segment to pind the intersection point, I have to find the
distance and than do some maths to find the intersection point, is there
an built-in function for this.
Thanks
sonu
- 10
- Compiling Java code using Ant within EclipseHi,
I am using Eclipse 3.0 to create a number of Java projects all located
within the same workspace. I had everything building ok but decided to
migrate to using Ant to try and manage things a bit better.
Now when I try and compile my app using Ant it does not find references
to external libraries. Now I suspect I need to specify the classpath in
the build.xml file, but is there a way of telling it to use the set of
libraries I have allready specified via Project->Properties->Java Build
Path->Libraries?
I currently have a build.xml file for each of the projects in my
workspace. Is there a way of creating a build.xml file which invokes
each of these in turn so that I can just do one big build?
Thanks for your help.
Andy
- 10
- Earth to Sun: When will Java support closures now?Vitaly Lugovsky <email***@***.com> writes:
> No. It was added to make source files more readable.
How can something be more readable when anything in effect can be
replaced by a macro? You are perhaps focusing on #include and the
like; but the following is bad:
/* In some header file included somewhere while resolving
a source file */
#define foo fie
/* In the source file - will end up as fie()*/
int foo() {
}
To quote Wikipedia: "The use of preprocessors has been getting less
common as recent languages provide more abstract features rather than
lexical-oriented ones. Indeed, the overuse of the proprecessor might
yield quite chaotic code. In designing a new language based on C,
Stroustrup introduced features such as inline and templates into C++
in an attempt to make the C preprocessor less relevant."
> > Yes, again because they avoid strong typing.
>
> How?
Because the template has no idea whether the type parameter actually
supports the operations used inside it, e.g. a method call. In Java,
you cannot use an operation on a parametrized type unless you declare
that yes, this type shall conform to this interface/class.
> C and C++ are not strictly typed.
Not C, but every resource I've seen on C++ claims it is (by default),
though how strong anything is when it can be cast away as will is a
different question. Maybe you define "strong/strict typing"
differently from the makers of C++ and Java?
> No. The reason is that there are too many monkeys around. Not so
> much humans. Ask yourself - why so much people listens "rap" and
> other popular crap, much more then good jazz or classics? Would you
> list this fact as an argument that rap is better? Popularity is a
> shit. Almost everything that is popular must be a shit.
I am getting the impression "Lisp" is a mis-spelling for "Elitist".
- 10
- Embedded underscoresI noticed Ruby has a convention I wish Java would implement. I think
it could be done without breaking existing code.
You simply permit the _ character to appear embedded in numeric
literals in Java source code. The lead _ would not be permitted, so
you still have no trouble telling a number apart from an identifier.
Then you might write a numeric literal like this:
2006_12_31
or
123_456_679
or
0x1234_5678
or
250_361_9093
or
1000_99
The _ is simply ignored. You use it to break the number up in
whatever way you choose to make it more readable.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
- 11
- 13
- Help needed with Realm authorization and AuthenticationDear All
I'm somehow new to weblogic workshop, and i want to have a role based
security for a project.
I used XML based security in web.xml and in web-config.xml . Now i have
a problem, regarding to my project, i want for example, if role A was
logged in, to show him A in one pages of pageflow (for example
index.jsp) and if another role was logged in, not to show him the A.
I mean I want to have access to Roles in the pageFlow, and by knowing
which Role change the sequence of pageflow, do you ever reach this
problem ? any suggestions ?
I think there must be an API for accessing the realm security for
Weblogic.
Shahin Sheidaei
- 13
- JSTL concatenateWell.. i wanna to concatenate a string... like:
String x;
while(true)
x += "x";
Then i get xxxxxxxxxxxxxxxxxxxx :)
How do i do that on JSTL?
Here is my code...
<c:set var="valorColuna" value="${rowValues.value}"/>
<c:forEach var="pk" items="${datagrid.primaryKeys}">
<c:set var="pkActual" value="${pk.columnName}"/>
<c:if test="${colunaActual == pkActual}">
<c:set var="pkValor" value="${valorColuna}{$valorColuna}"/>
I have tried without operators but it does not work. JSTL functions
also seem not to help (no concat function!)...
Any sugestions?
Thanks,
JF
- 16
- JSR 211 CHAPIHello everybody
Does anyone know if some mobile devices implement JSR211?
Thanks for help
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
- 16
- sound in JavaHi all!
How is possible to change frequency at java's command beep()? Or
somehow? I need two different beeps in my application. They should be
only a kind of beeps and not playing MIDI or something similar.
Thanks,
Branko
- 16
- Global Servlet FilterI'm writing a servlet filter that will keep track of the number of hits
for my site but the site is composed of several web applications. I'd
like to write it in such a way as to allow it to work with all of the
applications at one time, instead of tallying individual counts by hand.
Any pointers or suggestions are appreciated.
Thanks,
-Makr
- 16
|
| Author |
Message |
Raymond DeCampo

|
Posted: 2006-1-12 6:05:00 |
Top |
java-programmer, Handling of DST in java
Stefan Ram wrote:
> Raymond DeCampo <email***@***.com> writes:
>
>>Perhaps, but that is not something the government can easily
>>legislate nor enforce. (Do you really want the time police
>>checking to see if you are working an hour later?)
>
>
> Something like this is done here for the closing-time of
> stores. So, since the government already enforces
> opening-times and closing-times of stores, they could change
> these and they could change to times for schools, universities
> and their own agencies. Some other institutions then might
> follow.
>
By "here", I assume you mean Germany, based on what you wrote below.
There are no such laws in the US with the exception of some states that
have "blue laws" that only apply on Sundays.
Your suggestion sounds like a nightmare where you never know what is
going to be available when.
>
>>There is nothing sacred about the time zone.
>
>
> It is only that, given two time stamps of the legal time for
> a location in Germany, like
>
> 2005-07-10T21:38:10 and
> 1960-07-10T21:38:13
>
> it would be a typical programming task to write a routine
> that can calculate the difference between them in seconds.
> And this would be much more easy, without the need to have
> to find out all details of regulations for DST in Germany.
>
> After WWII, in Germany, there were several different zones
> controlled by different countries and some details for the DST
> differed between these zones. In one zone, there was a special
> DST with two hours added for the mid of summer. Then there are
> reports that there were years with DST even in winter. And so
> on.
>
> All these special regulations make it very difficult to
> write such a routine.
>
This is why any environment worth its salt has these routines available
in a standard library. Asking people to forgo a substantial reduction
in energy use for the (supposed) convenience of computer programmers is
ridiculous. Remember that computers are not an end unto themselves,
they are tools here to serve.
Ray
--
This signature intentionally left blank.
|
| |
|
| |
 |
Raymond DeCampo

|
Posted: 2006-1-12 6:05:00 |
Top |
java-programmer >> Handling of DST in java
Stefan Ram wrote:
> Raymond DeCampo <email***@***.com> writes:
>
>>Perhaps, but that is not something the government can easily
>>legislate nor enforce. (Do you really want the time police
>>checking to see if you are working an hour later?)
>
>
> Something like this is done here for the closing-time of
> stores. So, since the government already enforces
> opening-times and closing-times of stores, they could change
> these and they could change to times for schools, universities
> and their own agencies. Some other institutions then might
> follow.
>
By "here", I assume you mean Germany, based on what you wrote below.
There are no such laws in the US with the exception of some states that
have "blue laws" that only apply on Sundays.
Your suggestion sounds like a nightmare where you never know what is
going to be available when.
>
>>There is nothing sacred about the time zone.
>
>
> It is only that, given two time stamps of the legal time for
> a location in Germany, like
>
> 2005-07-10T21:38:10 and
> 1960-07-10T21:38:13
>
> it would be a typical programming task to write a routine
> that can calculate the difference between them in seconds.
> And this would be much more easy, without the need to have
> to find out all details of regulations for DST in Germany.
>
> After WWII, in Germany, there were several different zones
> controlled by different countries and some details for the DST
> differed between these zones. In one zone, there was a special
> DST with two hours added for the mid of summer. Then there are
> reports that there were years with DST even in winter. And so
> on.
>
> All these special regulations make it very difficult to
> write such a routine.
>
This is why any environment worth its salt has these routines available
in a standard library. Asking people to forgo a substantial reduction
in energy use for the (supposed) convenience of computer programmers is
ridiculous. Remember that computers are not an end unto themselves,
they are tools here to serve.
Ray
--
This signature intentionally left blank.
|
| |
|
| |
 |
Roedy Green

|
Posted: 2006-1-12 6:07:00 |
Top |
java-programmer >> Handling of DST in java
On Wed, 11 Jan 2006 11:55:17 -0000, "Chris Uppal"
<email***@***.com> wrote, quoted or indirectly
quoted someone who said :
>speed limit would change
I wonder how soon it will be economical to replace all painted speed
limit signs with electronic ones that can be controlled to give
sensible numbers depending on visibility, slipperiness, nearby
accidents and simply to optimally regulate traffic flow to prevent
congestion. You could also have a sign an freeway on ramp to let you
know when an open slot was coming, and to ramp up to speed to meet it,
or to just stay off the freeway for a while since adding more cars
would reduce the aggregate flow.
It blows my mind how people insist on driving the speed limit in the
slickest ice, on the first snow when people are caught without snow
tires, or in pea-soup fog. You sometimes get multiple car pileups as a
result.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-1-12 6:38:00 |
Top |
java-programmer >> Handling of DST in java
"Raymond DeCampo" <email***@***.com> wrote in message
news:dSdxf.63626$email***@***.com...
> Stefan Ram wrote:
>> Raymond DeCampo <email***@***.com> writes:
>>
>>>It has been shown that daylight saving time results in less
>>>energy consumption.
>>
>>
>> "less" in relation to what?
>
> I think that it is clear that the statement above compares daylight saving
> time to the lack of daylight saving time.
Why would DST result in energy savings? (Not rhetorical, I really don't
know)
- Oliver
|
| |
|
| |
 |
nag

|
Posted: 2006-1-12 18:08:00 |
Top |
java-programmer >> Handling of DST in java
Hi ,
Thanks very much.
This is right that JAVA gregorian calendar has got this bug. When DST occurs
in Iran ( time 23:59:59 -> 01:00:00) the calendar returns wrong time. But it
works when DST occurs in Egypt ( time 23:59:59 -> 01:00:00).
"nag" <email***@***.com> wrote in message
news:dq05t5$en7$email***@***.com...
> Hi,
> Does java handle DST automatically ?
> I'm using java Gregorian calendar to get the time/date. Does this
> automatically give the local time/date iirrespective of DST or special
> handling should be done ?
>
|
| |
|
| |
 |
Raymond DeCampo

|
Posted: 2006-1-12 21:48:00 |
Top |
java-programmer >> Handling of DST in java
Oliver Wong wrote:
> "Raymond DeCampo" <email***@***.com> wrote in message
> news:dSdxf.63626$email***@***.com...
>
>>Stefan Ram wrote:
>>
>>>Raymond DeCampo <email***@***.com> writes:
>>>
>>>
>>>>It has been shown that daylight saving time results in less
>>>>energy consumption.
>>>
>>>
>>> "less" in relation to what?
>>
>>I think that it is clear that the statement above compares daylight saving
>>time to the lack of daylight saving time.
>
>
> Why would DST result in energy savings? (Not rhetorical, I really don't
> know)
>
What happens is that people use more lights, etc. at night than in the
morning. So moving an hour of daylight from the morning to the evening
cuts down on energy use. There are more details at
<http://www.energy.ca.gov/daylightsaving.html>
if you are interested.
Ray
--
This signature intentionally left blank.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- "CallByName" in Java?Hello,
is there any way to do the job "CallByName" (as in VB) for Java? We want to
build a hashtable which has the
names of java methodes with their parameters, and later all the methodes
will be called only by
names automatically.
Thanks,
Le
- 2
- Tomcat and QueueHi,
Does any one know about the Coyote connector queue in Tomcat?
How does it work? if a connection gets queued then when does it get a
thread? will it be given preference over the requests arriving after
its arrival??
rgds,
Prashant
- 3
- ADT's vs. interfaceswhat is the differences between ADT's and interfaces? also what are
abstract classes? can you also include examples?
thnks
- 4
- 5
- setCursor() for a ContentPanel
Joana,
I was having a similiar problem and did some searching and found the
following forum:
http://forum.java.sun.com/thread.jsp?forum=57&thread=110928
Basically, I think you need to use setCursor on the GlassPane. I used
the following code in my application and it seems to work.
Component gp = getGlassPane();
gp.setVisible(true);
gp.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
//do your computations
gp.setCursor(Cursor.getDefaultCursor());
gp.hide();
Hope this helps,
Kin Wong
On 14 Jun 2003 09:09:45 -0700, email***@***.com (Joana)
wrotE:
>Hi!
>
>May I ask you for a favour ... a hint would please me a lot ...
>
>When the Graph is completely shown in the window I can see no
> WAIT_CURSOR, but DEFAULT_CURSOR.
>When I move the mouse out of the window and hit back the window area I
>get the WAIT_CURSOR.
>
>Could You please tell me, where is my bug or better what should I do,
>to get the WAIT_CURSOR during the graph computing process
>
>Thanks a lot for every single answer!
>
>Best regards,
>Joana
- 6
- What is J2EE and an application server?Can someone explain to me what java enterprise edition is?? I've been
looking into the web for some info, but can't really make sense of the
info found. Is there also an tutorial avaible?
I've found one at the java site, but there it was attached to an
application server. And that's my second question, what is a
application server and what can u do with it??
Thnx someone.....
- 7
- USENIX Security '08 Call For Papers Reminder---------------------------------
Call for Papers
17th USENIX Security Symposium
July 28-August 1, 2008
San Jose, CA, USA
http://www.usenix.org/sec08/cfpb/
Submissions Deadline: January 30, 2008
---------------------------------
Dear Colleague:
I'm writing to let you know that the paper submissions site for the 17th
USENIX Security Symposium (USENIX Security '08) is now open and can be
found here:
http://www.usenix.org/events/sec08/cfp/submit_form.html
Please submit all work by January 30, 2008.
Refereed paper submissions are solicited in all areas relating to
systems and network security, including:
* Adaptive security and system management
* Analysis of network and security protocols
* Applications of cryptographic techniques
* Attacks against networks and machines
* Authentication and authorization of users, systems, and applications
* Automated tools for source code analysis
* Botnets
* Cryptographic implementation analysis and construction
* Denial-of-service attacks and countermeasures
* File and filesystem security
* Firewall technologies
* Forensics and diagnostics for security
* Intrusion and anomaly detection and prevention
* Malicious code analysis, anti-virus, anti-spyware
* Network infrastructure security
* Operating system security
* Privacy-preserving (and -compromising) systems
* Public key infrastructure
* Rights management and copyright protection
* Security architectures
* Security in heterogeneous and large-scale environments
* Security policy
* Self-protecting and healing systems
* Techniques for developing secure systems
* Technologies for trustworthy computing
* Usability and security
* Voting systems analysis and security
* Wireless and pervasive/ubiquitous computing security
* Web security
Please note that the USENIX Security Symposium is primarily a systems
security conference. Papers whose contributions are primarily new
cryptographic algorithms or protocols, cryptanalysis, electronic
commerce primitives, etc., may not be appropriate for this conference.
Submissions are due January 30, 2008, 11:59 p.m. PST
(firm deadline).
For more details on the submission process, please see the complete
Call for Papers at:
http://www.usenix.org/sec08/cfpb/
We look forward to receiving your submissions!
Paul Van Oorschot, Carleton University
USENIX Security '08 Program Chair
email***@***.com
---------------------------------
Call for Papers
17th USENIX Security Symposium
July 28-August 1, 2008
San Jose, CA, USA
http://www.usenix.org/sec08/cfpb/
Submissions Deadline: January 30, 2008
---------------------------------
- 8
- Finding BeanInfo for superclass?Hi,
I'm having a problem or a misunderstanding with BeanInfo.
I have a class Alpha, and a class Beta. Beta extends Alpha. I've
created an AlphaBeanInfo class.
The following code works fine:
BeanInfo info = Introspector.getBeanInfo(Alpha.class);
...
Problem is though when I call the following code:
BeanInfo info = Introspector.getBeanInfo(Beta.class);
...
AlphaBeanInfo is not returned, nor are any of its methods called
(verified via debugging)
Shouldn't this be returned by the Introspector? I could of course write
a BetaBeanInfo, but this seems silly to have to do this.
Any ideas/clarifications?
Many thanks,
M
- 9
- What is Delegation, versus inheritence, examples in C or C++"Bernard" <email***@***.com> wrote:
> I apologize if this has been brought up here before.
> Searching through the newsgroup I found variants of
> my question, but not exactly what I am thinking about.
>
> I am trying to learn UML from a well publicized book,
> "Instant UML" Wrox press by Pierre-Alain Muller.
>
> While I may admire the book for its conciseness, I
> have difficulty following its examples and explanation
> of Delegation. He explains Delegation mechanism by
> a diagram of client communicates with an interface that
> propagates questions to one or more delegates. It is
> not clear but is on page 53. Next page he has some
> discussion of the "covariance problem" which he discusses
> earlier but never defines, leaving a vague understanding.
> On p54, he also has example of how inheritence is simulated
> by hand using delegation and talks of X-windows which is
> written "entirely in C". There is no example. Where
> ever I was able to understand his discussion, it was
> due to prior knowledge of the field. If some kind
> soul has been able to follow this book and can give
> explanations with reference to page numbers that would
> be very nice.
>
> Thanks++,
I looked for your concept of "Delegation" in the only book that I have
on UML. This is by Craig Larman. Its index does not evennnnn list it.
You should expand your query to other language groups. I can do it
for you. OOP implementation questions have been asked there before
Monica
- 10
- Preverifier error in Sun Java Wireless ToolkitHi ppl,
I'm using an SDK provided by my client and building a MIDlet
application which does ApiCalls on this SDK. I copied all the jar files
from the SDK and put it into my lib folder of my MIDlet project so that
it could add it to the classpath during build. But when I build it
shows the following error:
Error preverifying class com.myClient.sdk.attributes.AttributesMaster
VERIFIER ERROR
com/myClient/sdk/attributes/AttributesMaster.addErrorElements(Lorg/w3c/dom/Document;Lorg/w3c/dom/Node;[Lcom/myClient/sdk/attributes/model/ErrorSet;)Lorg/w3c/dom/Node;:
Cannot find class org/w3c/dom/Node
If I don't use that particular jar, and the rest of the jars, it
shows this error:
Error preverifying class com.myClient.sdk.call.AddDisputeCall
java/lang/NoClassDefFoundError: com/myClient/sdk/ApiCall
I read that this is because I might be using a class library created
for the J2SE platform and hence it doesn't work for the J2ME Wireless
toolkit which uses a limited JVM and APIs. Is there any way I can merge
it into my MIDlet so that it will use it?
P.S: I'm comparatively new to J2ME :( Also i'm using the Sun Java
Wireless Toolkit 2.3 Beta. Please help...
Thanks in advance,
Sajida Abdul Salam
- 11
- Labels and paint questions...I have an applet, here
http://www.aquaticwhirlpools.com/sean/selectMenu.html
What I need is for the select menus to have some space between
them so that I can have the orange/yellow images next to each one.
As you can see, there is a bit of one of the images next to
"by product size" and a full image next to "by model".
The space between the two "by product size" and "by shape" is
created by an empty label. The image is placed in the paint method.
The problem is that without the empty label, the menus have no space
between them, as with "by shape" and "by model". Is there any other
way to create that space... or is there a way to make the images 'paint'
on top of the labels?
Thanks for any help.
- 12
- Displaying multiple beans in a struts formI have a list of beans that I retrieved from a database. These beans
are all of the same class. Now I want to display these beans in a
struts form so that the user can modify the data in the beans and save
it back to the database.
Can anyone help with this problem? Is there any sample code out there
that would show how to do this?
Thanks
- 13
- Will MS be less evil now?I don't understand Gates. If he wants to do good deeds and be a
philanthropist, why limit such good deeds to healthcare and
education? Why not also do a good deed in the computer
industry? In this industry he is known less for his innovations
than for tactics such as sabotaging Java and cutting off
Netscape's air supply. He has done the industry and consumers
immeasurable harm, for example, by freezing the development
of web browsers. Here's an idea for Gates: Unfreeze the web
browser. Take web browsing to the next level. Start by
implementing SVG, the W3 standard for vector graphics, in IE.
- 14
- JBOSS and IPlanet setupHi,
This is a generic architectural question. I am not sure if this can
be posted at this forum.
I am using JBOSS as App server and Iplanet as WebServer and Reverse
Proxy plugin to forward all the JSP requests from Iplanet to JBOSS.
Both Web Server and App server are on different boxes.
When I request a JSP page, its coming up fine. But if that JSP page
has a 'response.sendRedirect' in it, then its failing to redirect to
the specified page. Instead its going to the webserver root.
Also, this behaviour is not consistent - meaning, sometimes it goes
through and sometimes its coming back to webserver root.
Using 'response.forward' fixed the problem.
But I do not want to use 'forward' in the web application because of
the obvious diff between 'forward' and 'redirect'. (Using the forward
doesn't change the URL and upon browser refresh, the same form gets
submitted again and again)
Are there any alternatives to fix the redirect problem?
Any help is appreciated.
Thanks,
-Sudheer
- 15
- Junit: overriding original class private methodsI have a class that when run will call a private sendEfvent() method
that sends data to an external process. I would like to override that
behavior in testing and just report what is set to avoid the
complications, etc of having to use external processes during unit
testing.
I don't think I can just use an assertTrue() because I also want to
know how many times this private method is called (i.e. is it sending
the correct number of copies out)?
Is there a way I can cause Junit to stop the JRE from calling the true
sendEvent() method and instead call something in my test class??
-Robert
|
|
|