Hello all,
A user is accessing a restricted web application with JAAS (on Glassfish 2.1). LDAPRealm is used, and authentication is successfully performed from LDAP. A password policy should be installed for the users, so that they are forced to change passwords, have passwords of certain complexity/length, password failures and last N p...
I am manually converting Java to C# and have the following code:
for (Iterator<SGroup> theSGroupIterator = SGroup.getSGroupIterator(); theSGroupIterator
.hasNext();) {
SGroup nextSGroup = theSGroupIterator.next();
}
Is there an equivalent of Iterator in C# or is there a better C# idiom?
...
Contrary to a 'normal' svn directory structure I'm using the following structure:
trunk/
project1/
project2/
project3/
...
branches/
project1-branch/
project1/
project2/
...
project2-branch/
project1/
project2/
...
tags/
project1/
V1
V2
...
As you see I don't have separate triples (tr...
This page lists the number of classes, assemblies, etc. for the .NET Framework. Does a similar list exist for the J2EE framework?
...
Hi guys!
I'm thinking about building a transparent SMTP proxy on my own to process outgoing mails. I found Apache James already that looks like it is pretty much what I want.
Could I use Apache James to build a transparent SMTP proxy to add some headers and modify the content? Or should I go for pure Javamail?
...
I have inherited code which contains static nested classes as:
public class Foo {
// Foo fields and functions
// ...
private static class SGroup {
private static Map<Integer, SGroup> idMap = new HashMap<Integer, SGroup>();
public SGroup(int id, String type) {
// ...
}
}
}
From reading SO (e.g. http://...
I am converting Java into C# and have the following code (see discussion in Java Context about its use). One approach might be to create a separate file/class but is there a C# idom which preserves the intention in the Java code?
public class Foo {
// Foo fields and functions
// ...
private static class SGroup {
...
I have a URI template in the form of "/hotels/{hotel}/bookings/{booking}", and can access the path variables in the controller via @PathVariable, but when building links in the view I need a reference to the different path variables.
As an example, let's say the user requests "/hotels/123/bookings/booking-123", and in the view, there ...
i using osworkflow with hibernate3. i looking for guideliness on integrating osuser with hibernate3. can anyone elaborate ..?
...
javax.servlet.ServletException: Error allocating a servlet instance
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http1...
I want to devlop java chat application.
I am looking for any java framework that will help me in devloping chat application.
So that i can easliy devlop the chat application using the framework.
The application needs to run only in LAN.
I want the chat application like yahoo chat (with only one main room).
Please suggent me any open s...
I am looking for an implementation of the Rabin Hash Function in Java, Can anyone recommend a fast library?
Update:
I've just tested the library here.
It takes ~2200ms to hash 1mm random urls on my 2GHz processor.
This is certainly good enough for my needs, however I will test another library when I get a monent and post the results...
let say i have a workflow from step 1 to step 2. step2 can only be executed by users dynamically assigned after step1 finished. can transientVar,propertyset..etc use for each workflow so I can dynamically assign which user able to execute step2?
p/s: this case is special, so cannot just statically use osuser-group directly because ca...
i really need help. I'm searching for this from a very long time. I would like to make a servlet (application deployed on OC4J ) which will allow to enter users logged in domain (Active Directory) without any prompt for login and password. Is it possible to retrive in servlet : user name via getRemoteUser or getUserPrincipal methods with...
Is even possible to bind an root object with super fields?
I have quite complicated entity (entities) to bind. I am already lost with it :)
This is my code situation:
public class CoreRestWrapper {
private Integer page;
private Integer perPage;
}
public class UserWrapper extends CoreRestWrapper {
private Collection<UserCV...
I know that PreparedStatements avoid/prevent SQL Injection. How does it do that? Will the final form query that is constructed using PreparedStatements will be a string or otherwise?
...
I have a TextView inside a LinearLayout. The LinearLayout is able to receive focus, and I want the textColor of the TextView to change when it does. I thought using a ColorStateList would work, but it would seem that the TextView does not receive focus when the LinearLayout does. I know that, because I have tried this code:
mTextView.se...
What is it that determines when the garbage collector actually collects? Does it happen after a certain time or after a certain amount of memory have been used up? Or are there other factors?
...
I'm writing two classes to handle simple auctions. I have a class ready and working, which handles the operations for a single auction, and now I'm writing another class like an auction house, to keep track of all the auctions available. When testing the following part of the class:
import java.util.ArrayList;
public class AuctionHouse...
I've got the following scenario:
There are three ("pseudo" randomly chosen) int or float values which represent indices of an array. Now I'd like to compare the appropriate values from that array. After having compared them I'd like to know the middle value of the three and use this specific element for some further array operations.
T...