On 6/29/07, David Leangen <[EMAIL PROTECTED]> wrote:


Hello!

I'm wondering if something has changed in 1.2.6 and the API docs are out
of date, or if I just misunderstood the API docs...

I am trying to get the URL of the request (the complete URL in the form
http://my.company.com/blah/hello?a=b&c=d).

This is how:

WebRequest request = getWebRequestCycle().getWebRequest();
String baseUrl = request.getURL();


The API docs say:

getURL
public abstract java.lang.String getURL()
        Retrieves the absolute URL of this request for local use.

Returns:
        The absolute request URL for local use



However, I am getting something that looks like

        /hello///?wicket:interface=2:
form.requestPassword::IFormSubmitListener

I don't mind anything after the "?", but I do need the _absolute_ URL,
meaning everything in the form I wrote above.


you have access to httpservletrequest from which you can reconstruct the
full url by concatenating all the pieces.

((webrequest)getrequest()).gethttpservletrequest()


Did I misunderstand the API docs?


please add a jira issue to have this fixed

-igor


Thanks!
Dave




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to