Hi again,
I have made a simple example which illustrates my problem. I'm not sure how much I should include here, so snippets follow. If anyone thinks they can help and wants more info (or the...
Type: Posts; User: pak; Keyword(s):
Hi again,
I have made a simple example which illustrates my problem. I'm not sure how much I should include here, so snippets follow. If anyone thinks they can help and wants more info (or the...
Hi there
are there courses in the use of Spring? For example, where a tutor uses a few days to go through concepts, usage, best practices etc, with examples both simple and complex.
We are...
Thanks for the answer.
I am trying to use org.springframework.orm.hibernate.support.OpenSessionInViewInterceptor to help with lazy-loading in my web-app, but still get "initialisation" problems. ...
Hi there
is there a book available which has in-depth discussion of the use of Spring and Hibernate together? I am really looking for complex examples of web-applications (for administration of...
What exactly does the following exception mean... or rather, how do I fix it?
I am using "HibernateDaoSupport" for accessing the database, and have configured the "OpenSessionInViewInterceptor"...
Hi there,
Can I register a data-binder like this:
dataBinder.registerCustomEditor( null, "parent", new MyBinder() );
...which I think should cause "MyBinder" to be called with the value of...
Thanks for the help.
Peter
Hi there
I am making a webapplication using spring and hibernate. I am using Hibernate's "lazy loading" of some data objects as it gives a performance boost, and therefore I am using one of...
Indeed I can do that, but only if I obtain my "Company" object like this:
<%
Company company = (Company)session.getAttribute("dk.ciber.organisation.web.CompanyController.form.company");
%>
...
Hi there
I am not sure if this is the right place to ask this question, but I am using Spring + JSP with JSTL.
Say I have an object I can access on my JSP, like this:
<c:out...
I have done very similar to YSutarko's suggestion for displaying the list, and allowing for editing.
The harder part is implementing adding and deleting items. I have used some of Armen's...
Hi, thanks for the reply.
Does your first solution mean that the hidden field maps to an attribute in your "Job" class?
Every time you click the "add" button to generate an extra field you get...
Hi there
how do I add "bind exceptions" in my OnSubmit method?
I override
ModelAndView onSubmit(HttpServletRequest request,
HttpServletResponse response, Object command,...
Er... hi... sorry, yet again I find I have done something else wrong... in this case it was to do with the fact that I was submitting select-boxes, and the values submitted were not able to be...
Hi,
My class extends SimpleFormController.
If I override "onSubmit" then I can handle a form submission. But if I also override "referenceData", then it appears that "onSubmit" does not get...
Hi there,
I want to make a JSP for editing a "Construction" object which is populated from data in a database.
The "Construction" object has attributes:
String name
Collection prices
The...
Great, thanks. Really easy when you know how. The custom editors supplied with Spring are just what I need.
Peter
Hi there
I have a form where the user can enter various items of data, and submit to a controller.
My problem is that some of the fields bind to numeric types (Double) or Date for example. And...
Say I have a "Data" object, which has (amongst other things) a "Price" object, which has an "amount" and a "comment".
I want to display the "Data" object on a form for the user to edit.
When it...
Hi, thanks for the reply.
I have looked at the log, but it doesn't really help me that much... I can't identify one specific thing that takes a long time, but there are many sql selects made, and...
Hi,
we are using Spring and Hibernate on a project (and ehcache for caching), and hope to be able to take advantage of Spring's built-in support for Hibernate.
For database access we have made...
OK, it finally "clicked" with me. You define the "resolver" in the xxx-servlet.xml:
<bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
<property...
Hi there
is there an online resource which describes in detail how to use ResourceBundleViewResolver (I admit I am slow on the uptake, and need a detailed explanation with examples)?
Thanks,...
But using InternalResourceViewResolver and "prefix" and "suffix" format, doesn't that mean the all JSPs will be mapped to the same "prefix"?
I want different prefixes depending on the...
Hi there
I have a "tree" structure of Node objects, each containing a List of children Node objects etc.
I pass the root Node object to a JSP, and would like to display the tree structure.
...