answersLogoWhite

0

<img src="image Path">

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Basic Math

How do you give connection between HTML and java servlet?

You cannot. HTML is a static file and it cannot interact with a Java Servlet. A Servlet can always redirect to a HTML page but the other way round cannot happen.


What is doPost in servlet?

doPost() is the method in the servlet that is used to service the Http requests submitted using the Post option. HTML forms can be submitted in two ways using the Get method and the Post method. You can specify the method while declaring the form itself. So you will have two methods in the servlet doGet() and doPost() each for one of them


How does servlet work?

A servlet is a Java program that runs on a web server and extends its capabilities to handle requests and responses. When a client sends a request, the server routes it to the appropriate servlet, which processes the request using methods like doGet() or doPost(). The servlet then generates a response, often in the form of HTML or JSON, and sends it back to the client. This process allows for dynamic web content generation based on user interactions.


When jsp executed which is sent to client?

When a JSP (JavaServer Pages) is executed, it is transformed into a servlet by the server. The servlet processes requests, generates HTML or other content, and sends the resulting output to the client. The client receives this output as a response, which can be rendered in a web browser. Therefore, the final output sent to the client is typically HTML, along with any dynamic content generated by the JSP.


What is different between jsp and servlets?

A JSP is typically oriented more towards displaying information, and a servlet is more oriented towards processing information. For example, a JSP might display a report, while a servlet would process a user submitted form. These uses are not exclusive, but they are optimized more for performing tasks in this manner. It is much easier to incorporate HTML coding into a JSP than a Servlet. It is also easier to write more complex Java code in a servlet.

Related Questions

How do you give connection between HTML and java servlet?

You cannot. HTML is a static file and it cannot interact with a Java Servlet. A Servlet can always redirect to a HTML page but the other way round cannot happen.


How the pass value from the HTML pages to the servlet?

You need a form to pass value to a servlet. In the form tag, the action element passes the value into the servlet.


How do you upload an image in HTML code?

First add image (.jpg, .png, .gif) into 'images' folder in main root of the site. In HTML code add &lt;img alt="word or phrase describing image" height="162" src="path where image is coming from images/img.gif" width="917" /&gt;


What is the term for a picture or graphic that contains a link?

In HTML speaking it is called mapped image, you have image mapped that have link. The HTML tag for this is : &lt;map name="..."&gt;&lt;/map&gt; and to apply it on a image you add the attribute usemap="#mapName"


How do you get the image file from the database with JSP?

You can retrieve an image file from a database in JSP by writing a servlet that fetches the image from the database and streams it to the JSP page. The servlet will set the content type to &quot;image/jpeg&quot; or the appropriate image format and write the image data to the response output stream. In the JSP page, you can then display the image by setting the source attribute of the img tag to the servlet URL.


How do you insert image using aspnet?

You can add an image object using the asp:Image tag, or just use the html img tag.


How do you write in the right side of the image in HTML?

Add float:left; to the style element of the image. All following text will flow around the image on the right side.


How do you attach the stylesheet with the servlet?

You cannot attach a stylesheet with a servlet. Stylesheets are related to HTML and User Interface layer and hence can be attached to JSP pages.


How can you sava image file when you want to add it with HTML document?

i read ---------- story about one-eyed giants


How do you make glitter graphics in HTML?

You can't reli create them in HTML, javascript would be a push but I think was you are looking for is the img tag of HTML therefore: You can create gilter graphics with a genertor customise you image then save and add an image tag in your HTML page. (added a link under related links)


Which tag is been used to add image using HTML?

Adding an image in you site is done by the syntax below:put this code between the body tags


How will you pass values from HTML page to the servlet?

we are passing values from the HTML to the Servlet by using HTML controls. ex:name,password.......... In servlets we have one method for getting the values from HTML is getParameter() example: String s1=req.getParameter("T1"); String s2=req.getParameter("T2"); in above example T1,T2 are the names of the HTML controls, String is a class and req is the object of the HttpServlet.