It would help to see your <form...> tag at this point. Are you exclusively POSTing, or do some things (like pagination) use GETs? Do you specify an explicit URL in the form action or are you leaving...
Type: Posts; User: dhewitt; Keyword(s):
It would help to see your <form...> tag at this point. Are you exclusively POSTing, or do some things (like pagination) use GETs? Do you specify an explicit URL in the form action or are you leaving...
For the views, you could have a custom FlowArtifactFactory that your builder could use, that could prefix the returned names of ViewStates automatically for you. Not quite the ViewResolver solution I...
Just thinking about this some more...
How about using something like this? Again not compiled or tried this but it might work (or something similar might)...
import java.util.HashMap;...
To expand on this - there are a couple of ways you could do this. For example, you could gather all of the information you need, then on the last step, depending what button/information is selected...
The appropriate place for this kind of thing is a custom View class.
Have a look at the View hierarchy - there are subclasses for eg. writing PDF and Excel direct to the response.
Agreed, if you don't implement an interface, the proxy approach will never work and CGLIB is required.
Also, where is the code that calls the insert() method? Where does the datasource come from?...
Glad it worked out for you - tag files are a godsend ;)
Further to this idea, I guess given the way ViewResolvers work you would probably end up with one DispatcherServlet per reusable flow definition. If that was an architecture you were willing to go...
With respect to the specific problem of view names - isn't this something that can be solved with the standard ViewResolver infrastructure? The fact is that your view name needn't be 'bookCriteria' -...
Ah yes, SimpleFormController is deceptive... your problem is that you are essentially subverting the intent of the SimpleFormController. I too was once confused and thought it meant that it was a...
Right, I understand. Yes, writing direct to the JspWriter like that isn't going to work.
As of JSP 2.0 you can implement a custom tag in a .tag file. This is a far more expressive way of doing...
So, is your custom tag not basically just going to be a big choose/when/otherwise statement? Why can't all the logic for rendering the form input element be contained entirely within the tag?
I...
Yes, it looks like unless you have at least one platform transaction manager called 'transactionManager' it won't work with the defaults? Which is odd, because it leads you to believe it should...
Hmm... I've not had to do this, but at a guess I'd say you could override onSetUpBeforeTransaction() and manually call setTransactionManager(), passing in a different manager obtained from the...
Also, if you do want programmatic transaction management, seriously consider using the TransactionTemplate. Lets you do stuff like:
transactionTemplate.execute(new...
Also - are you using HibernateTemplate? That "No session is bound to thread" error is the kind of thing you get when you use the HibernateTemplate with "allowCreate" set to false. If you just need...
Firstly, if you want to test simple data access stuff, there are some useful spring helper classes. A good start would be the AbstractTransactionalSpringContextTests base class. What you need to do...
Old old thread, but I thought I'd mention that I've just posted code in the following JIRA:
http://opensource.atlassian.com/projects/spring/browse/SPR-2460
Actually, that very probably is the problem. As I stated earlier in this thread, the whole OracleLobHandler approach is known to only work on 9.2.0.5 and above.
Hi,
Can you confirm which Oracle database version you are using, not just the driver version?
Also, can you confirm how you are using Spring to access the database and manage transactions? ie....
You do not have to be using SpringMVC to have a WebApplicationContext. Assuming you have some kind of root application context created by a ContextLoaderListener or ContextLoaderServlet defined in...
Because it implements the ServletContextAware interface, if it is defined in a WebApplicationContext it will automatically get a handle on the ServletContext.
Looks like a copy and paste error to me - the fields titulo and subtitulo on Noticia are mapped to the columns nombre and alias on the Noticia table.
PropertiesFactoryBean is an implementation of the FactoryBean interface. These are handled differently by Spring - see...
There is no property "userproperties" on that class. Set the "location" property to be the location of your properties file.