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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:54:40+00:00 2026-05-16T18:54:40+00:00

JSP CODE: Upload File: <input name=file type=file id=file><br><br> <input type=submit name=Submit value=Submit/><br><br> <input type=reset

  • 0

JSP CODE:

Upload File:
<input name="file" type="file" id="file"><br><br>
<input type="submit" name="Submit" value="Submit"/><br><br>
<input type="reset" name="Reset" value="Reset"/>   
</form>

I have the above JSP file which will be executed with the help of Tomcat server and this is
stored in the following location of my system.

C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\CheckURL

I have written a servlet program for catching the request and sending the reponse from the given JSP file.

My query here is, in which path the servlet program must be stored in my system.

And please let me know whether a servlet program can be compiled using javac NewServlet.java or it can be executed directly during runtime. Because on compiling that servelet program I get a lot of errors.

Am a beginner in java. If u can give me a detailed outlook on the above issue, it would be of great use. Thanks in advance.

  • 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-16T18:54:41+00:00Added an answer on May 16, 2026 at 6:54 pm

    The servlet tutorial is a good place to start.

    A few points to answer your particular questions:

    • you can compile a servlet with javac NewServlet.java but you have to specify classpath (-cp) that contains the servlet-api.jar
    • you store the .class file in webapps\checkURL\WEB-INF\classes
    • you map the servlet in WEB-INF\web.xml using <servlet> and <servlet-mapping>. (there is a easier way with Tomcat 7 and Servlets 3, but you are on 5.5)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: index.jsp: <form name=f action=db/ajoutConducteur.jsp method=post> <input type=text pattern=\d{8} required
I have the following JSP code: <c:forEach items=${requestScope.XX} var=x> <tr> <td><input type=radio value=${x.xID} name=x></td>
I wrote a HTML code to upload a file in jsp.now i have to
I have created a JSP code where we can upload a .csv file. The
I have written some code in JSP to download .docx files which is hosted
I have a jsp code like this <html:option value=${apealstaList.appealStatusMasterId} disabled=true>${apealstaList.appealStatusDescription}</html:option> This disable the options
I'm having this jsp page. <form method=post action=addBook.do?reqCode=submit enctype=multipart/form-data> <input type=file name=myfile /> </form>
I am using JSP form to upload and Servlet to store a large-sized file
I have jsp code as: onclick=showURL('${result.url}') ${result.url} is dynamic value. When an apostrophe comes
I have this JSP code snippet: <%@ taglib uri=http://java.sun.com/jsp/jstl/core prefix=c%> <c:choose> <c:when test=${var1.properties[\Item Type\]

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.