adeeb alexander

Ranch Hand
+ Follow
since May 29, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by adeeb alexander

Hi
I know this post is much older. I was provided a link to this to see for same question. This question is on stackoverflow also. The similarities in answers I have seen is regional. I saw that only indian guyz are answering as access specifier and access modifier are two different words. But y? R they getting wrong printed books?

Thanks
Adeeb
10 years ago
Hi.

I have a problem. I am forwarding a page in which n number of texfields are made dynamically, they can have any random name. By using the method getParameterNames() I am able to retrieve values in other jsp. Now i want the same thing to happen in struts 2. how should I use setter an getter methods there. I have used many times setter and getter in other apps but this is some different situation. I have tried like this.





to be more clear I want this statement "System.out.println(ParameterName+":"+request.getParameter(ParameterName));" to print values on page. Note: the parameters can be n in number. I want to print them all I am able to do in jsp. Someone please show me the correct way.


Thanks and regards.

Adeeb
12 years ago
Hi Bear.
I dint understand what code format you are talking about. Please give a small example so that i wont do such mistakes again. The problem is solved and the code is below. Hope this will be useful for someone.



Thanks for the Help Bear.
Hey this could give a clear understanding of the problem. The code below contains both hardcoded(written in file) and auto generated code. The above is written manually. The second row is auto generated. Now only first row is giving the desired output. i.e if I enter value in 2nd and 3rd text field I am getting result in 4th textfield.



Thanks
K sorry I got you in wrong way. I will create with jquery later. First I want to know what the exact problem is, where I am going wrong. Also I am not good in jquery, and this type of bugs are scaring me. :d. I am struck here from almost 8 hrs. How can this be, the elements created have exactly same values as I wrote manually. Its working when written manually but not when auto generated.


Thanks Bear for spending your time looking into the problem.
So, you mean in order to access the elements with jquery I have to create elements with jquery only???
Thanks for the reply Bear.


To be more clear when I am hand coding the elements like below



in the table and using jquery I am doing multiplication operation. This is fine. It is working if define in the code those elements. The problem is I am creating elements dynamically on clicking the button. The code is below




This is also fine the fields are created. But jquery is not working on it. NOTE: There is no mistake in assigning classes and id's as I have copied the code from fire bug, then pasted in the table and tested. But again the same code when generated by clicking the button I think jquery is unable to access it. How can that be, I am not sure and confused. My Jquery code is below.






Thanks.
Hi all.

I am currently able to sum up values of given text field, and want to do the same by creating dynamic textfields and accessing them by their classnames. I have successfully created dynamic textfields. I have checked the code with firebug. All class names are correctly assigned as it was done manually. Now I am not getting the output when I am creating textfields dynamically. Is this possible or I have simply for so long??



Thanks and Regards
Adeeb.
Ok guys.

I did trial and error and I got close to solution. What I did is below.



I place the elements in a table and gave an id to <td> tag, as you can see. This works. I want to give id to <input id="1a" type="text" name="loc"/> some thing like that. I there any way to do that. I would also like to know why it is not working when I assign id to textbox.

Thanks
Hi.

I am not able to understand where I am going wrong. Can someone please point out. I am trying to populate a textfield from database when i select a value from select. Though I am able to populate another select instead of textfield, when I am changing the element to textfield, i am not getting output. The code is below.


exp4.jsp



price.jsp




Thanks and Regards
Adeeb
Hi guyz.
I have a huge prob. It may look simple to you guyz. Its hard for me because I am using ajax which I am not aware of. Please guide me a little.

I dynamically added few elements. In those one is chekbox, a textfield and two select's. One select is loaded based on selection of first. Till here its fine. The problem is when i add next row of same elements and try to change the value of newly added element, the first select(2) values changes. Which should only change when I change the select of first select only. I would also like to know how can I retrieve the values of these dynamically created elements with jsp. The Ajax and my HTML code is given below.

Index.jsp




item.jsp (this is used to populate based on selected value)



Hope I am clear and looking for anyone's reply on this issue.
Ajax is like alien language



Thanks and Regards
Adeeb.
Thanks Bear.



I would just like to know that, do i need to rewrite the code so that it should work on android browser. I got this doubt because i am unable to connect to tomcat as I usually do from other pc on LAN. Can you please give an example of sample url?


Thanks.
Adeeb
12 years ago
Hi all.

I have a web application which is right now working fine. Now my client want to access it from an android device. I tried giving this url in android browser which I normally do in pc "192.168.1.3:8080" now I cant even see the default page of tomcat. I am using tomcat 7.x.

After that I started to search and found this 10.0.2.2 and emulator stuff. To be frank I dint understand those. How could someone give a different url when my ip is something else.

I don't know android development but I am quite good in java. Now i am confused, do I need to write the full app again. Please, someone tell me a simple solution.



Thanks and Regards.
Adeeb
12 years ago
Hi all.
I have a problem and I have almost browsed everything but still I did not understand nor I got a clear solution. Suppose I have 5 pages, and each page have text fields. All the details should be shown at final page. How can I achieve this. Till now i tried this. I got only half.

test.jsp


this will take to test1.jsp on submit

test1.jsp



till here ok. I get output whatever we enter in previous page and a text field to enter more data. on submit it goes to test2.jsp

test2.jsp


Now here i wont see the first value Only one value is coming which we gave :banghead:

test3.jsp




Now this is last jsp to diplay all the values from three pages. But i get only the last two pages value. Missing the first one. Is there any easy way to get. I have total 10 pages i want the values at last page.


Thanks and Regards
12 years ago
JSP
Hi.
I have a problem with pagination when i am clicking the next of that pagination. Everything is fine on the first page but when i click next i am not getting the styles but getting only values on white background that's it.

the code is below. Please someone point out the problem



By seeing image one can understand.

The is secondpage
12 years ago