Wrap the action URL in a c:url tag.
Type: Posts; User: kablair; Keyword(s):
Wrap the action URL in a c:url tag.
Your first method requires both an ID in the URL, such as "/approve/14", an ID as a parameter (which is entirely separate) and a parameter named "approve" that can have any value. If you're missing...
<input type="hidden" name="id" value="%{id}" />
Should be:
<input type="hidden" name="id" value="${bulletin.id}" />
Or potentially ${id} but certainly not %{id}.
Well the thread is two years old. Dumb luck I happened to be looking at this forum again now...
No, we didn't have a problem with resources because our static resources were served by Apache...
As a model attribute.
public String getDTO(Model model) {
DTO dto = ...;
model.addAttribute("dto", dto);
return "freemarker.template";
}
Do you intend for ID to be a parameter or path variable?
Your @RequestMapping has it as a path variable. Meanwhile your method arguments and your HTTP POST are looking for a parameter.
Is there any way to map all of these to the same controller?
/app/{a}/
/app/{a}/foo.bar
/app/{a}/foo/bar
For example:
I've discovered the issue. The particular entities in question were being loaded as part of a 'startup' job that was not waiting for the application context to finish initializing. Thus they were...
I'm trying to use @Configurable with AspectJ at compile time in Maven to inject dependencies into JPA entities created by Hibernate in a JBoss environment. Dependency injection on these works...
Outside of a web application or outside of JBoss entirely?
Are you wrapping it in a transaction? Is the transaction being committed? In my experience a JPA call that doesn't persist is usually a missing transaction. It doesn't show up as an error, it...