File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Need help in to show sub category Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Need help in to show sub category" Watch "Need help in to show sub category" New topic
Author

Need help in to show sub category

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
Hi,
i need help in recursive query from you all.
I have a table categoyr with following coloumns.

category ID cateogyName parentId
1 java 0
2 net 0
3 servelt 1

like that.
i have a jsp page where i have one text box for adding cateogyName one combo box for selecting the parent e.g 'JAVA' and one submit button.

i have to show the data in category wise in th drop down box.

please send the recurseive query for this how to do this type of task.


Happy New Year

Thanks
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

See Scott's reply to this very question.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help in to show sub category
 
Similar Threads
combo box with checkboxes
calling a function from inside another function
Show last value in the html:select
Getting 0 rows returned when selecting with null values
Extending Hibernate mapped class?