|
Subject:
|
NEED HELP ASAP
|
|
Posted By:
|
surethg
|
Post Date:
|
1/20/2006 1:57:31 PM
|
ok here is my dilemma, i work for a small company and we are working on a order entry system and our java programmer quit. i'm the only other one with any web related skills so i'm trying to pick up where he left off until someone else is hired.
currently http://www.nasinc.com/OEw01Products.java.txt gets a list of currently active products and category codes, etc. http://www.nasinc.com/store_main.jsp.txt is the jsp page which is the front for the store. near the bottom is the for loop i'm trying to make spit out the value of OEw01_prod_descr in a list. right now all its doing is spitting back null. what am i not doing right/ need to fix to get it to return this one value. thanks to anyone that can shed any kind of light on my problem. i'm not pretending to be even close to a beginner at jsp but i just need to fix this part until we hire someone else.
|
|
Reply By:
|
panacea
|
Reply Date:
|
1/21/2006 6:07:26 PM
|
From reading through the Java file, it seems as though OEw01List is an ArrayList of OEw01_Products, which are HashMaps. The JSP seems to retrieve a similarly composed OEw01List from the database. If this is true, then you probably want to change your request.getParameter(...) to something like this:
((HashMap)OEw01List.get(i)).get("OEw01_prod_descr")
By the way, request.getParameter(...) returns form submission values, not attributes. I don't see a reason you should be using it.
Jon Emerson http://www.jonemerson.net/
|