Search:

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

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    2,630

    View Post

    Sure, you can use message.properties for other messages. Look into using the "message" custom tag.

    http://static.springframework.org/spring/docs/2.0.x/reference/spring.tld.html#spring.tld.message
  2. Maybe set the session id into your command object...

    Maybe set the session id into your command object using the formBackingObject method?
  3. sure

    Yes...any query parameter that is sent in the request is a candidate for binding.
  4. Replies
    3
    Views
    862

    PropertyEditor or manual create instance ahead of time

    When spring does binding, it doesn't know how to make an instance of your class and it doesn't assume that you want it to call a null argument constructor. You can either make an instance of...
  5. Replies
    3
    Views
    862

    Your bind path needs to start with the command...

    Your bind path needs to start with the command name:

    <spring:bind path="User.personal.lastName">


    and you input tag should look like this so you don't have to worry about the tag name
    ...
  6. Replies
    3
    Views
    1,110

    So what are you supplying to the log.error()? ...

    So what are you supplying to the log.error()?

    I do this in an ExceptionResolver and it works fine:


    import org.apache.commons.lang.exception.ExceptionUtils;

    ...
    ...
  7. Thread: Binding Lists

    by jeffry
    Replies
    3
    Views
    947

    You are using the following in your jsp: ...

    You are using the following in your jsp:

    <spring:bind path="bene.get[${status.index}].claimNumber">

    This is saying that your form controller command name is set to "bene". The "bene" object...
  8. Thread: paging

    by jeffry
    Replies
    16
    Views
    8,189

    query-based pagination

    I have had similar pagination requirements too and found some good advice here:
    http://www.devx.com/Java/Article/21383/1954?pf=true

    I used the Query-based pagination strategy that is outlined...
  9. Replies
    2
    Views
    2,911

    When binding tp an object in a List you have to use an index

    Remember that when you do a spring bind that the path has to match up with the field names starting at your command object. Probably if you look at the javadoc for BeanWrapper it will explain the...
  10. Replies
    2
    Views
    5,241

    Add var attribute and allow a body in tag?

    I've run across the same thing.

    I was thinking if we could do something like this:



    <form:select path="orderBy">
    <form:options items="validOrderBy" var="value">
    <spring:message...
  11. Replies
    2
    Views
    1,060

    I tend to use Spring JDBC with RowMapper's for selects

    If you are writing an application that does insert/update/delete then Hibernate will save a lot of work. However, I've kind of formed the opinion that if you are doing queries that contain any...
  12. If you really want to use the method, you could...

    If you really want to use the method, you could create your own class that extends JdbcTemplate and increases the visibility of that method to public.
  13. WebUtils.getTempDir(ServletContext servletContext)

    There is the static getTempDir(ServletContext servletContext) method in org.springframework.web.util.WebUtils that returns a java.io.File. Maybe this will do?
  14. Replies
    5
    Views
    1,113

    tiles might be the solution for you

    I've solved a similar problem using tiles. I had a template.jsp defined that all pages "inherit" from. Your template jsp would contain place holders for the top section, left section, and right...
  15. Replies
    4
    Views
    1,037

    Where you are doing this: return new...

    Where you are doing this:

    return new ModelAndView("ProjectEntry", "Model", map);

    Try this:

    return new ModelAndView("ProjectEntry", map);


    In your JSP, where you are doing this:
  16. Replies
    1
    Views
    1,194

    Acegi integration with Sun Access Manager

    Just wondering if anyone out there has integrated Acegi with Sun's Access Manager SSO software. Any advice and examples would be appreciated.
Results 1 to 16 of 16