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

Reply via email to