Hi! I need to send a link via email, but I get an exception (1.4-rc7).
The user is on a page (i.e., the current browser location): https://mydomain.com/BookmarkablePage/PageParameter1/ParameterValue1/PageParameter2/ParameterValue2 On this page there is a modal pop-up where I click a button to send the a link (via email) onto another page: onClick(...) { String url = urlFor(VisitorPage.class, pageParameters).toString(); System.out.println("url=" + url); String clickableLinkIntoEmail = RequestUtils.toAbsolutePath(url); // line 104 } While requestPath=https://localhost:8080/ Console: url=../../../../MountedVisitorPage/batch/20090809/start/20090727/target/569 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.AbstractStringBuilder.setLength(Unknown Source) at java.lang.StringBuffer.setLength(Unknown Source) at org.apache.wicket.protocol.http.RequestUtils.toAbsolutePath(RequestUtils.java:220) at org.apache.wicket.protocol.http.RequestUtils.toAbsolutePath(RequestUtils.java:179) at $1.onClick(MailerPanel.java:104) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
