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 6758359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:46:37+00:00 2026-05-26T13:46:37+00:00

Here is my servlet code: PrintWriter out = null; try { out = response.getWriter();

  • 0

Here is my servlet code:

PrintWriter out = null;
try
{
 out = response.getWriter();
 out.println("<html>");
 out.println("<head>");
 out.println("<title>Servlet EmpresaVuelos</title>");
     out.println("<link rel='stylesheet' type='text/css' href='http://localhost:8080/Web_Modulo_1/recursos/estiloPrincipal.css' />");
     out.println("<link rel='stylesheet' type='text/css' href='http://localhost:8080/Web_Modulo_1/recursos/ext-all.css' />");
     out.println("<script type='text/javascript' src='http://localhost:8080/Web_Modulo_1/recursos/ext-base.<acronym title="JavaScript">js</acronym>'/>");
     out.println("<script type='text/javascript' src='http://localhost:8080/Web_Modulo_1/recursos/ext-all-debug.<acronym title="JavaScript">js</acronym>' />");            
     out.println("<script type='text/javascript' src='http://localhost:8080/Web_Modulo_1/recursos/prueba.<acronym title="JavaScript">js</acronym>'/>");                                                   
 out.println("</head>");
 out.println("<body>");
     out.println("<img src='http://localhost:8080/Web_Modulo_1/recursos/4.jpg' ></img>");
     out.println("<div class='bordeado' style='width:100px;height:100px;' />");
 out.println("</body>");
 out.println("</html>");           
}
catch(IOException io)
{

}

I would like to know what I get a blank page? When I remove all the link and script tags, the image in the body is rendered.

  • 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-26T13:46:38+00:00Added an answer on May 26, 2026 at 1:46 pm

    Try removing scripts / css one by one, there must be some problem there that messes up the presentation of the HTML elements.

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

Sidebar

Related Questions

Can you help me translate a Servlet to JSP here's the code: package Inventory;
I have the following JSP File and Servlet file <html> <head> <meta http-equiv=Content-Type content=text/html;
Here is my code import java.io.*; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.*; import java.sql.*;
I am trying to use a RequestDispatcher to send parameters from a servlet. Here
I want to use java.util.ConcurrentLinkedQueue as a non-durable queue for a Servlet. Here's the
Here is my code, which takes two version identifiers in the form 1, 5,
I have a servlet that construct response to a media file request by reading
i have the following html code : <FORM name=frmmail> <input id=dochtmlContent type=hidden name=dochtmlContent value=oldValue/>
C++ noob here wonding how i can authenticate a Windows User via Java servlet.
A servlet response wrapper is being used in a Servlet Filter. The idea is

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.