from the url into action class.
To: "Struts Users Mailing List"
Date: Thursday, 28 May, 2009, 4:53 PM
Prashant Singh wrote:
> How ever I have a little doubt about how the population of the private
> variables declared takes place.
Because you have a public setProductID(), and yo
Prashant Singh wrote:
How ever I have a little doubt about how the population of the private
variables declared takes place.
Because you have a public setProductID(), and your request has a
productID parameter. That's how S2 works.
So my ultimate question is what is the exact way of popula
Hi Nils,
I got it,
I am absoluteply estatic.
Thanks a ton,
Prashant
--- On Thu, 28/5/09, Nils-Helge Garli Hegvik wrote:
From: Nils-Helge Garli Hegvik
Subject: Re: how to get productID from the url into action class.
To: "Struts Users Mailing List"
Date: Thursday, 28 May, 200
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getProductID() {
return productID;
}
public void setProductID(String productID) {
this.productID = productID;
}
}
--- On Thu, 2
mail.
>>
>> this is generating a url as follows:
>> http://localhost:8080/Astralpharma1/astralpharma/astralpharma/showprodsuppliers.action?productID=1
>>
>> I just need to retrieve the productID from the url. thats it
>>
>> Please let me know how so
my output shows that the productid is null. and i have got crazy.
Regards,
Prashant
--- On Thu, 28/5/09, Nils-Helge Garli Hegvik wrote:
From: Nils-Helge Garli Hegvik
Subject: Re: how to get productID from the url into action class.
To: "Struts Users Mailing List"
Date: Thursday
wrote:
Hi Nils,
this is what I have tried to do till today.
http://www.coderanch.com/t/446930/Struts/transfer-productID-from-url-action
Sincerely,
Prashant
--- On Thu, 28/5/09, Nils-Helge Garli Hegvik wrote:
From: Nils-Helge Garli Hegvik
Subject: Re: how to get productID from the url into
gt;
> Please let me know how so I do that in Struts 2
>
> Thanks
> Prashant
>
> --- On Thu, 28/5/09, Nils-Helge Garli Hegvik wrote:
>
>
> From: Nils-Helge Garli Hegvik
> Subject: Re: how to get productID from the url into action class.
> To: "Struts Users M
On Thu, 28/5/09, Nils-Helge Garli Hegvik wrote:
>
>
> From: Nils-Helge Garli Hegvik
> Subject: Re: how to get productID from the url into action class.
> To: "Struts Users Mailing List"
> Date: Thursday, 28 May, 2009, 3:19 PM
>
>
> Um... What exactly ar
Hi Nils,
can you please illustrate with a code snippet.
Thanks,
Prashant
--- On Thu, 28/5/09, Nils-Helge Garli Hegvik wrote:
From: Nils-Helge Garli Hegvik
Subject: Re: how to get productID from the url into action class.
To: "Struts Users Mailing List"
Date: Thursday, 28 May,
Hi Nils,
can you please illustrate with a code snippet.
Thanks,
Prashant
--- On Thu, 28/5/09, Nils-Helge Garli Hegvik wrote:
From: Nils-Helge Garli Hegvik
Subject: Re: how to get productID from the url into action class.
To: "Struts Users Mailing List"
Date: Thursday, 28 May,
gt; --- On Thu, 28/5/09, Nils-Helge Garli Hegvik wrote:
>
>
> From: Nils-Helge Garli Hegvik
> Subject: Re: how to get productID from the url into action class.
> To: "Struts Users Mailing List"
> Date: Thursday, 28 May, 2009, 3:22 PM
>
>
> When I think of
Thu, 28/5/09, Nils-Helge Garli Hegvik wrote:
From: Nils-Helge Garli Hegvik
Subject: Re: how to get productID from the url into action class.
To: "Struts Users Mailing List"
Date: Thursday, 28 May, 2009, 3:22 PM
When I think of it, that doesn't make any sense either... Isn't th
Hi Prashant,
I have to confess that you have cheered up my morning :) That is quite an
amusing code snippet.
Not sure what you are actually trying to do, but what you are doing is opening
a URL connection to the Showprodsuppliers from within its execute method. So,
naturally, you have created
When I think of it, that doesn't make any sense either... Isn't the
product id set as a property on your action?
Nils-H
2009/5/28 Nils-Helge Garli Hegvik :
> Um... What exactly are you trying to do here? Do you just need the product id
> from the url string, or are you trying to fetch something
Um... What exactly are you trying to do here? Do you just need the
product id from the url string, or are you trying to fetch something
from a different backend? If you just need it from the string, just
use indexOf and substring.
Nils-H
On Thu, May 28, 2009 at 11:41 AM, Prashant Singh
wrote:
>
Um... What exactly are you trying to do here? Do you just need the
product id from the url string, or are you trying to fetch something
from a different backend? If you just need it from the string, just
use indexOf and substring.
Nils-H
On Thu, May 28, 2009 at 11:41 AM, Prashant Singh
wrote:
>
17 matches
Mail list logo