Virtual Host/WebGroup Not Found
843841Sep 28 2004 — edited Sep 28 2004Hi,
My application is search engine. If it finds only one result it should display that particular document directly otherwise it should list out all the document names and few parameters in a table. And when the user clicks on one of the records,it should display that document.
I have written a Java Servlet which gets the document and displays it on the browser.
Code fragment:
1.jsp:
<% if (noofhits == 1) %>
<jsp:forward page="/dispImageServlet"></jsp:forward>
<% else if(noofhits>1) %>
<table>
<a href="/dispImageServlet?getDoc=<%=b%> target="_blank"><tr>
<% for (int c = 0; c < colSize; c++) {%>
<td><%out.print(strResult[c]);%></td>
<% }%>
</tr>
</table>
Now my question is:
When I run with having noofhits>1, it is going to "page cannot be found" error page and at the console I get the following message:
9/28/04 13:20:44:402 EDT] 5180cf8c OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /dispImageServlet has not been defined
< jsp:forward> works fine where as <a href> doesn't. It says "broken link"
But both of them are in the same file one in if and the other in else. I didn't find the reason why it is not finding the path.
I am using WSAD.
Please help me out.
Thanks
</a>