Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!

Steve Wood

Ranch Hand
+ Follow
since Jan 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 Steve Wood

Hi guys,

I have an object that is not detached from the session. When I close the session, I see the following line in the logs:

AbstractFlushingEventListener:85 - Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects

What does that mean? Why does it have the 1 objects in the line?

It only happens for the one object. Other log traces put:

AbstractFlushingEventListener:85 - Flushed: 0 insertions, 0 updates, 0 deletions to 0 objects

The reason I ask is because we're getting locks in the first example - so it's clearly doing something on the database.

Any help is much appreciated.

Cheers,

Steve
Hi guys,

We have the following query:

(&(objectcategory=group)(member=cn=User Name,ou=MyCompany,dc=mycompany,dc=com))

But when we run it (against Active Directory), it only searches for users in root ou folder (i.e. MyCompany). We have a whole bunch of ou's under this, but it doesn't search down the tree - it only searches that immediate folder.

Any ideas?

As a result, if the user isn't in MyCompany, but perhaps in a sub-folder, they aren't found - which is a bit limiting!

I'm not sure if this is active directory or just plain LDAP.

Help is greatly appreciated.

Cheers,

Steve
13 years ago
Hi guys,

Is there a way to override the JTextField and JTextArea used by JEditorPane when rendering HTML forms?

I'd like to change the text area in particular because the one it uses doesn't have word wrap, etc. Ideally I'd like it to be another JEditorPane within the JEditorPane so everything they type is HTML.

Any help is greatly appreciated.

Cheers,

Steve
14 years ago
Hi guys,

I need to add a search engine to my web application. I use the word ADD because I don't want to write one!

Requirement:

1. Search a database - either SQL Server, Pointbase or MySQL (as many as possible)
2. Span multiple fields in a single table (so not just look in a single field)
3. Be reasonably smart, but not kick-ass
4. Happy to pay money, but it would need to be royalty-free

I've had a look at Lucene and can see how it would be implemented around a database but I'm concerned about server cluster support - not sure if it supports clustered environments if the index is on the application server. It also feels like a botch of a very webby search engine.

I've also had a look at SQLOne, DieselPoint and Netrics. They're all a bit too cool for school for my requirements and I'm pretty sure the licensing isn't going to be right.

I've also looked at using database specific indexing - which means we have to write database specific SQL and setup instructions which isn't really desirable. We have a very simple installer and this would add a lot of complexity if they're using SQL Server vs MySQL.

Is there anything I should look at? Do any of you guys know of a good component we can purchase?

I want it all obviously - any help is very much appreciated!

Cheers,

Steve
Hi guys,

I have a question more about design than code.

We want to use LDAP in our software but we have granular security - i.e. this person has access to these specific things. The specific things (such as administration of users, access to certain reports, etc) are specific to our software.

So, my questions are:

1. If a user exists in LDAP, how do you tell LDAP that they can log into the software? Do you usually start with an LDAP admin tool or get the software installer to update the LDAP record?

2. How are the specific security settings (for our application only) usually managed with LDAP? We don't want to write something that messes up the company LDAP with loads of software specific attributes - or is that how it's done? Do we create a sub-tree off the user for our application?

I guess what I'm saying is: I get the whole 'finding a user' thing with LDAP - can someone describe how it works in software that's a bit more complicated than 'Can they login or not?'.

Any help is much appreciated.

Steve
14 years ago
Thanks Scott,

That's the best answer I've heard to this question. The connections will need to be highly configurable and very few will be the same - it sounds like a connection pool is simply not an option.

All the best,

Steve
Hi guys,

I've been reading (a little) about connection pooling and have a few questions.

If I don't know the configuration of the connection ahead of time (i.e. because the user can configure it as part of the application) - how can I set up a pool?

It seems that pools are really performant if you know the details and can configure the settings on the application server - therefore providing a pool. What do you do if the connection configuration is sorted out at run-time for the application? Are connection pools out of the question?

If so - are there any alternatives?

Any pointers would be gratefully received.

All the best,

Steve
Thanks Bear,

I'm up and running. I'll definitely be reading about servlets - I'm now at a stage where I really need to understand how they work. This is the first time I've thought "hmmmm... maybe a servlet could do that" - I'm sure they can do a lot more!

Cheers,

Steve
14 years ago
Thanks Bear,

When you say delare a servlet mapping, is that in the web.xml? If you could give me an example, that would be really helpful as I'm really new to this - I'm one of those annoying JSP developers that doesn't understand servlets (just knows they're there).

Do I need to declare a servlet mapping for every directory or can I do something like:

/workspaces (goes to the servlet)
/workspaces/myproject (servlet picks up the myproject as a parameter)

As you can see, I need some guidance!

Thanks for your help.

Steve
14 years ago
Hi guys,

Is there a way to get a servlet to accept a path and forward this to a particular JSP page? I'm new to servlets.

So, something like this:

www.mywebsite.com/myproject

forwards to

www.mywebsite.com/workspaces/login.jsp?workspaceid=someidformyproject

The directory myproject would not exist but would be a simplified URL.

Basically, I want to create a system that allows users to create project workspaces similar to SharePoint - so they specify the name of the workspace and this automatically becomes a directory path on the server (though the directory will not actually exist).

I hope that makes sense - any help is very much appreciated.

Cheers,

Steve
14 years ago
Thank you very much - that's superb.

Cheers,

Steve
14 years ago
Hi guys,

I'm looking for a way to get the date pattern from the DateFormat class. They have a number of localized styles, but I can't seem to work out how to get the actual pattern string. This seems to be supported in the SimpleDateFormat class, but not DateFormat.

So, for example, what is the DateFormat.MEDIUM pattern for Japan? I'd like to do this so my application can display the pattern it is going to apply to the user.

Any help is much appreciated.

Cheers,

Steve
14 years ago
Thanks guys,

I thought as much. We only really support MySQL and MS SQL, but it would be nice to not have to keep two installation scripts maintained and JDBC seemed the best place to look (as we're creating a better installer).

The 2d map idea sounds like a good idea - we might be able to do something like that quite easily for now.

Thanks for the help.

Cheers,

Steve
Is there a way to use JDBC data types to create tables in any database?

I realise this might cause problems for more complex data types, but we'd really like to have a mechanism to create tables without writing a script for every database we support. It seems tantalizingly close that we could use the meta data to create the table creation script.

Has anyone done this before?

Thanks for any help.

Cheers,

Steve
OK, I lied - we've worked it out. There was a thread doing a record delete! (I didn't know about it until basically deconstructing everything).

Cheers,

Steve
15 years ago