Search:

Type: Posts; User: kablair; Keyword(s):

Search: Search took 0.02 seconds.

  1. Wrap the action URL in a c:url tag.

    Wrap the action URL in a c:url tag.
  2. Your first method requires both an ID in the URL,...

    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...
  3. ...

    <input type="hidden" name="id" value="%{id}" />

    Should be:


    <input type="hidden" name="id" value="${bulletin.id}" />

    Or potentially ${id} but certainly not %{id}.
  4. Well the thread is two years old. Dumb luck I...

    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...
  5. As a model attribute. public String...

    As a model attribute.



    public String getDTO(Model model) {
    DTO dto = ...;
    model.addAttribute("dto", dto);
    return "freemarker.template";
    }
  6. Do you intend for ID to be a parameter or path...

    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.
  7. Replies
    0
    Views
    71

    Map an entire subset of paths

    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:
  8. I've discovered the issue. The particular...

    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...
  9. Using @Configurable on a domain object not working

    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...
  10. Outside of a web application or outside of JBoss...

    Outside of a web application or outside of JBoss entirely?
  11. Are you wrapping it in a transaction? Is the...

    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...
Results 1 to 11 of 11