| regarding JDk 141 and JDK 122 for linux 64 bit Platform |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- java/69733: [new port] java/eclipse-sysdeo-tomcat, SysdeoSynopsis: [new port] java/eclipse-sysdeo-tomcat, Sysdeo Eclipse Tomcat Launcher plugin
Responsible-Changed-From-To: freebsd-java->nork
Responsible-Changed-By: nork
Responsible-Changed-When: Thu Jul 29 03:04:20 GMT 2004
Responsible-Changed-Why:
I'll handle this.
http://www.freebsd.org/cgi/query-pr.cgi?pr=69733
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 2
- Customized form authentication with JSPLongwinded explanation ahead--I want to make sure I don't leave any
important details out.
I'm maintaining a client/server system that we use for automated grading of
student CS assignments. The basic
architecture consists of the grading server app itself and a servlet client
for student access, which runs on Tomcat in our case. Right now, the
servlet is starting to get large, as it's hardcoded to print one of several
pages depending on a URL parameter, and I'd like to break this into several
JSP pages instead.
We don't use any kind of standard authentication method in the servlet. The
servlet login page accepts the student's username/password as well as the
course they're enrolled in (chosen from a list), and we authenticate this
inside doGet() by passing a custom message object to our grading server,
which checks whether the student is enrolled in the course they chose, as
well as whether their username/password is valid. If their information is
valid, we store it in the HttpSession object and use that as they navigate
the site.
The problem is, I'm not sure how to translate this into JSP. I've seen some
examples using j_security_check, j_username, etc., but from what I can tell,
it looks like those are handled completely by the webserver, and requires
the user information to be stored in some file that the webserver can
access. This isn't a solution for us, because the grading server may not
even be on the same physical machine as the webserver.
So basically, here's what I'm looking for: A form-based authentication
method that lets me verify the student's username, password, and course
enrollment all at once, and store that in a session that I can use across
all the JSP pages. Obviously, I'd like all the pages to be protected so
they redirect to the login page if the user isn't logged in this session,
and I'd also like to be able to handle situations where if the session times
out and the user tries to navigate, it returns him to the login page, and
then redirects him to whatever original page he was trying to navigate to
when he successfully logs in.
From scouring other newsgroup posts, it looks like I might need to create my
own custom Realm (?), but I'm not sure where to start. I'd also like
something that's not tied specifically to Tomcat, but would work on most
popular JSP-supporting webservers, if possible.
If anyone can give me some advice or a push in the right direction, I'd
really appreciate it!
Thanks,
- 7
- GUI simple pong newbieHello i have just recently finished completing the code to a simple applet
that bounces a ball around the screen i am just wondering what it would
take to turn that into a pong program where would i set up the method for
the paddles and how to i distinguish between events of ball movement key
pressing and collisions?
--
Message posted via http://www.javakb.com
- 7
- Clever way to change fonts on the fly...??blah wrote:
> All the various Swing componets I use have their "font values" set to a
> global font that is discovered in a config file when my app loads up. Now
> if I change the value, my application needs to be restarted in order to get
> the new font.
>
> I know I can go around and manually set the new chosen font into each and
> every component... but I'm wondering if there's an easier way to handle all
> of this...
>
> Anyone face this or have any suggestions?
>
>
Swing gets its fonts via UIManager. Override the default values and then
follow the procedure for changing the Look And Feel.
- 7
- Getting plugin info from internet web serverHi,
I have written an application that is used for programming
flash/SRAM devices that are soldered to a PCB. The application is written
in Java, and I have split the functionality between the main application
and plugins that can be user selected then loaded. Currently I have 3
different plugins, for programming devices via JTAG and via a serial port.
What I would like to do is download information relating to the
plugins (version, dependencies, jar filename etc) and the plugins
themselves (packaged as jar files) from the internet. I plan to include a
file manager in my main application to access this information from a web
server, so that a user of the software doesn't have to manually download
plugins and copy them to the appropriate place in their local filesystem.
In addition, the file manager will also be able to check that the plugins
on a user's systems are the latest, compared to those available on the
web server.
My question is what is the easiest way to do this? If possible, I would
like to keep the web server side as simple as possible.
Thanks,
Paul Taylor.
--
Remove _rem_ before replying by email.
- 8
- New EC200 embedded Java controller releasedSnijder Micro Systems just announced the public release of the second
generation of their Embedded Java?Controller (EJC? product line,
codenamed EC200.
The EJC is a family of embedded controllers that implement a
full-fledged Java platform for network-enabled and standalone
applications. The new EC200 modules provide an Ethernet based
connection to the Internet and numerous interfacing possibilities
including graphic LCD display, digital I/O, analog inputs, high speed
serial ports, dual I2C bus, Dallas 1-Wire, etc.
The software integrates Tao Group's intent?technology, featuring an
advanced Real Time Operating System and a Sun-certified Java Virtual
Machine (JVM) that combines unrivalled performance with minimal
footprint, due to the tight integration between kernel and JVM and to
the advanced translation technology which compiles all Java bytecode
to native code before execution. Java APIs are provided for efficient
access to hardware resources such as I/O ports, system memory and
memory-mapped devices, interrupts, and onboard peripherals. This
allows developers to adopt an all-in-one approach where applications,
system components, and even device drivers can be written entirely in
Java, without compromising on flexibility or performance.
More details can be found in the EJC website:
http://www.embedded-web.com/
- 9
- Problem to download a file from 2 browsers at the timeI have this JSP that download an excel file.
It works fine if I use only one browser at the same time.
The problem is when I try to do this but from 2 browsers at the same
time. From each browser I can download a part of the file but not the
complete file.
It seems the browsers are sharing the bandwidth and when it starts to
download a file the other stops.
I have look the logs, and I saw the file has downloaded to the computer
and while the the jsp is working.
I don't undestand why the file has finished to download and while the
jsp is still executing.
Can you help me please?
do anybody try this JSP and tell me if the result is the same as me?
------------------------------------------JSP
-----------------------------------------------------------------------------------
<%@page contentType="application/vnd.ms-excel"%>
<%@ page language="java" import="java.io.*"%>
<%@ page language="java" import="java.util.*"%>
<%
Date fecha = new Date();
java.sql.Date fechaSQL = new java.sql.Date(fecha.getTime());
Calendar calendario = Calendar.getInstance();
calendario.setTime(fecha); // fecha es el Date de antes.
String strHour = String.valueOf( calendario.get(Calendar.HOUR) );
String strMinute = String.valueOf( calendario.get(Calendar.MINUTE) );
String strSecond = String.valueOf( calendario.get(Calendar.SECOND) );
String nombre = "FILE" + strHour + strMinute + strSecond + ".xls";
System.out.println( " IN OF " + nombre );
response.setContentType( "application/x-download" );
response.setHeader("Content-type","application/vnd.ms-excel");
response.setHeader("Content-Disposition","attachment; filename=\""
+ nombre + "\"");
System.out.println( nombre + " START" );
for (int l=0;l<30000;l++){
System.out.println( nombre + " " + l );
for (int k=0;k<250;k++){
out.write(nombre + " : ("+ l + "," + k + ")" + "\t" );
}
out.write("\n");
}
System.out.println( nombre + " END" );
%>
- 9
- Struts--dynamic input param?I'm just getting started in Struts, and have hit an issue. I have a user
registration screen which I'd like to use for new users to register and for
existing users to view and update their information. No problems so far. My
question concerns what happens if the user presses the "Cancel" button. I
use <html:cancel /> to place it, then use the isCancelled method in my
DispatchAction to detect it. I was planning on calling the same method
(save) for both creating and update a registration, but then how do I know
where to go on a Cancel? Is there a way around this or should I use two
different methods? It just seems like it would be code duplication. Not to
mention that I'd have to come up with a way to dynamically create a form
action to point to the appropriate method. That's why I'm wondering if
there's a more elegant solution.
- 11
- font.properties.zh_TW for 1.4.2
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
The font.properties.zh_TW file in native jdk14, inherited from
native jdk14 does not work as expected, and here is the right one for
it. Could you merge this into the next patchset?
Thanks!
--
Clive Tong-I Lin <email***@***.com> | http://tongi.org | PGP KeyID: A008C03E
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
--AqsLC8rIMeq19msA--
- 13
- ports/113467: Multiple "missing return value" errors buildingThe following reply was made to PR ports/113467; it has been noted by GNATS.
From: "Robert Backhaus" <email***@***.com>
To: email***@***.com, email***@***.com
Cc:
Subject: Re: ports/113467: Multiple "missing return value" errors building JDK on current
Date: Tue, 3 Jul 2007 13:14:32 +1000
Confirming that this is still an issue with current patchset. I am
bootstrapping with diablo-jdk-1.5.0.07.01_5 for freeBSD 6 (from
ports).
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 13
- JUnit, writing todo tests...
Does anyone know if its possible to write "todo" tests with Junit?
That is tests which are expected to fail because they have not been
implemented yet, but will not actually show up as a failure.
The perl test harness implements this and it's very useful because you
can use it to mark up tests for functionality that you are going to
implement but have not yet.
Cheers
Phil
- 14
- Bombay to Bangkok wallpapers
Alibaug , Bombay to Bangkok, Sunday,Tashan ,Meera Bai Not Out
Aaja Nachle , Bhool Bhulaiyaa , Dus Kahaniyaan , Go , Goal , Jodhaa
Akbar ,
Johnny Gaddaar , Mumbai Salsa , Singh is King ,Taare Zameen Par ,
Nanhe Jaisalmer, No Smoking , om shanti om , Rama Rama Kya Hai
Dramaaa , Saawariya ,
Singh is King, Race ,Good Luck ,Halla Bol ,Strangers, Gauri,
Jab we met,Welcome, Karzzzz
And maney more .................
visit http://www.desktopatoz.com for nice And houge collection of
wallpapers. its amazing websit for wallpapers
enjoy
http://www.DesktopAtoZ.com
- 14
- How do I get rid of the print options from JavaHelp 2.0M.Hamer wrote:
...
> I posted a similar message on comp.lang.java.help so I'm sorry if
> you're having to read it again but I've had no responses from that
> group and I need this bit done quickly.
What, you lose money if the contract
is late? Elance it! I am confident they
would care about your deadline.
> I've just downloaded the JavaHelp 2.0 zip file as part of an ongoing
> investigation and implementation within our coding standards. I work
> for a company that does software for the military and as such the
> software we create is classified. There was a security issue with
> JavaHelp 1.1.3 in that we couldn't easily remove the print option.
> With JavaHelp 2.0 is there a way of disabling the print options? We
> cannot have the ability to print out the help as it carries the same
> classification as our software.
Here's a thought.
Ensure the user and software are physically
in the same place, make that place secure.
A double tumbler money safe should do
the trick.
Lock the safe, and drop in over the side of
a ship positioned above a deep ocean trench.
That should keep the data (relatively) safe.
- 14
- using proguard for lib jarsI need to shrink app jar itself and lib jars too, but it dosent work.
I have unpacked jars into a dir, put app classes threre and made a big jar.
Then i used proguard but it still didnt work.
- 16
|
| Author |
Message |
Jaggu

|
Posted: 2007-1-6 17:01:00 |
Top |
java-programmer, regarding JDk 141 and JDK 122 for linux 64 bit Platform
Hi All.
I am porting my application from 32 bit linux to 64 bit linux. For
my application i am using JDK 122 and JDK 144. Do these versions have
downloads available for 64 bit linux. If yes, Please let me know from
where i can get these downloads,
Thanks in advance.
Ranjan
|
| |
|
| |
 |
Tom Hawtin

|
Posted: 2007-1-6 21:29:00 |
Top |
java-programmer >> regarding JDk 141 and JDK 122 for linux 64 bit Platform
Jaggu wrote:
> I am porting my application from 32 bit linux to 64 bit linux. For
> my application i am using JDK 122 and JDK 144. Do these versions have
> downloads available for 64 bit linux. If yes, Please let me know from
> where i can get these downloads,
JDK 122 and JDK 144? Do you mean JDK 1.2.2 and 1.4.2 (there was no 1.4.4)?
Sun provides a 64-bit Linux version of 1.4.2 - for Itanium.
http://java.sun.com/j2se/1.4.2/download.html
1.4 is really old. Why not try new 1.6, which is available for AMD64 Linux.
http://java.sun.com/javase/downloads/
Tom Hawtin
|
| |
|
| |
 |
Lew

|
Posted: 2007-1-7 1:37:00 |
Top |
java-programmer >> regarding JDk 141 and JDK 122 for linux 64 bit Platform
Jaggu wrote:
>> I am porting my application from 32 bit linux to 64 bit linux. For
>> my application i am using JDK 122 and JDK 144. Do these versions have
>> downloads available for 64 bit linux. If yes, Please let me know from
>> where i can get these downloads,
Tom Hawtin wrote:
> JDK 122 and JDK 144? Do you mean JDK 1.2.2 and 1.4.2 (there was no 1.4.4)?
>
> Sun provides a 64-bit Linux version of 1.4.2 - for Itanium.
>
> http://java.sun.com/j2se/1.4.2/download.html
>
> 1.4 is really old. Why not try new 1.6, which is available for AMD64 Linux.
>
> http://java.sun.com/javase/downloads/
Just to reassure the OP, Java 6 should run your code just fine. If you are
recompiling source you can set the source level on the rebuild to match your
code if you are using identifiers like "assert" or "enum" that have become
keywords, or to suppress warnings related to generics features.
I am running AMD64 Fedora 5 Linux. I found out that you need to use the 32-bit
versions of Java to support applets and webstart, although that might have
changed since I last checked. Unfortunately for me, even with the 32-bit Javas
the Firefox that came with Fedora 64 doesn't love applets, and I haven't yet
bothered to kick it out for a custom install.
- Lew
|
| |
|
| |
 |
Nigel Wade

|
Posted: 2007-1-8 18:48:00 |
Top |
java-programmer >> regarding JDk 141 and JDK 122 for linux 64 bit Platform
Jaggu wrote:
> Hi All.
> I am porting my application from 32 bit linux to 64 bit linux. For
> my application i am using JDK 122 and JDK 144. Do these versions have
> downloads available for 64 bit linux. If yes, Please let me know from
> where i can get these downloads,
> Thanks in advance.
> Ranjan
What exactly are you trying to port?
Java shouldn't distinguish between platforms, so your "32bit" Java application
should run perfectly happily in a 64bit JVM, as would a "64bit" Java
application in a 32bit JVM. I do nearly all my development work on a 32bit
desktop, the jars work perfectly fine on both 32bit and 64bit systems. How
would you publish applets/WebStart if you needed different jars for 32bit and
64bit clients?
Also, many 64bit Linux distros. will happily run 32bit applications (even for
the Itanium, albeit rather slowly). So you can most likely run a 32bit Java SDK
on your 64bit Linux (you may need to install 32bit support packages/libraries,
that will depend on the Linux distro.).
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : email***@***.com
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- For those Deprived Of HomeworkNot everyone is fortunate enough to have the money to pay professors
to think up homework problems for them. For the rest of you who are
new, and think you need the exercise, here is a problem for you to
tackle:
There are even simpler ones at:
http://mindprod.com/projects/beginner.html
Predator Prey
This exercise teaches basic Collections and generics. Pick an
ecosystem. Create a set of Species objects that contain some facts
about each species such as name and average adult weight in k.g. Now
accept facts about predator and prey relationship encoded with a
method:
public static void eats( String predator, String prey );
There should be a method:
public static Species[] whoEats( String prey )
and there should be a method:
public static Species[] whoIsEatenBy( String predator )
and finally:
// All Species heaviest first
public static Species[] speciesByWeight()
Implement the predator->prey and prey->predator lookups with
one-to-many mappings using a HashMap keyed by species name whose value
is an ArrayList of Species that you maintain in sorted order by
species name. When you insert, use Collections. binarySearch to find
the new insertion point.
Implement speciesByWeight using a Collections.sort rather than a
TreeSet. Make sure you include all species, without duplicates.
For bonus points, implement:
public staticSpecies[] whoIsIndirectlyEatenBy( String predator )
Watch out for endless recursion.
Note that I have not told you all the pieces you will need to create
to solve the puzzle. I am not totally spoon feeding you in this
exercise.
see http://mindprod.com/jgloss/comparable.html
http://mindprod.com/jgloss/hashmap.html
http://mindprod.com/jgloss/binarysearch.html
http://mindprod.com/jgloss/sort.html
http://mindprod.com/jgloss/arraylist.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
- 2
- J2EE Explanation ?Hi,
I've been using J2SE for a fair while and my eye has been taken off the ball somewhat with regard to
J2EE. I see all sorts of buzzwords flying around like Tomcat, Struts, Servlets, JSP ...... Can any
one point me in the direction of a good tutorial that pulls all these words into an coherent
explanation. It would be nice if I have a nice rounded picture of what its all about before I dive
into learning it.
Thanks
Steve
--
Please remove 'y' from return address to reply (Anti Spam !!)
- 3
- Java Regular Expression throws StackOverflow ExceptionI was just trying to use a regular expression for finding me the
patterns which match
X(\\n|\\r|.)*? Y
What this means is to find the pattern which matches any String that
starts with X followed by any number of characters or new lines or new
carriage returns and finally followed by Y.
To summarize find the pattern which matches the block X ........ Y
which can be separated by any characters/newlines/tabs etc.
Ex:
X
AFJALFJA
Y
should be selected.
When i use the pattern shown above the java prog throws me
StackOverflow exception. Can you throw me some light into
pattern/expression modification??
Thanx
Sravan
- 4
- cvs emailHi there
I have 2 computer, one is winxp and eclipse (java IDE) is install on that
machine (192.168.1.100), and the other machine is Linux (fedora) -ip
192.168.1.100) and the cvs installed there.. I did the following to install
cvs
>yum search cvs
>yum install cvs
Then I did the following configuration
I logged on as a root
1) went to /home and create a folder called cvs
2) I did this --> export CVSROOT=:local:/home/cvs
3) then --->cvs init
4) created a file /etc/xinetd.d/cvspserver and put the following
service cvspserver
{
socket_type = stream
wait = no
user = root
group = cvsgroup
env = HOME=/cvsrepo # Fixes RHL 7.0 problem!
server = /usr/bin/cvs # Or path to your cvs binary
server_args = -f --allow-root=<your cvs ropos root> pserver
disable = no
}
5) I did the following
service xinetd stop
service xinetd start
Then I went to the cvs client (Eclipse) and configure it as the following
-host: 192.168.1.101
-repository bath: /home/cvs
-user: me (sometime i used root too)
-password: whatever
-connection: pserver
I got error message "communication error" (could not connect to
192.168.1.101)
Any help would be very much appreciate it . Thank a lot.
- 5
- Java Print LandscapeTrying & trying ad infinitum to print page in landscape mode from Java
program - orientation is correct landscape but printing width will NOT
go to landscape - always prints in portrait mode width - how to get
width out to landscape??????
Graphics2D g2d = (Graphics2D)g;
//Paper paper = new Paper();
Paper paper = pageFormat.getPaper();
//default portrait width=468 hi=648 x=72 y=72
pwidth = paper.getImageableWidth();
phi = paper.getImageableHeight();
// reverse width & height for landscape
paper.setSize(phi, pwidth);
paper.setImageableArea(10, 10, phi, pwidth);
pageFormat.setOrientation(PageFormat.LANDSCAPE);
pageFormat.setPaper(paper);
g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
etc. print still portrait width!!!!!!
- 6
- OpenOffice.org/Base: An unexpected error has been detected by JavaHello,
I've been having a problem with OpenOffice.org (both 2.2.1 and 2.3.0)
and java (both diablo-jdk1.5.0/ and jdk1.6.0/) for some time now on
6.2-STABLE i386.
When I use OpenOffice.org's Base database application, and I edit data
in a table view then close the table, I always get this error:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x29b70151, pid=96225, tid=0x8096000
#
# Java VM: Java HotSpot(TM) Client VM (diablo-1.5.0_07-b01 mixed mode)
# Problematic frame:
# C [libz.so.3+0x8151] deflateCopy+0xa81
#
# An error report file with more information is saved as
hs_err_pid96225.log
#
# If you would like to submit a bug report, please write
# a letter to email***@***.com mailing list
#
If I use jdk1.6.0, the only difference in the error message is the pid
and jdk version:
# SIGSEGV (0xb) at pc=0x29b70151, pid=96826, tid=0x8096000
# Java VM: Java HotSpot(TM) Client VM
(1.6.0_01-p1-root_12_sep_2007_19_21-b00 mixed mode)
# An error report file with more information is saved as
hs_err_pid96826.log
I can email or post the error report files upon request. Thanks for
your help.
--
Regards,
Doug
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 7
- Exception in thread "AWT-EventQueue
Ive got a swing application with quite a lot of code. With several JFrames
being created at various stages.
Its working fine but sometimes Im getting a ClassCastException ,copied
below, at no
predictable time or place in my code.So I cant find the source of the
problem with normal debugging.
Anybody any ideas on how to find the problem here??
TIA
patrick
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException
at javax.swing.LayoutComparator.compare(LayoutComparator.java:72)
at java.util.Arrays.mergeSort(Arrays.java:1284)
at java.util.Arrays.mergeSort(Arrays.java:1296)
at java.util.Arrays.mergeSort(Arrays.java:1295)
at java.util.Arrays.mergeSort(Arrays.java:1295)
at java.util.Arrays.mergeSort(Arrays.java:1296)
at java.util.Arrays.sort(Arrays.java:1223)
at java.util.Collections.sort(Collections.java:159)
at
javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(SortingFocusTraversalPolicy.java:119)
at
javax.swing.SortingFocusTraversalPolicy.getFirstComponent(SortingFocusTraversalPolicy.java:425)
at
javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(LayoutFocusTraversalPolicy.java:148)
at
javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(SortingFocusTraversalPolicy.java:502)
at
java.awt.FocusTraversalPolicy.getInitialComponent(FocusTraversalPolicy.java:149)
at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:318)
at java.awt.Component.dispatchEventImpl(Component.java:3841)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.SequencedEvent.dispatch(SequencedEvent.java:93)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
- 8
- Servlet location question(s) - ** FIXED **
PJL <email***@***.com> wrote in message
news:email***@***.com...
> Using Tomcat 4.1.30 on Win XP Pro
>
> Given the following:
> -----------------------------------------------------------------
> <servlet>
> <servlet-name>SrvLog</servlet-name>
> <servlet-class>ServerLog</servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>SrvLog</servlet-name>
> <url-pattern>/Test0005</url-pattern>
> </servlet-mapping>
url-pattern should be "/ServerLog", I guess it is based on the notion that
the "ROOT" is "Test0005" which is the directory under the "..../webapps"
directory. So, "jakarta-tomcat-4.1.30/webapps/Test0005" is the actual root
path of my website.
Couldn't see the forest for trees on that one.
I'm a newbie, can you tell??
Thanks all,
PJ
> -----------------------------------------------------------------
>
>
> Where must the servlet "ServerLog.class" reside in order for it to run?
>
> I do not have any package statements in "ServerLog.class"
>
> I have tried putting it in the "WEB-INF/classes" directory of "Test0005"
and
> calling "localhost:8080/Test0005/ServerLog" I get a 404 error.
>
> I have tried putting it in the "Test0005" directory and I also get a 404
> error.
>
>
> Any ideas?
>
> Regards,
>
> PJ
>
>
- 9
- Performance test/benchmark J2EE appHi there,
I have inherited a J2EE app, which is running like a dog :)
I am tasked with finding and fixing the areas in which the performance
is particularly poor. Short of debugging through the app and taking
"timings" can you recommend any (free/open source) software out there
which will quickly help me identify the badly performing areas of the
app?
cheers
Lord0
- 10
- unreachable statement??Hi, the following is the snippet from my code. My question is that if
i change the position of the return statement ("return SS") with the
"System.out.printf("S ==%d\n", SS)", then i get the error message of
"unreachable statement". Could anyone explaina what this is??
Thank you. Jonie
public int getDoublets () {
for (int i = 0; i < numNodes; i++) {
GayNode node = (GayNode) agentList.get(i);
String string = node.getInfectStatus();
ArrayList list = node.getOutEdges();
for ( int j = 0; j < list.size(); j++) {
GayEdge edge =(GayEdge)list.get(j);
GayNode otherNode = (GayNode)edge.getTo();
String otherString = otherNode.getInfectStatus();
if (string.equals("s") && otherString.equals("s")) {
SS += 1;
} } }
System.out.printf("SS =%d\n", SS);
return SS;
}
- 11
- FormLayout constantsHello,
I've just begun using FormLayout (migrating from TableLayout), and
it's great. But all the examples I've seen use hardcoded strings to
describe the layout; for example,
FormLayout layout = new FormLayout
("10dlu, pref:grow",
"pref, 3dlu, pref, 3dlu, top:pref:grow");
My question is, what is the canonical approach to defining constants
for those values that I know I'll reuse ("3dlu" above is always going
to be the space in between rows). Is this the right way:
FormLayout layout = new FormLayout
("10dlu, pref:grow",
"pref, " + ConstantSize.DLUY3 + ", pref, "
+ ConstantSize.DLUY3 + ", top:pref:grow");
I suppose that's not bad too bad, so maybe I've just answered my own
question. I guess what I'd really like is simply to see more code
examples of people using FormLayout. Thanks!
Jared
- 12
- I have some bug(s)Manish Pandit skrev:
> On Jul 3, 11:12 am, "email***@***.com" <email***@***.com>
> wrote:
>> Hello. I have something bugs, i am dummy in java.
>>
>> Source:
>> import java.io.File;
>> import java.io.FilenameFilter;
>>
>> public class Main {
>> public static void main(String[] args) {
>> File f = new File("C:\\Windows");
>> String[] strings = f.list( new FilenameFilter() { // throw exception
>> public boolean accept(File arg0, String arg1) {
>> if (new File(arg0.getAbsolutePath()).isDirectory())
>> return true;
>>
>> return false;
>> }
>> });
>> for (String value : strings) {
>> System.out.println( value );
>> }
>> }
>>
>> }
>>
>> simple scan directory. i must printing name of directory.
>> but this code is printing all files and directories in C:\Windows\
>
> The logic in accept( ) is incorrect. You need to check for the full
> file, and not just the parent folder. To get the full file name, you
> need to join the directory (arg0) and the file (arg1) with the
> separator character.
>
> Change the logic to:
>
> if (new File(arg0.getAbsolutePath()+File.separator
> +arg1).isDirectory())
> return true;
>
You don't need to construct the full file path explicitly if you use the
File(String, String) constructor.
- 13
- Manipulating a ROIShape using JAIHi,
I have set a ROIShape on an image and now want to do some
manipulation. However, I want to limit the manipulation to only the
ROIShape and not the whole image but don't know how to do this! Can
anyone help?! Any ideas would be greatly appreciated!
Thanks.
- 14
- Getting rid of double spacingHi Guys, is there a way to get rid of double spaces within a string without
using the tokenizer method? I was thinking of doing a loop that goes on
while two spaces are next to each other within which I'd delete the
character it's up to. How do I delete a char?
Thanks to all for any ideas/help you might provide.
- 15
- [SUN] Take Sun Security Course and Get a Digital CameraReceive a free digital camera by registering for one of
Sun's online security courses during the month of October.
To receive your free digital camera, register for one of the
following courses:
* Administering Security on the Solaris Operating System
* Network Security Using SunScreen EFS
* Trusted Solaris 8 System Administration
* Enterprise Security Assessment and Best Practices
* Solaris Network Intrusion Detection
* Enterprise Security Deployment and Management
To learn more and register, go to:
http://training.sun.com/suned/us/security-training?ssobm=ng
|
|
|