File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes List values are not bind with text fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "List values are not bind with text fields" Watch "List values are not bind with text fields" New topic
Author

List values are not bind with text fields

Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
hi guys,

I have a problem with my project.I'm using struts2 EJB3,oracle top link and a oracle data base.
I created a view by using four data base tables and then created a entity class for that view.
what I want to do is retrieve data by using that view and display them in a jsp page.
I retrieved data from a list by using that above view.
then when I'm going to show that data in my jsp page they are not appear in the jsp page

below is my jsp code;and "searchClienGrouptList" is my list name which I derived by using a query. my view's name is "clientView"






when I'm going to load data to the jsp page below page appears.


[Thumbnail for 123.JPG]

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Without the action code it will be essentially impossible to help.

The name of your list in the iterator tag, however, is suspicious: "searchClienGrouptList". Is that a typo?
Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
here is my action code



I'm using a method called searchClient in the session bean to retrieve data from the database
if you want that code as well please inform
thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It's a *really* bad idea to propagate spelling errors like that.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Does the resulting empty table show the correct number of rows? Have you confirmed the data is being returned correctly? Is that line of code *really* that long?! 800+ chars is too long for a single line of code.
Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
yes I checked and double checked.I know there are spelling mistakes I changed those words for check whether it's working .
there are 31 records in the database view.and also same number of rows are appeared in the table .
I'm sending all the codes again
please help I'm stuck with this problem than 5 days.










THANKS FOR HELPING...


[Thumbnail for 123.JPG]

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

And the bean code? And the action properties?
Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
this is the bean code





what do you mean by action properties
is it my action's getters and setters??
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That's not the bean code, that's the code that retrieves thelist.
Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
thanks guys..
the problem was solved
there was a little mistake

thanks lot for helping ...
THANKS...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: List values are not bind with text fields