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

  • Home
  • SEARCH
  • 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 7027289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:13:41+00:00 2026-05-28T00:13:41+00:00

<HTML> <BODY> Hello! The time is now <%= new java.util.Date() %> </BODY> </HTML> I

  • 0
<HTML>
<BODY>
Hello!  The time is now <%= new java.util.Date() %>
</BODY>
</HTML>

I tried to open this trivial jsp file with firefox, but the expression wouldn’t evaluate. I have Java installed.

I’m new to JSP. Should I put the jsp in some specific directory? Or do I forget to include anything in the jsp file?

  • 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-28T00:13:41+00:00Added an answer on May 28, 2026 at 12:13 am

    It sounds like that you aren’t using a JSP/Servlet container at all but instead just opened the file straight from local disk file system by a file:// URL. This is indeed not going to work. You need to install a JSP/Servlet container. This is basically a HTTP web server which has the JSP compiler builtin and supports serving JSP/Servlets. A well known example is Apache Tomcat. Just download the zip under “Core” section (no, not the “Windows zip”, really just “zip”) and extract it on your disk. Then perform the following steps:

    1. Create a new subfolder in /webapps folder of Tomcat.
    2. Put the JSP file in that folder.
    3. Start Tomcat by the /bin/startup.bat (Windows) or /bin/startup.sh (Unix) script.
    4. Go in your browser to http://localhost:8080/foldername/yourfile.jsp where “foldername” is the name of the folder you created in step 1 and “yourfile.jsp” is the filename of the JSP you placed in step 2.

    See also:

    • Our JSP wiki page
    • Coreservlets.com JSP/Servlet tutorials
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<HTML> <BODY> <% // This scriptlet declares and initializes date System.out.println( Evaluating date now
I want to do something really simple like this: JPanel htmlPanel = new HtmlPanel(<html><body><h1>hello
<HTML> <BODY> <% // This is a scriptlet. Notice that the date // variable
$('a').click(function(event){ $('body').html('loading...'); $.post('www.sitename.com/hello',{site:http//:www.google.com},function(data) { alert(data); }); event.preventDefault(); }); I am using the above script
Here is my code <html> <body> <?php echo <b>Hello World</b> <br />; ?> </body>
How do i add a new line characters to html body of mail composer?
$(this).parent().parent() .children(this.attr(tagName).toLowerCase()) .css(background-color, yellow); xpath: /html/body/div/table/tr/td/b/a $(this).tagName is Anchor <a> the problem with this
Given a HTML file with the structure html -> body -> a bunch of
I tried the following: $.load(Views/chatBox.html).appendTo('body') Console Output: TypeError: $.load is not a function EDIT
So i got this snippet of code: $(document).ready(function () { var replacementDoneIn = $(body).html();

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.