Forums Register Login

printing cart contents

+Pie Number of slices to send: Send
can someone tell me how to print the contents of a bean?
+Pie Number of slices to send: Send
"ron_zook", please check your private messages.
+Pie Number of slices to send: Send
To get any type of substantive response, you'll need to provide a lot more detail than that. Please read this for more information.
+Pie Number of slices to send: Send
o im sorry for not being clear earlier. well i have a servlet cartDetails that gets a cartid from the DB and stores it in a customer bean. i also have a jsp page that is supposed to call this servlet. when i add stuff to the cart it does that successfully because i checked the DataBase but when i click on show cart i dont see the items that were added
+Pie Number of slices to send: Send
"ron_zook",
At this point, it's very important that you check your private messages and follow the instructions within.
Once that's set, we'll be happy to discuss your question.
+Pie Number of slices to send: Send
can i get some help now?
+Pie Number of slices to send: Send
 

Originally posted by ronald zook:
can i get some help now?


A word of advice: leaving attitude at the door works best when tryng to get people to volunteer their time to help you.
+Pie Number of slices to send: Send
 

Originally posted by ron_zook:
but when i click on show cart i dont see the items that were added


So when you say "print" you mean to display on-screen rather than on a piece of paper?
+Pie Number of slices to send: Send
i apologize if my response came accross in the wrong way. i wasnt trying to be arrogant in any way. well right now im getting the following error when i click on the shoppin cart link

Error: Cannot find any information on property 'TableData' in a bean of type 'bean'
+Pie Number of slices to send: Send
You're not giving us much to go on.

First, I ask again, by "print" you mean display on-screen, right? Usually "print" means to send to a printer.

Secondly, how are you declaring and accessing the bean? Does it have properly formed bean accessors? Such as getTableData()?

If so, the property name would be "tableData".
[ November 14, 2007: Message edited by: Bear Bibeault ]
+Pie Number of slices to send: Send
o im sorry. by print i mean send to the browser i.e display on screen. i have the proper gets and sets in the bean. why should the property name be lower case?
+Pie Number of slices to send: Send
the property name in the jsp is tableData but im still getting this error

Cannot find any information on property 'TableData' in a bean of type 'bean'
+Pie Number of slices to send: Send
hi ronald,

why don't you post relevant parts of your code (.jsp and bean)

Herman
+Pie Number of slices to send: Send
here's the bean class

here's the jsp

here's the servlet that the jsp call. the one that has the cart info


thanks
+Pie Number of slices to send: Send
 

Cannot find any information on property 'TableData' in a bean of type 'bean'



This looks fishy.
Your useBean declaration looks OK but it's trying to cast your customer to an object of type "bean".

Have you restarted this app since the last time you recompiled your classes?
Also, are you sure that the latest version of your JSP is being used?
What container are you using?
Lookout! Runaway whale! Hide behind this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1226 times.
Similar Threads
Book Promo: does it have a table of contents?
Book Content
asp
Mr.Kyte, could you introduce a little about your book?
Silk test 8 doesnt recognizes objects in firefox 2
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 23:06:28.