Larry Jones

Greenhorn
+ Follow
since Jan 23, 2005
Merit badge: grant badges
For More
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 Larry Jones

is it possible to cast a List to a Set?
for example,

List results = DbService.getList();
Set s = (Set) results;
18 years ago
how do you delete and update a many-to-many relationship in hibernate without deleting the two related objects from the db; that is, I just want to remove the entry in the many-to-many table that joins the two objects, not the two objects themselves.

Thanks for the help
If I have a struts webapp that in the action class method execute, it calls a class such as NumberFormat.aMethod. Do I have to worry about synchronizing and concurrency?
Yes, Ben, I thought about your lighter solution. But what I am worried about, is that people may discover what that object is (if it is static, such as user name), and insert it manually into there browser, thus passing the security constraint of being "not null." Is this a problem? Or am I being paranoid?
19 years ago
JSP
I am making a webapp using struts. I want to prevent direct access to jsp and servlet (.do) files if users have not successfully logged in. If I store the jsession id in the database after a successful login and then check if the jsession id in the session matches the one in the database, is this secure?
19 years ago
JSP
Thanks for the heads-up about the naming policy and the nice answer to my question.
are collections created inside a method thread-safe? I know they are local variables, but are collections different?

for example:

Class a {

public Set meth() {
Set set = new HashSet();
set.add(new Integer(1));
return set;
}

}

Is set thread-safe?