• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to pass parameters to action through URL in a POST request

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In my Struts 2 Application, I am getting a table of values from the database using the iterator tag and using respective getter and setters for the same. For Example I am getting list of Account number, Name and Account Balance. Now I am using the following code to get the account details after user clicks on the ac no. url which is retrieved from DB using struts iterator. Supose there are two accounts of one customer. If I click on first account number then I am getting correct account details for that particular account number. But in case of other account I am getting 0

Java class -



custacsummary.java



JSP parts csutacsummary.jsp

 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch. We ask that you let us know if you have posted your question on other sites. We'd hate to waste our time working on your problem if it has already been answered elsewhere.
It looks like we don't have enough of the JSP to help you right now, but judging from Roman C's comment on the other site, you just copied something he had posted on how to make a block of text respond to a click. Do you understand how his code works? Can you fix the code posted above so we can get a better picture of what you are doing?
 
Srijit Banerjee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joe Ess wrote:Welcome to the JavaRanch. We ask that you let us know if you have posted your question on other sites. We'd hate to waste our time working on your problem if it has already been answered elsewhere.
It looks like we don't have enough of the JSP to help you right now, but judging from Roman C's comment on the other site, you just copied something he had posted on how to make a block of text respond to a click. Do you understand how his code works? Can you fix the code posted above so we can get a better picture of what you are doing?



It's true I have asked about this problem on other sites. But I have not got any solution. So in order to find a working solution to this problem I posted here. What other jsp do you need?
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the JSP you posted above. It is incomplete.
 
Srijit Banerjee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joe Ess wrote:Look at the JSP you posted above. It is incomplete.



http://pastebin.com/WcKeYRMv

http://pastebin.com/NkPy8Uxv

http://pastebin.com/TEWXxS1M
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Srijit Banerjee wrote:

Joe Ess wrote:Look at the JSP you posted above. It is incomplete.



http://pastebin.com/WcKeYRMv

http://pastebin.com/NkPy8Uxv

http://pastebin.com/TEWXxS1M


The help us best help you, please copy paste your JSP here (Please UseCodeTags)
Not many people will be bothered to go to some other site to see the code
 
Srijit Banerjee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maneesh Godbole wrote:

Srijit Banerjee wrote:

Joe Ess wrote:Look at the JSP you posted above. It is incomplete.



http://pastebin.com/WcKeYRMv

http://pastebin.com/NkPy8Uxv

http://pastebin.com/TEWXxS1M


The help us best help you, please copy paste your JSP here (Please UseCodeTags)
Not many people will be bothered to go to some other site to see the code







 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any way you can try to narrow the problem down? 600 lines is an awful lot of code to read through (not to mention I don't think Axis Bank wants you posting their code)
 
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic