Click to See Complete Forum and Search --> : integrating jsp as component


shilpatendulkar
05-30-2006, 10:36 AM
Hi,

I have a search script build in jsp/struts. I want that script to be executed by client(some other url outside application). similar to how google API works.
When client will hit search.html, it should load my search.do script on another server. It is kind of component whichi needs to embedd in other script.
Can anyone give an idea how do i do this?
I tried using JS Script which will call a script on diffrent server and then embedd the search results but I am gettting JS error saying expected ; on lineXX.
This is my html
<div id="divSearch">
<script type="text/javascript" src="http://192.168.1.111/scottishapartment/search.do?mode=displayForm"></script></div><br>
<div id="divResults"> </div>

chazzy
05-30-2006, 10:11 PM
I would think the API would have more to do with your servlet layer than your JSP layer honestly. they would still use a JSP (or something like it) to process the response from your servlet.

basically they would be building an interface over your servlets, not your JSP's.

also, i have no clue why you're using javascript. does search.do?mode=displayForm even return valid javascript?