hi all, i have an application in which i am updating my database by calling method from execute method of action class but from here i dont want to forward to any page if any one is having any idea please reply immediately
In the HTTP protocol, there is always a request and a response. When a user makes an HTTP request, the server must provide a response. There's no way around that. If you want to go back to the same page, that's fine: Just forward to the same page that submitted the request.
If you're handling the response outside of the Struts framework, such as by getting the output stream from the HTTPServletResponse object and writing to it, that's fine also. In that case, just return null from the execute() method.
It's important to realize, though, that in each of the above cases, a response is still being given to the request, and there's no way to avoid that requirement. [ July 27, 2007: Message edited by: Merrill Higginson ]