Sven, I got the following
url is http://localhost:8080/emaildetails.formregister/username/password Its actually showing the request url as well as the page and context parameters we have specified using createPageLink. It think with a bit of string manipulation I can get the result I want. There ought to be a more elegant way to do this though... Thanks for your help 2008/6/19 Sven Homburg <[EMAIL PROTECTED]>: > sorry, i went wrong > use : > > requestGlobals.getHTTPServletRequest().getRequestURL().toString() + > link.toURI(); > > 2008/6/19 Jabbar <[EMAIL PROTECTED]>: > >> Hello Sven, >> >> I got >> >> "url is /register/username/password" >> >> >> >> >> 2008/6/19 Sven Homburg <[EMAIL PROTECTED]>: >> > try >> > >> > Link link = resources.createPageLink("Register", false, p.toArray()); >> > System.err.println(link.toAbsoluteURI()) >> > >> > 2008/6/19 Jabbar <[EMAIL PROTECTED]>: >> > >> >> Hello all, >> >> >> >> I'm trying to create a url I can embed in an email using the following >> >> >> >> List<String> p = new ArrayList<String>(); >> >> p.add(emailAddress); >> >> p.add(password); >> >> Link link = resources.createPageLink("Register", false, >> >> p.toArray()); >> >> //emailVerifier.sendVerification(user, >> >> requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); >> >> System.out.println("url is >> >> "+requestGlobals.getHTTPServletRequest().getPathInfo() >> >> +"/"+link.toURI()); >> >> >> >> the value of the System.out.println is >> >> "url is null/register/username/password" >> >> >> >> How do I get the name and port of the web server? >> >> >> >> -- >> >> Thanks >> >> >> >> A Jabbar Azam >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > with regards >> > Sven Homburg >> > http://tapestry5-components.googlecode.com >> > http://chenillekit.googlecode.com >> > >> >> >> >> -- >> Thanks >> >> A Jabbar Azam >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > with regards > Sven Homburg > http://tapestry5-components.googlecode.com > http://chenillekit.googlecode.com > -- Thanks A Jabbar Azam --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]