This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes JSP, Solr - How to get attribute from node, add to documentbuilder and display on webpage. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JSP, Solr - How to get attribute from node, add to documentbuilder and display on webpage." Watch "JSP, Solr - How to get attribute from node, add to documentbuilder and display on webpage." New topic
Author

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

willie wright
Greenhorn

Joined: Feb 18, 2010
Posts: 6
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

Joined: Aug 31, 2007
Posts: 802

UseCodeTags because it will be easier to read your code.


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Feb 18, 2010
Posts: 6
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!
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: JSP, Solr - How to get attribute from node, add to documentbuilder and display on webpage.
 
It's not a secret anymore!