russell stoneyroyd

Greenhorn
+ Follow
since Sep 12, 2006
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 russell stoneyroyd

You have attempted to establish a connection with "soccerscene.co.nz". However, the security certificate presented belongs to "www.soccerscene.co.nz". It is possible, though unlikely, that someone may be trying to intercept your communication with this web site.

13 years ago
A site I have been working on now gives this message every time going from http to https (secure connection.) The problem is this puts customers off buying on our site even though https is working the difference is one has a www. prefix while the other doesn't. Is there a simple way round this with regards to use of apache or something? Its a very annoying message and I would hate to have to get another certificate because of this.
Any help would be greatly appreciated.
13 years ago
Hi
I've got a problem where I need to create an image browser for all the icons in our webapp. All the image icons I can put into the classpath but I need to enumerate over them so that I can return all the URLs to the front end so it'll display all images/locations for that directory. I'm able to get hold of a single image like so:

However enumerating will only return me that folder location. I need to get all the images in that folder. Is there any jsp taglib or anything anyone knows of that does sthg similar? Or has anyone come across this problem.
Cheers
13 years ago
thanks for the response.
Yeah basically there is a bunch of html input types rendered on a page the code loops through to look for the first focusable input type and then gives focus to it. So this is the check to see what is focusable. Have tried element.focus != null but this didn't work.
Do I make sense?
When trying to get focus on an element in IE I get the following javascript error message:

'Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus'

I can resolve it by the code above. But not sure what I'm checking. I realise that first checking visibility of the input type ie whether it's hidden. Whether the style of the display is set to not display and whether that element has disabled. I'm not 100% certain about the second check the display. This fix works but would like to understand better what the 2nd check means.
Any help would be greatly appreciated.
I've got issues trying to get hold of a dynamically generated form/drop down list in IE and Firefox what seems to work in one doesn't work in the other and vice versa. I get a hold of the form like so:

And then get a hold of the item like so:

I tried to use .value it doesn't always find it in IE and with firefox I am getting intermittent problems where it won't find the right value only the first value. Does anyone have any idea what I'm doing wrong. I'm generating the form like so:

Thanks
I have a problem which is quite common that adding items to a shopping cart is done over http. However when entering credit card form etc this is done over https. The results from this are posted to a struts action which gets a handle on the HttpSession object which is empty as the protocol has changed to https. What is the best way to implement protocol switching and session handling. I seem to find lots of solutions but they seem a little hacky. I'm sure many people have seen this issue before. But not sure what the best solution for this is.
Thanks
13 years ago
Thanks for your help.
Thing is all I really need to do is a "select count(*)" on the table. Which I'm acessing through a link table that does exist as a Collection but is the wrong object type.
The mapping for the role class users is:

Role membership exists in user but only ever has roles added to it.
From the Role object we want to access the users that have been deleted which is just a simple boolean flag on that user.
Tried using the 2 tables linked together and it didn't work properly.
Not really sure whether I can just use native sql for this one as I only want to return a count of the users.
Cheers
Hi
I want to do a bidirectional many-to-many query with HQL but the middle table is a link table. The problem is this is not an object so hibernate is not recognising it and sending back "QueryException in expected: rm" even though it is being used in the query. The mapping is:
<bag name="users" lazy="true" inverse="true" table="RoleMembership">
this has a many-to-many relationship inside it for the User class. The query when changed from objects to tables works perfectly. Are you able to use a link table in an hql query if it is not an object?
Cheers