Thank you for the quick response.
Here“s the workaround with a Wrapper for the SeamRedirectFilter.
It appends dummy=dummy.pdf to the end of the url.
public class RedirectFilterWrapper extends SeamRedirectFilter {
|
| public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)
| throws IOException, ServletException {
| super.doFilter(request,
wrapResponse((HttpServletResponse)response), chain);
| }
|
| private static ServletResponse wrapResponse(HttpServletResponse
response) {
| return new HttpServletResponseWrapper(response) {
|
| public void sendRedirect(String url) throws IOException
{
| String param = "dummy=dummy.pdf";
|
| url = new StringBuilder( url.length() +
param.length() +1)
| .append(url)
| .append( url.contains("?") ? '&' : '?' )
| .append(param)
| .toString();
|
| super.sendRedirect(url);
| }
| };
| }
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008233#4008233
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008233
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user