• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP, Solr - How to get attribute from node, add to documentbuilder and display on webpage.

 
willie wright
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having trouble learning how to get attributes from nodes and adding them to a documentbuilder object and making it available to display on the webpage. I am using results from Solr with Java and XML. (I'm new to Java but I'm good with JavaScript and JQuery.)

With this app I am having problems getting numFound from the XML response and showing it on the webpage. Here's an example of the XML response from Solr:





I really appreciate your assistance. Here's the code I'm working with:




 
Ninad Kulkarni
Ranch Hand
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
UseCodeTags because it will be easier to read your code.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It'd be easier if you helped us know where to look in the code, posted only the most-relevant sections, etc. 650+ lines of code is a lot to look over to find something so specific.
 
willie wright
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have edited this post to be shorter. Installing a Java IDE helped.

I think I'm on the right track to a solution here. I just need some help putting it all together. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic