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


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.


What is servlet mapping?

A Servlet Mapping is a directive in the web.xml that tells the Servlet Container which class to use when a particular Servlet is called. A Servlet is a class within your Java Web Application. Let's say you have a servlet called MyServlet in the com.example.servlet package. You would need to have a Servlet Mapping pointing the path "/MyServlet" to the "com.example.servlet.MyServlet" class. Without the servlet mapping, you would not be able to invoke your servlet because the Servlet container would not know where it is. JSPs are different - they do not need mappings like this. JSPs exist within the WebRoot of the application, so they are always available. Servlets exist in the WEB-INF\Classes directory once your application is deployed.


What is the difference 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.AnswerJSP has Implicit objects and Servlets do not. AnswerJSP and Servlet both define the server end functionality to provide dynamic outputs ,As we know our HTML is only the client end technology version which runs on client browser. JSP and Servlet differ each other in terms of represntation and execution cycle. Servlet are full functional java codes that define the output like write to stream files in protocol defined ways, JSP on the other hand is Role Sepated format to do so where a ordinary web designer designes how will be the presentation of the data and Programmer defines the functinality to provide the underlying things represented in conditional and non conditinal ways , But here is the magic of JSp that merges the both HTML represntation mixed with JAVA scriptlets. Look at http://www.jsptube.com/jsp-tutorials/jsp-introduction.html, it explains how does JSP differs from 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


Which link do you use from PhotoBucket to put an Image on your profile?

To add an image to your profile, just copy and paste the Direct Link onto it. The system will then change it into HTML code, for it to display properly. There is no need to use HTML or BBCode.