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.
Type: Posts; User: Sudhi; Keyword(s):
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.
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...
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.
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...
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...
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...
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...
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
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...
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>
...
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...
What about the MessageSource? I hope you have created that bean as well in your dispatcher-servlet.
Also, you can refer to this link...
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...
Try setting 'method' attribute in your 'form' element to 'post'
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...
Mark the non-persistent field with @Transient annotation
Refer Javadocs of javax.persistence.Transient
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...
Thank you MartyJones :)
Just what I wanted.............
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
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...