Search:

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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: XML output

    by huijzer
    Replies
    4
    Views
    12,853

    My solution to sending XML back to the client was...

    My solution to sending XML back to the client was to create create an XmlView class:



    public class XmlView implements View {

    Log log = LogFactory.getLog(XmlView.class);

    public String...
  2. Replies
    4
    Views
    1,052

    I think you have to make a distinction here...

    I think you have to make a distinction here between Spring and Spring MVC. In my opinion:
    1. Combining Struts with Spring is fine.
    2. Combining Struts with Spring MVC is not advisible. Both are MVC...
  3. Replies
    2
    Views
    812

    As I understand Spring MVC, the second option is...

    As I understand Spring MVC, the second option is the way to go. Subclass SimpleFormController and put the call in the onSubmit() method.




    public class MyController extends...
  4. Replies
    1
    Views
    712

    Object is automatically updated

    Hi all,

    I am building a Web App using Spring MVC and Hibernate. I use OpenSessionInView and transactions.

    One of my pages is an edit-screen. My controller retrieves the relevant object from...
  5. And now I only have one query again :-) Thanks...

    And now I only have one query again :-)
    Thanks for your help!
  6. Hibernate fires more queries than necessary

    Hi all,

    I use Spring MVC with hibernate to create a web-based application. I use OpenSessionInView and have transactions enabled.

    My domain model consists of two classes, namely Artist and...
  7. Replies
    1
    Views
    1,363

    Spring 2.0 supports asynchronous receiving of JMS...

    Spring 2.0 supports asynchronous receiving of JMS messages without use MDB's. See for some more info:

    http://blog.springframework.com/benh/archives/2006/04/09/spring-20s-jms-improvements/
  8. Replies
    3
    Views
    958

    thanks, that was exactly what i was looking for!

    thanks, that was exactly what i was looking for!
  9. Replies
    3
    Views
    958

    SimpleUrlHandlerMapping question

    Hi all,

    I have defined my SimpleUrlHandlerMapping bean:



    <bean id="handlerMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
    <property name="mappings">...
  10. Replies
    19
    Views
    9,424

    I think you have an error in your referenceData()...

    I think you have an error in your referenceData() method.
    The following code should work:



    protected Map referenceData(HttpServletRequest request) throws Exception {
    Map reference = new...
  11. Replies
    19
    Views
    9,424

    Of course there are several ways to accomplish...

    Of course there are several ways to accomplish this in Spring, but this is how I solved this problem.

    Assuming you use a SimpleFormController that uses a JSP 2.0 view, you could do the following...
  12. I have implemented this solution and the "{0}"...

    I have implemented this solution and the "{0}" part gets correctly filled with the name of the field that caused the error. The next question I have is this: how can I get Spring to use a user...
  13. Thanks, that worked!

    Thanks, that worked!
  14. Spring application context in custom property editor

    Hi all,

    I am writing a custom property editor that can handle the binding of a form parameter to a specific domain model object. This property editor needs to access the spring application context...
  15. That was exactly what I was looking for. Worked...

    That was exactly what I was looking for. Worked perfectly!
  16. CustomNumberEditor: how to overrule error messages

    Hi all,

    I have registered a CustomNumberEditor in my Controller that enables me to have optional Integer properties.


    protected void initBinder(HttpServletRequest request,...
  17. Replies
    3
    Views
    1,171

    The formatting of your numbers could be done in...

    The formatting of your numbers could be done in the JSP using the JSTL taglib.



    <%@ taglib prefix="fmt" uri="http&#58;//java.sun.com/jstl/fmt" %>

    <fmt&#58;formatNumber value="$&#123;amount&#125;"...
  18. Replies
    1
    Views
    817

    Have a look at Acegi Security...

    Have a look at Acegi Security (http://acegisecurity.sourceforge.net/). This is a security framwork written on top of Spring.

    Arjan
  19. Replies
    14
    Views
    5,009

    Thanks!

    Thanks!
  20. Please have a look the documentation for the...

    Please have a look the documentation for the spring tags:
    http://www.springframework.org/docs/taglib/index.html

    The status.errorMessage is only available for the <spring:bind> tag. When using...
  21. Rob, Why not use security to restrict access...

    Rob,

    Why not use security to restrict access to certain resources, such as account.htm. If someone is trying to access this resource you can direct them to a login page.

    There are of course...
  22. Replies
    14
    Views
    5,009

    Chris, I am very interested in your solution....

    Chris,

    I am very interested in your solution. Especially since it does not seem to rely on JavaScript. Is it possible to post the code of your Controller?

    Thanks in advance!

    Arjan Huijzer
  23. Replies
    9
    Views
    1,826

    Somehow Spring cannot retrieve the object...

    Somehow Spring cannot retrieve the object represented by "answer" from your request.



    <property name="commandName"><value>answer</value></property>


    This property tells Spring to bind all...
  24. Replies
    9
    Views
    1,826

    Try replacing:

    Try replacing:



    <input type="hidden" name="memberId" value="$&#123;model.member.memberId&#125;" />


    with the following line:
  25. Replies
    9
    Views
    1,826

    Do you have any view resolvers defined in your...

    Do you have any view resolvers defined in your application-servlet.xml file. Spring uses these view resolvers to map an view name to a specific view. I think such a view resolver might be responsible...
Results 1 to 25 of 34
Page 1 of 2 1 2