paul king

Greenhorn
+ Follow
since May 23, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by paul king

Hi,

My app seems to be taking up lots of memory which is ever increasing to the point where I need to restart the application server. The app uses images constantly and thought it could be related to the tomcat working directory constantly being added to with new uploaded images.

1) Is there a way to configure how long image files within the working directory are stored for?
2)If I delete files from this working directory, can anyone confirm that this will in no way affect the original files? - apart from if I try to load this image through the app it may take longer as it will no longer be cached.

Any advice will be muchly appreciated!

Thankyou
14 years ago
I have 2 Value Objects, the main one (VO1) and its child objects (VO2). VO1 has a property Reference in the format ABC/A123. This is a uniqely generated value on create. Also on the create a VO2 is also saved. What I need to do is grab the A123 part of the Reference property in VO1 and save it on VO2.

Is there a way I can do this?

Thanks in advance
Hi

I have an application that uses struts, spring and hibernate.
Any suggestions on the best place to set my value object properties to uppercase ready for saving to a database and whats most efficient?
e.g. possibly when the object properties are initially set
or in the service layer
or at dao level
or maybe in the hibernate mapping
or any other ideas???

Thanks in advance
17 years ago
How can I determine if I am in a dialog box without passing through some sort of flag?

I have a form that is either displayed in a normal window or in a dialog box. When in the dialog box I want to not display certain parts of the form so I need some sort of object value I can use in my JSP Logic:equal/present etc.

Thanks

Hi

I have a jsp which opens a modal dialog box using javascript, within that dialog box I have a button which opens a second modal dialog box.
This allows me to type in a message and save it. When I click save, it closes the dialog box, I then need the first dialog box to refresh.
I can't get it to do this.

I have tried window.location.reload(true) on the submit of the second dialog box (using AJAX) and window.location.reload(true) after the showModalDialog bit on the first dialog box but none of these work.

Can anyone help?



Thanks
Hi

I have a jsp which opens a modal dialog box using javascript, within that dialog box I have a button which opens a second modal dialog box.
This allows me to type in a message and save it. When I click save, it closes the dialog box, I then need the first dialog box to refresh.
I can't get it to do this.

I have tried window.location.reload(true) on the submit of the second dialog box (using AJAX) and window.location.reload(true) after the showModalDialog bit on the first dialog box but none of these work.

Can anyone help?



Thanks
Hi

I have a jsp which opens a modal dialog box using javascript, within that dialog box I have a button which opens a second modal dialog box.
This allows me to type in a message and save it. When I click save, it closes the dialog box, I then need the first dialog box to refresh.
I can't get it to do this.

I have tried window.location.reload(true) on the submit of the second dialog box (using AJAX) and window.location.reload(true) after the showModalDialog bit on the first dialog box but none of these work.

Can anyone help?



Thanks
18 years ago
JSP
I have just implemented Spring into my application and I have a Hibernate Criteria Object which I use to return an arraylist of objects dependant upon what I add to that criteria.

How do I do the same thing in Spring? I know there is a 'findByCriteria' method but this takes DetachedCriteria and I'm not sure what any of this is, whethere this is right and if so how to use it.

Any examples or alternatives etc. is much appreciated.

Cheers
I have just implemented Spring into my application and I have a Hibernate Criteria Object which I use to return an arraylist of objects dependant upon what I add to that criteria.

How do I do the same thing in Spring? I know there is a 'findByCriteria' method but this takes DetachedCriteria and I'm not sure what any of this is, whethere this is right and if so how to use it.

Any examples or alternatives etc. is much appreciated.

Cheers
Hi

Yes it helped alot. Thanks
Hi

Basically I want to update my database with creation and modification date/time values. I've tried looking for good examples of doing this but they are quite difficult to follow and don't seem to explain everything.
Does anybody know any good tutorials/examples etc?

Thanks

Paul

I have implemented hibernate into my system and have included the optimistic locking. This all works fine and throws the correct error - StaleObjectStateException. What I need to know is:

How do I throw this back up from the DAO to the user to display an error message on screen.

I'm using struts/jsps as a front end.

Thanks

Paul