Re: how to get productID from the url into action class.

2009-05-28 Thread Prashant Singh
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Dave Newton
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Prashant Singh
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Prashant Singh
    } public void setProductName(String productName) { this.productName = productName; } public String getProductID() {      return productID;      }      public void setProductID(String productID) { this.productID = productID; } }   --- On Thu, 2

Re: how to get productID from the url into action class.

2009-05-28 Thread Nils-Helge Garli Hegvik
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Prashant Singh
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Stuart Ellidge
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Prashant Singh
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Nils-Helge Garli Hegvik
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Prashant Singh
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,

Re: how to get productID from the url into action class.

2009-05-28 Thread Prashant Singh
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,

Re: how to get productID from the url into action class.

2009-05-28 Thread Nils-Helge Garli Hegvik
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Prashant Singh
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Stuart Ellidge
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

Re: how to get productID from the url into action class.

2009-05-28 Thread Nils-Helge Garli Hegvik
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

Re: how to get productID from the url into action class.

2009-05-28 Thread 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 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: >

Re: how to get productID from the url into action class.

2009-05-28 Thread 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 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: >