Win a copy of Securing DevOps this week in the Security forum!

Ray Stojonic

Ranch Hand
+ Follow
since Aug 08, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ray Stojonic

They don't take an int, they take a Dimension
9 years ago
Creating an array is like getting out a new piece of paper and writing "My List of Stuff" across the top and writing n numbers down the side.

A zero length array has no numbers down the side, so if someone asks for the first item on the "My List of Stuff" list, you must reply: "ummm, [shrug], there's isn't one".

9 years ago
1- Error messages are appreciated

2- Feel free to do whatever you want with the classpath. Experimentation and finding out what doesn't work goes a long way towards mastery - besides, it's not like you'll break it.

3- When compiling, the classpath should include the package root (the path to the folder that contains the highest level of your package structure), in this case it is C:\Users\msm\Documents\Java_II_projects\HorseDA;

9 years ago

Originally posted by ashok reddy devaram:
But its showing the same error. Can anyone clarify me please? What to do?

Not without seeing the offending code and the error text.
11 years ago
It looks good except that I think you should probably use scheduleAtFixedRate instead in order to maintain your 0:00:00 execution time (otherwise the start time can drift towards times when people will be using the system, assuming that's why you want to start at midnight).
11 years ago
What is text (re: text.charAt(i))? It would appear to be a String, why would you need to parse a String into Characters, load them into an ArrayList then concatenate them all into to a String?
11 years ago
Do you need help with something?
11 years ago
Have your employee class implement Comparator to sort on the job field and use a TreeMap, then you can just iterate through the map.
11 years ago
It's there until: it is replaced, it is removed, or the session times out or is invalidated.
11 years ago
Good point, mine should read
System.out.println("==: " + ob1 == ob2 + " : equals: " + ob1.equals(ob2));
11 years ago
Test ob1 = new Test(100,100);
Test ob2 = new Test(100,100);

System.out.println("ob1 == ob2: " + ob1.equals(ob2));

would make more sense as an example

here ob1 == ob2 is false where as ob1.equals(ob2) is true.

This is because == will compare the hashcodes (usually the memory location) of the 2 objects. They're distinct objects and therefore not in the same memory location.

.equals, on the other hand, compares the contents of the object, which, in this case, are equal.
11 years ago
What result are you expecting?
Other than no output from LookupAction, there's nothing wrong.
What is the last line of LookupAction.execute()?
11 years ago
Source is source code and can be compiled on your system, this allows a custom build or support for an OS when Apache doesn't provide a binary. The result of compiling is a binary, if a binary for your system already exists, download the binary.
11 years ago
While this is an intriguing use of html:submit, I don't believe the auto-population feature of Struts extends to the submit property.

As such, my Actions are littered with

if( request.getParameter( "some.submit.button" ) != null ) {
//handle this type of request
}
11 years ago
If I understand what you're attempting, it would look something like this if you wrote it as Java:

Obviously, this won't compile.

One option would be to have columnNames.getNames() return a list of 'HeaderBeans' which would be a class that contains a header value and a display value, so your code, in Java, would look something like this:

or in Struts Tags:

[ August 09, 2006: Message edited by: Ray Stojonic ]
11 years ago