I finally got a chance to try and create a small project to duplicate the issue.
I'm using a vanilla STS 3.0 install. Java 1.6. And the IvyDe plugin.
I created the project using the Dynamic Web...
Type: Posts; User: msmithi33; Keyword(s):
I finally got a chance to try and create a small project to duplicate the issue.
I'm using a vanilla STS 3.0 install. Java 1.6. And the IvyDe plugin.
I created the project using the Dynamic Web...
I knew this would come up. :-)
The directory structure is
src
com/domain/blah/blah
resources/etc/etc
Yes, it probably would have made more sense to use...
The problem went away but I'm not sure what I did in the end that fixed it. Might have been updating perms on all the folders, but at this point I've completely re-installed STS and tcServer. Now...
First, this was all working a few days ago and then poof it stopped working. The only thing I did in the middle was an svn update and my sts settings are not in svn.
That said, whenever I...
I'm having the same issue. Has anyone found a solution?
I have neither. I never seen any mention of this requirement in the documentation. I'll try it out, but can you explain why it's necessary?
Thanks, Marten.
You seem to be mixing paradigms here.
If you pass in the variable in the model via addAttribute()
it should be available in your jsp e.g.
<div>page = ${page}</div>
It doesn't make sense...
@vw729: Switching the order has no effect.
@Marten:
The issue is that without the @ModelAttribute, Post form submissions are mapped (handled) by the method. With the @ModelAttribute, the Post...
Hi all.
I didn't think ModelAttribute was supposed to have any influence on the handler mappings, but where this method maps just fine:
@RequestMapping(method=RequestMethod.POST)...
Path variables are Spring 3 only
I haven't tried it myself, but I'm assuming it would be something like this:
${sessionScope.myVariable}
Or you could put it directly in your ModelMap I suppose.
I have an interceptor that gets (or tries to) the package name of controller.
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws...
Hi.
I'm trying to create an interceptor on my DAOs that will set some audit info in the database just prior to executing an insert or update.
I'm trying to do this with a method annotated with...
Dude, do a little leg work.
model.addAttribute("profile", new Profile());
I'm assuming name is a member of the Profile object, so change the path from 'name' to 'profile.name'.
Because the checked attribute is set automatically based on the value.
If the bound value matches the supplied 'value' attribute, then it's checked. Otherwise it isn't.
The Model is a Map. Add both objects to it and access via key.
ModelMap mm = new ModelMap();
mm.add("profile",new Profile());
mm.add("perms",permsObj);
...
Never mind. My jBoss work directory just needed to be deleted.
TFGI: spring 2.5 form tag
or use this link
Appendix E
I ran into this same issue for a read-only stored proc and solved it simply with the @Transactionl annotation:
@Transactional(readOnly = true, propagation=Propagation.NOT_SUPPORTED)
I got the...
Ok. That clears that up. Thanks again, Marten!
Thanks Marten,
That got me past that error. So now I'm getting the "No Hibernate Session bound to thread' error, which seems to have a solution in this thread.
But I have a question. Is the...
So I'm trying to set up some simple DAOs according to section 12.2.5 of the spring docs, and I keep getting this "No TransactionManagerLookup specified" exception. It seems to happen because the...
Thanks, 'lemming. I managed to figure it out on my own and came away with essentially the same solution as you.
Though i used Spring's AutoPopulatingList instead of LazyList. (notice the...
Did you ever figure this out? I'm trying to do the same kind of thing.