Ruby Martinus

Greenhorn
+ Follow
since Dec 30, 2003
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 Ruby Martinus

Dozer really works well for me. Thanks Jessica!

Originally posted by Jessica Sant:
Check out Dozer, is this the kinda thing you're lookin for?

Dozer is a powerful, yet simple Java Bean to Java Bean mapper that recursively copies data from one object to another. Typically, these Java Beans will be of different complex types.

Dozer supports simple property mapping, complex type mapping, bi-directional mapping, implicit-explicit mapping, as well as recursive mapping. This includes mapping collection attributes that also need mapping at the element level.


[ November 06, 2005: Message edited by: Jessica Sant ]

16 years ago
doSubmitAction(Object command) is a simple submit callback for you to perform an action and then go to the success view with the given command. There is no need to worry about ModelAndView.

with onSubmit(Object command), you need to return ModelAndView, so it is more flexible. You could customise the success view if you wish, for example. You could also pass more objects to the model for your display (eg. jsp).
Spring in Action is a very good book to get you started with Spring. If you wait for the latest edition, it should have the latest Spring 2 stuff, which is exciting.
Knowing Struts helps a little bit, because the book uses a few comparisons to Struts, but it is not necessary. Use the practical examples from the book and you should be all right.

Originally posted by Michael Jennings:
hi

i would like to know,

1. what are the basic things i need to know before i can start of with Spring ?
2. do i need to know struts ? (i don't know struts)

and, i have just started off with servlets and jsp.

thanks

Hi Jaikiran,

Thanks for you answer for my first question. I've got the answer to question 2. It is actuallly in run.conf file for Linux/Unix.
The problem that I'm having is actually the PermGen space, not the Heap Space. I increased the PermGen space and it is now working fine so far (fingers crossed).
[ July 23, 2007: Message edited by: Ruby Martinus ]
16 years ago
Hi,

I'm running jboss 4.2.0 on Red Hat EL, and I'm getting this "java.lang.OutOfMemoryError: PermGen space" error.
When I have a look at the log, the default for JAVA_OPTS is -Xms128m -Xmx512m, even though I could not find it set anywhere in run.sh (I can, though, find it in run.bat).
I'm planning to increase the maximum memory size to 1024: -Xmx1024m by adding: JAVA_OPTS="-Xms128m -Xmx1024m $JAVA_OPTS"

My questions are:
1. Is it possible to increase the maximum size of the memory?
2. Why is this option not in run.sh but it is in run.bat?
16 years ago
I think programming in java is an art. Although we have to follow rules, which is of course necessary to avoid chaos and also creating an expected output, there are many ways to do it, and I think that's the art of it.
Eg. someone can create everything in the main() method or someone else can create several methods and classes that makes it clear what does what, and that's the art.
20 years ago