Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    188

    You can also use Apache HTTP components...

    You can also use Apache HTTP components. It has APIs like HTTPRequest, HTTPPost etc using which you can "POST" your data to your controller. In your controller handle it accordingly as required.
  2. I feel that 404 error occuring, has nothing to do...

    I feel that 404 error occuring, has nothing to do with iframe.

    As per the javadoc the call request.getRequestDispatcher("/product-photo-gallery.jsp") will search for product-photo-gallery.jsp...
  3. Replies
    1
    Views
    372

    You cannot do file upload by ajax directly....

    You cannot do file upload by ajax directly.
    Either you have to use the thirdparty plugins available for doing that or just do it by the normal way of multipart form submit.
  4. Accessing JAX Soap based Web service in Spring BO - JBOSS problem

    Hi ALL,
    I'm using Spring 3 for my web app along with JBoss server (5.1)
    I've a separate web service running and have set up the web service's client so that my BO can access it.
    The corresponding...
  5. Replies
    0
    Views
    339

    Spring 3 @Scheduled

    Hi All,
    I'm using @Scheduled annotation to schedule a method execution
    Can any one explain me how @Scheduled(cron="") work.
    I went through this link but I'm not familiar with cron job scheduling...
  6. Replies
    3
    Views
    692

    Anks_ce, If you are in a situation where in your...

    Anks_ce,
    If you are in a situation where in your dynamically generated HTML has to be shown as a response after some processing (request) then you can just read the contents of HTML file in your...
  7. Replies
    3
    Views
    692

    One way of achieving your goal is to set the...

    One way of achieving your goal is to set the response type to "text/html" and then write the contents of your dynamically generated HTML file to response outputstream. By this way you can force the...
  8. Sorry forgot to remind about this. Setting the...

    Sorry forgot to remind about this.
    Setting the parameter 'forceEncoding' to true will enforce the specified encoding to ALL your requests & responses which may not be desirable in some situations
  9. This link ...

    This link may be helpful to you if you are using any JS libraries like JQuery or Dojo.


    Other Easier way of doing this is to construct JSON object on client side and send it as string to your...
  10. You can also set parameter 'forceEncoding' for...

    You can also set parameter 'forceEncoding' for the filter, to enforce the specified encoding in any case (for both request & response encoding) as shown in code below


    <init-param>
    ...
  11. Replies
    1
    Views
    964

    Retrieve Connection from entitymanager

    Hi All,
    I'm using Spring 3, Hibernate & JPA 1 for my web app & mysql as the DB server
    I want to retrieve the native Connection object from the entitymanager. How can I do this?

    After much...
  12. Replies
    6
    Views
    1,072

    What about the MessageSource? I hope you have...

    What about the MessageSource? I hope you have created that bean as well in your dispatcher-servlet.
    Also, you can refer to this link...
  13. Replies
    0
    Views
    1,161

    Spring 3 file upload

    Hi All,

    I've migrated from spring 2.5 to 3 and I'm NOT using any annotations in my web-app.
    My question is what is the best practice for file upload since SimpleFormController is deprecated in...
  14. Try setting 'method' attribute in your 'form'...

    Try setting 'method' attribute in your 'form' element to 'post'
  15. Replies
    1
    Views
    1,142

    Accessing SPRING_SECURITY_CONTEXT in BO?

    Hi All,

    I'm using Spring 3 along with spring security 3
    Can I in any way access the spring security session variable SPRING_SECURITY_CONTEXT in my Business object (BO).
    Right now I'm able to...
  16. Mark the non-persistent field with @Transient...

    Mark the non-persistent field with @Transient annotation
    Refer Javadocs of javax.persistence.Transient
  17. Replies
    1
    Views
    1,044

    Accessing UserDetails object in Controller

    Hi All,
    I'm using spring security 3.
    I wanted to know how to access the custom UserDetails object in the controller.
    Previously there was SecurityContextHolder.getContext()....... for this but I'm...
  18. Replies
    4
    Views
    936

    Thank you MartyJones :) Just what I...

    Thank you MartyJones :)
    Just what I wanted.............
  19. Replies
    4
    Views
    936

    I'm using spring 2.5 and its a web appln. what I...

    I'm using spring 2.5 and its a web appln.
    what I wanted something similar to the link given but in my view(jsp) instead of swing dialog
  20. Replies
    4
    Views
    936

    BO Exception handling

    Hi All,
    I'm new to spring and wanted to know how do I handle run time exceptions arising from BO.
    I need to customize the error message thats displayed to user.
    I referred to...
Results 1 to 20 of 20