please advise how to use the

2009-05-17 Thread Prashant Singh
Hi, I have put the following code in my jsp but its not generating any rows where I can enter data: # Product Qty Unit Price Allocation Instructions Label Instructions Description Override Reason

I need to set value in the action class

2009-05-24 Thread Prashant Singh
Hi dear, what I am doing is that I have taken out all the products listed under product column in mysql table and have displayed them in a jsp. Now I want to click the product displayed on the jsp and display all the supplier that supply that particular product. Anysuggestions how do i

not able to populate the productID or the productName from the front end jsp.

2009-05-25 Thread Prashant Singh
Hi dear,   I have an issue.   I have been able to display the all the products on a jsp. Now I need to click on one product and execute the action class and and display all the suppliers supplying the product.   I have not been able to execute the action class as I am not able to populate the pr

Re: not able to populate the productID or the productName from the front end jsp.

2009-05-26 Thread Prashant Singh
t.   xx Product Id = Driver Loaded Database is connected Product Id = Product Name = null com.mysql.jdbc.preparedstatem...@8ab08f: Select suppliername from supplier_proddetails where productid=''[...@14d921a rscom.mysql.jdbc.result...@1b32627 x   Please help.   R

how to get productID from the url into action class.

2009-05-28 Thread Prashant Singh
el="stylesheet" type="text/css"/> This Page Gives the List of Products handled by Astral Pharmaceuticals Products Handled ">   The url i am generating is as follows: http://localhost:8080/Astralpharma1/astralpharma/astralpharma/showprodsuppliers.action?productID=1 I just need to get the productID from the url.   Sincerely, Prashant Singh Explore and discover exciting holidays and getaways with Yahoo! India Travel http://in.travel.yahoo.com/

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

2009-05-28 Thread Prashant Singh
tring, just use indexOf and substring. > > Nils-H > > On Thu, May 28, 2009 at 11:41 AM, Prashant Singh > wrote: >> >> >> >> >> Hi dear, >> >> I have been trying to read the productID from the url but it goes into an >> infinite loop a

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

2009-05-28 Thread Prashant Singh
2009, 3:19 PM 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 Si

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

2009-05-28 Thread Prashant Singh
2009, 3:19 PM 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 Si

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

2009-05-28 Thread Prashant Singh
action class. To: "Struts Users Mailing List" Date: Thursday, 28 May, 2009, 3:59 PM If you take a step back, and remove what you have tried to do now, what did you try, and what didn't work? Nils-H On Thu, May 28, 2009 at 12:22 PM, Prashant Singh wrote: > Hi Nils, > >

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

2009-05-28 Thread Prashant Singh
ction, and it should automagically be set from the url to your action. If that doesn't work, then there's something wrong with your setup. Nils-H On Thu, May 28, 2009 at 12:33 PM, Prashant Singh wrote: > Hi Nils, > > can you please illustrate with a code snippet. > > Thanks, &

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

2009-05-28 Thread Prashant Singh
gested? You didn't respond to his suggestion. What he was trying to explain is that Struts should call setProductId() for you so that you have no need to mess about with Request parameters, etc. If you are determined to extract the productId value from the Request URL, then have a look at t

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

2009-05-28 Thread Prashant Singh
e: > > > 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:59 PM > > > If you take a step back, and remove what you have tried to do now, > wh

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