Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5941217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:04:44+00:00 2026-05-22T16:04:44+00:00

System: Mac OSX I have set up nutch so that it crawls and indexes

  • 0

System: Mac OSX

I have set up nutch so that it crawls and indexes my site. It also returns search results. My problem is that I want to customise the Nutch index.jsp and search.jsp pages to fit with my site. Ive read up and on jsp and it says its just a matter of putting in the html tags and then using <% %> to enclose the Java scriplets you want. For some reason nothing changes when i edit the files (index and search)

Here is what the original file displays:

<%@ page
  session="false"
  import="java.io.*"
  import="java.util.*"
%><%
  String language =
    ResourceBundle.getBundle("org.nutch.jsp.search", request.getLocale())
    .getLocale().getLanguage();
  String requestURI = HttpUtils.getRequestURL(request).toString();
  String base = requestURI.substring(0, requestURI.lastIndexOf('/'));
  response.sendRedirect(language + "/");
%>

Here is my edited version with sum gibberish test added to test it:

<html>
<head>
</head>
<body>

gigigyigig


<%@ page
  session="false"
  import="java.io.*"
  import="java.util.*"
%><%
  String language =
    ResourceBundle.getBundle("org.nutch.jsp.search", request.getLocale())
    .getLocale().getLanguage();
  String requestURI = HttpUtils.getRequestURL(request).toString();
  String base = requestURI.substring(0, requestURI.lastIndexOf('/'));
  response.sendRedirect(language + "/");
%>

ghjgjkbkhb
hjgjvjhvj

</body>
</html>

Nothing has changed tho and the nutch homepage/index.jsp still displays the same as original. This is my first encounter with JSP so its just what ive picked up so far. Can anyone tell me why the page isnt displaying the html with gibberish typed??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:04:45+00:00Added an answer on May 22, 2026 at 4:04 pm

    I have my search totaly modified. However I have my <html>... tags after the second scriptlet ie <% %> not <%@ page.
    As for your index.jsp modified it has a redirection response.sendRedirect and therefore it looks normal to me that you see nothing.
    Also I presume you took care of loading the jsp pages at the right place under the tomcat/webapps tree, because the standard ant make file doesn’t. So I ended up adding some Ant task to patch my test website.
    Beware if you are going to change the .jar files you also need to restart Tomcat.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

System info: Python 2.7.2 MAC OSX 10.7.2 Problem (+background): I have a large '.csv'
Hey guys. Working on Mac OSX 10.6, My problem is that I would like
I'm building a utility application that synchronizes files across two systems for Mac OSX.
First I have install Mac 10.6.3 on my system now I want to install
I have Maven 2.2.0, JDK 6 on Mac OS X 10.6 with the system
Macports is the only packaging system I have checked out on the Mac and
Here's my problem. I have OSX Lion and I do Web development, BUT I
In Mac OSX lion, I'm trying to set default application for specific file types.
I have a legacy app (minimally ported from Mac System 7 to Carbon to
I have written an application in Java for both Mac OSx and Windows, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.