History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-1400
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: tm_jee
Reporter: tm_jee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WebWork

URL tag includeParams get functionality does not work under websphere

Created: 17/Dec/06 07:53 AM   Updated: 17/Dec/06 08:04 AM
Component/s: None
Affects Version/s: 2.2.4
Fix Version/s: 2.2.5


 Description  « Hide
This is a back port of this issue from struts2 http://issues.apache.org/struts/browse/WW-1563?page=all

 All   Comments   Change History      Sort Order:
tm_jee - [17/Dec/06 07:56 AM ]
made the following changes in URL.java, lines prefixed with + are the additional lines added.

private String extractQueryString() {
        // Parse the query string to make sure that the parameters come from the query, and not some posted data
        String query = req.getQueryString();
+ if (query == null) {
+ // WW-1400 (Websphere will return null)
+ query = (String) req.getAttribute("javax.servlet.forward.query_string");
+ }

if (query != null) {
            // Remove possible #foobar suffix
            int idx = query.lastIndexOf('#');

if (idx != -1) {
                query = query.substring(0, idx);
            }
        }
        return query;
    }

tm_jee - [17/Dec/06 08:03 AM ]
Checking in java/com/opensymphony/webwork/components/URL.java;
/cvs/webwork/src/java/com/opensymphony/webwork/components/URL.java,v <-- URL.java
new revision: 1.36; previous revision: 1.35
done