display solr result in JSP

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

display solr result in JSP

Ma, Xiaohui (NIH/NLM/LHC) [C]
I am new for solr. Just got example xml file index and search by following solr tutorial. I wonder how I can get the search result display in a JSP. I really appreciate any suggestions you can give.

Thanks so much,
Xiaohui
Reply | Threaded
Open this post in threaded view
|

Re: display solr result in JSP

Ranveer Kumar-2
Hi,

very simple to display value in jsp. if you are using solrj then simply
store value in bean from java class and can display.
same thing you can do in servlet too.. get the solr server response and
return in bean or can display directly(in servlet).
hope you will able to do.

regards
Ranveer

On Wednesday 28 July 2010 08:11 PM, Ma, Xiaohui (NIH/NLM/LHC) [C] wrote:
> I am new for solr. Just got example xml file index and search by following solr tutorial. I wonder how I can get the search result display in a JSP. I really appreciate any suggestions you can give.
>
> Thanks so much,
> Xiaohui
>
>    

Reply | Threaded
Open this post in threaded view
|

RE: display solr result in JSP

Ma, Xiaohui (NIH/NLM/LHC) [C]
Thanks so much for your reply. I don't have much experience at JSP. I found tag library, and am trying to use " <xsltlib:apply xml="<%= url.getContent().toString() %>" xsl="/xsl/result.xsl"/> ". Unfortunately I didn't get it work.

Would you please give me more information? I really appreciate your help!

Thanks,
Xiaohui

-----Original Message-----
From: Ranveer [mailto:[hidden email]]
Sent: Wednesday, July 28, 2010 11:27 AM
To: [hidden email]
Subject: Re: display solr result in JSP

Hi,

very simple to display value in jsp. if you are using solrj then simply
store value in bean from java class and can display.
same thing you can do in servlet too.. get the solr server response and
return in bean or can display directly(in servlet).
hope you will able to do.

regards
Ranveer

On Wednesday 28 July 2010 08:11 PM, Ma, Xiaohui (NIH/NLM/LHC) [C] wrote:
> I am new for solr. Just got example xml file index and search by following solr tutorial. I wonder how I can get the search result display in a JSP. I really appreciate any suggestions you can give.
>
> Thanks so much,
> Xiaohui
>
>