Hello I use java.net.URL to create external URLs, this allows me to verify URL is valid. Tapestry uses java.net.URL for external redirection, i mean that action method can return URL and Tapestry will do the redirection work.
Regards Christophe. 2009/10/28 sameerkhare <sameer.kh...@hcl.in> > > That's right....... > createPageRender() is to create internal link, Thats why i am not able to > create external link by this method. > Currently i am constructing the link with following approach. But i am not > sure, that is it good way to create an exteranl link.????????/ > > public String getFwdLink(){ > StringBuilder fwdLink= new StringBuilder(); > fwdLink.append(messages.get("siteURL")); > fwdLink.append("?"); > fwdLink.append(RET_URL); > fwdLink.append(messages.get("mysite")); > fwdLink.append("&"); > fwdLink.append(AUTH_DPID); > fwdLink.append(messages.get("dsp_ID")); > fwdLink.append("&"); > fwdLink.append(AUTH_ACTION); > fwdLink.append(messages.get("actionToken")); > return fwdLink.toString(); > } > > > > Please conferm that is above method to create exteranl link is good with > tapestry. > > Sameer > > > > DH-14 wrote: > > > > But what you want is external link, createPageRender() is to create > > internal link, you need provide your app internal page name. > > > > DH > > http://www.gaonline.com.cn > > > > ----- Original Message ----- > > From: "sameerkhare" > > To: <users@tapestry.apache.org> > > Sent: Wednesday, October 28, 2009 5:29 PM > > Subject: Re: how can i construct external url with querystring??? > > > > > >> > >> Is it the good way to construct the url by this way. I think it is not. > >> I am trying to use Link tapestry class with createPageRender() method. > >> but > >> no luck...... > >> > >> > >> > >> > >> > >> DH-14 wrote: > >>> > >>> I think there isn't any difference between Tapestry and other > framewords > >>> here. Or did I misunderstand? > >>> > >>> You have defined the 'getFwdLink' in your java class, then just > >>> construct > >>> the url and assign this property in tml: > >>> > >>> public String getFwdLink() { > >>> return String.format(http://www.mysite.com?userId=%s&pass=%s, > >>> userId, > >>> ab); // you can use any way you like > >>> } > >>> > >>> In tml, ${fwdLink} login . > >>> > >>> DH > >>> http://www.gaonline.com.cn > >>> > >>> ----- Original Message ----- > >>> From: "sameerkhare" > >>> To: <users@tapestry.apache.org> > >>> Sent: Wednesday, October 28, 2009 2:08 PM > >>> Subject: Re: how can i construct external url with querystring??? > >>> > >>> > >>>> > >>>> Then how can i construct the external URL with query string in > >>>> tapestry. > >>>> > >>>> My Problem is that, I have a link on my tml page. and i need to > >>>> construct > >>>> URL with querystring and assign it to the link in tml page. > >>>> > >>>> Please suggest me, that how can i implement it. > >>>> > >>>> sameer > >>>> > >>>> > >>>> > >>>> DH-14 wrote: > >>>>> > >>>>> Don't understand your problem well. > >>>>> > >>>>> Doesn't [ ${fwdLink} login ] fit your need? > >>>>> > >>>>> DH > >>>>> http://www.gaonline.com.cn > >>>>> > >>>>> ----- Original Message ----- > >>>>> From: "sameerkhare" > >>>>> To: <users@tapestry.apache.org> > >>>>> Sent: Wednesday, October 28, 2009 12:47 PM > >>>>> Subject: how can i construct external url with querystring??? > >>>>> > >>>>> > >>>>>> > >>>>>> I want to construct a URL as below and forward to that external URL > >>>>>> through > >>>>>> tapestry 5. > >>>>>> My tml file contains link as below > >>>>>> > >>>>>> ${fwdLink} login > >>>>>> > >>>>>> and correspoinding java file contains getter method for it. > >>>>>> > >>>>>> public String getFwdLink() { > >>>>>> return fwdLink= "Http://www.mysite.com?userId=abc&pass=ab"; > >>>>>> } > >>>>>> > >>>>>> My problem is that how can i construct url with querystring??? > >>>>>> > >>>>>> Please let me know if any one has any idea on it. > >>>>>> > >>>>>> Thanks > >>>>>> Sameer > >>> > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/how-can-i-construct-external-url-with-querystring----tp26089334p26091675.html > >> Sent from the Tapestry - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >> For additional commands, e-mail: users-h...@tapestry.apache.org > >> > >> > > > > -- > View this message in context: > http://www.nabble.com/how-can-i-construct-external-url-with-querystring----tp26089334p26092168.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >