• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Virtual Host/WebGroup Not Found

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Bubly Karri
"-
Welcome to the JavaRanch! Even though you already have over 20 posts. Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic