How to use servlets and JSP for my homepage?

servlets and JSP are server-side program. If my homepage is on some web-hosting websites, can I upload the servlets and JSP to run it? if possible, where can I find such a web-hosting place?
sraiper

Not many hosts offer JSP or Servlet support (and some do but then stop and never give you a refund, grrrrrrr!!!!).
Also, ones that do support it can often be more expensive. There are some free ones but all the one's I've come across have problems that made them unsuitable for my needs.
Here is a list of hosts that support Java:
http://www.thejspbook.com/resources/category.jsp?id=1005&name=JSP+web+hosting
I can't comment on any from that list, however I use http://www.positive-internet.com they are a bit pricey but they have excellent support and are always happy to help with any Tomcat (the JSP/Servlet server they use)configuration issues or needs that you may have.

Similar Messages

  • How to combine servlet and jsp

    I'm doing a project. My friend using jsp. and i using servlet..
    we are confused, how to combine servlet and jsp. or we can just use redirect??
    but it's still doesn't work properly...thanks for your helpp

    You can use RequestDispatcher interface for calling a JSP from a Servlet, or vice-versa.
    Following is the code for sending output to a JSP page from a servlet:
    javax.servlet.RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(�/Ashu.jsp�);
    request.setAttribute(�Name�,�Ashutosh�);
    dispatcher.forward(request,response);
    - Ashutosh

  • When to use servlets and jsp in an application like  shoping cart?

    Hi All
    I m going to design and implement a web application using servelts and jsp. I am still at its requirements analyze stage.
    The application is almost likely a shopping cart. So if any of you have the deep knowledge about this domain with servlets and jsp please help me for a good design. What I realy need to know is that
    1. what are the core requirements for a shoping cart ?
    2. use cases ?
    3. best way to follow mvc with servlets and jsp for it?
    you can answer to this at the abstract level. no need to go in detail.
    if you have any documents like design and use cases mail me to [email protected]
    your cooperation is highly appreciated in this regards.

    Look into this kid
    http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Session-Tracking.htm

  • How to use taglibs in JSP for Database access

    Hi
    Could any one please tell me how to use taglibs in JSP for Database access
    with regrds
    Jojo

    This is a sample how to connect to a MySQL database with JSTL 1.0:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>JSTL MySQL</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <c:catch var="e">
    <sql:setDataSource var="datasource" url="jdbc:mysql://Your_Server_Name_Here/You_Schema_Here"
                           user="Your_Username_Here" password="Your_Password_Here"
                           driver="com.mysql.jdbc.Driver"/>
    <c:out value="datasource= ${datasource},  Class = ${driver.class}"/>
    <br />
    <br />
    <sql:query var="deejays" dataSource="${datasource}">SELECT * FROM Your_Table_Name_Here</sql:query>
    <table>
    <%-- Get the column names for the header of the table --%>
    <c:forEach var="columnName" items="${deejays.columnNames}"><th><c:out value="${columnName}"/></th></c:forEach>
    <tbody>
    <%-- Get the value of each column while iterating over rows --%>
    <c:forEach var="row" items="${deejays.rows}">
      <tr><c:forEach var="column" items="${row}">
            <td><c:out value="${column.value}"/></td>
          </c:forEach>
      </tr>
    </c:forEach>
    </tbody>
    </table>
    </c:catch>
    <br />
    <br />
    <c:if test="${e!=null}"><span class="error">Error</span>�
      <c:out value="${e}" />
    </c:if>
    </body>
    </html>And this thread might help you:
    http://forum.java.sun.com/thread.jspa?threadID=639471&tstart=44

  • URGENT.........File Upload using Servlets and jsp

    I am a new servlet programmer.......
    iam using tomcat server......
    can any one pls help in writing code for file upload using servlets and jsp without using multipart class or any other class like that....
    Please URGENT..

    Slow down! "Urgent" is from your perspective alone. I, myself, am not troubled or worried in the least.
    hi ugniss
    thanks for ur reply....sorry i was not
    y i was not asked not to use multipart class or any
    other class like that...is there any other
    possibility to do file uploading from jsp to
    servlet...
    Just as an aside, a JSP is a Servlet. But even if I move beyond that, the question does not make sense. If you want a "JSP to upload to a Servlet", then simply do so in memory. You are still (likely) within the same scope of a given request. However, if instead you are referring to a JSP that is displayed on a browser, then really you are talking about HTML, which is what the browser will receive. And since you are now talking about a browser, your only real, viable option is a multi-part file upload. So, it is either server or it is browser. And either way, the question leads to very established options, as outlined above.
    the main concept is.. in the browser the user selects
    a particular file and clicks the button upload..after
    clicking upload the jsp should sent the file to the
    servlet in streams...there the servlet gets in and
    saves in a server location........this is wat i hav
    to do...
    Okay. So, after reading my previous (redundant) paragraph, we have arrived at the crux of the issue. You have a JSP that will be output as HTML to a client (browser) which you want to upload content to your server (handled by a Servlet). So, you are now stuck again with multi-part. The requirement to not use multi-part is non-sensical. You can overcome it, say, if you write your own applet or standalone Swing client. However, if your users are invoking this functionality from a browser, you are limited by the options that W3C has provided you. Use multi-part.
    is there aby possibilty to do this.....can any one
    pls help....Take the advice to download and review Jakarta Commons FileUpload. Inform your management that their requirement makes no technical sense. Research on your own. There are dozens of examples (and tutorials) on file upload using multi-part. Embrace it. Live it. Love it.
    - Saish

  • User Authentication using Servlet and JSp

    Hi,
    I am developing a web app where i need to implement user Authentication to allow members to view and upload files on a certain directory say /data
    For this i am using a servlet as a controller which then forwads request to other jsps/servlets based on user response. I tried using servlet mapping in web.xml so that all browser requests would be directed to controller servlet and would branch from there on. However the problem all RequestDispatcher.forward() requests redirected to the servlet putting it in a loop.
    Is there another way to achieve this. (Apart from using form-based Basic Authentication).
    I am using Resin 1.2.8 servlet/jsp container.
    Any response as soon as possible would be appreciated.
    Thanks,
    Kushagra

    RequestDispatcher.forward() cause the HTTP request to be sent through the request processing flow as if the original request for the resource being forwarded to.
    It seems the servlet mapping you are talking about in web.xml should be made more specific. i.e. the mapping should be such that only your so called controller servlet will match up.
    You might want to specify the mapping for the controller servlet to be noticeably/effectively different from the mapping for other servlets and JSPs.

  • Download local file using Servlet and JSP

    Hello,
    I will like to use a browser to download file on local system using serlvet and Jsp technology. Does anyone have any idea how to do it?
    Any comment will be appreciate.
    Thanks

    Well you can just put the file in a folder that is accessible to the web server. Then have a link point to that file. That will cause the web browser to download the file.
    hattan

  • File download using servlet and jsp. File Dialog comes twice

    Hi
    I was trying to download a file using servlet. There is a link which calls the servlet. When I click on the link file dialog box comes up. On selecting Open it again shows me the file dialog box. I changed the method from POST to GET and it worked properly.
    My question is why does it work with GET and not with POST. I am aware of the differences between POST and GET but am not able to come to a rational explanation for this behaviour.
    Please if anyone can explain this to me I am going crazy thinking an answer for this.
    Thank you.
    Regards
    Jay

    Hi Jay,
    I also have the same question. Why does it work with GET and not for POST?. If you were able to find the answer please let me know.
    Thank you.
    Regards,
    Aravind

  • How to install servlet and jsp on win xp?

    I am new in jsp and servlets. I would like to follow some jsp books and examples. The j2eesdk-1_4-dr-windows-eval.exe is already installed on my computer. I can write and run java codes. I downloaded the jsp-2_1-edr-api.zip file from http://java.sun.com. I extracted and moved to dir:\Sun\AppServer\ folder. When I search, I cannot see any jsp.jar file as some documents say, nor servlet.jar. How can I install jsp and servlet on windows xp? Any help? I will be very grateful.

    For starters, you would probably have better luck getting an answer on the general Java forums, since this a very general question- it is hard to see how this is specific to the Web Application Framework technology, except of course that it uses JSP and servlets naturally,
    But to try to help you here, more information is needed: from exactly where are you do\wnloading the file jsp-2_1-edr-api.zip and what is the product title of this file? I ask this since a general search of sun.com returns no evidence of the existence of this file.
    Also, what documents are being referred to here?
    Thanks

  • How to run servlet and jsp in Eclipse

    i am trying to run a jsp and servlet file in Eclipse its showing error in editor its self.

    yep, eclipse can do that. I've never done it, but
    Tomcat needs to have remote debugging enabled, which
    means you need to use the tomcat that WASN'T
    installed by an installer. don't ask me why, ask the
    boys at Jakarta! eclipse attaches itself to the
    debugger in some way or other. I dunno. there's a
    book called Eclipse Distilled that only costs about
    ?10 or so and has a chapter on doing exactly this, if
    you're using Eclipse for fairly advanced stuff like
    this, I'd invest in a copy of that. well worth the
    moneyTry [url http://www.eclipse.org/webtools/]WTP&#9733; plugin (Web Tools Platform). I am using this plugin, and as far as I know it is free. You just have to install Tomcat normally, and configure WTP plugin to pointing that Tomcat. You can run, debug, do everything you want.

  • HOW to use InputMap and ActionMap for a JButton ?

    Hi,
    I used to call the registredKeyBoardAction to deal with JButton keyBoard actions.
    It is written in the JavaDoc that this method is deprecated, so I try to use the InputMap and ActionMap as described in this doc without success.
    Does anybody has a piece of code that uses
    jButton.getInputMap().put(aKeyStroke, aCommand);
    jButton.getActionMap().put(aCommmand, anAction);
    for the space keyboard key, calling the "foo" actionCommand ?
    Thanks.

    To be more clear, from the API it seems as if you can set an Action for a keystroke. That is only for the component that you set the keystroke for. So if you set it for a button then it would seem that if it does automatically listen for keystrokes it would only do so when that button has focus. try setting the ActionMap for the window.

  • How to use Find and Replace for CR or TAB

    How can I use PAGES 'Find and Replace' function to eliminate unwanted carriage returns or Tabs?
    I tried to copy the backwards P and paste into Pages find window, but that doesn't work.
    eMac   Mac OS X (10.4.4)   1 G RAM

    Copying & pasting should work, but it isn't necessary. In the Find & Replace fields hold down the Option key & hit the return or tab key.
    Peggy

  • How to use getCustomizing and setCustoming for charts?

    Hi. Experts!
    Can you give examples for using setCustomizing method for charts?
    And i'm have problem with multi-byte language in the chart caption.
    It's shown normally in the desinger, but not after deploying.
    If i'm open component source (chart node) (don't remember file extension)
    i'm see what problem occured here
    <?xml ..... utf-8>
    <! CDATA .........<?xml ......utf-8>
    <chart......>
    <Elements>
    <Title>
    <Caption>Chart Caption here</Caption
    </Title>
    P.S. NWDS 7.0.15

    Up...

  • JDBC installation for servlets and jsp

    Hello All,
    I am trying to use JDBC for my web application. i have a book but not very detailed and cannot find a good search on google.
    they have said that the ODBC-JDBC bridge driver comes with jdk1.2 or forward. and ask me to set up an ODBC data source. so i went in control panel/systems tab and then try to add SQL and then when click finish it asks me how to connect to sql server, i entered my usename and password but says connection failed.
    This is my worst nightmare. please help so i can start building web application using servlets and jsp.

    Let me tell you right now, you have BORING nightmares.

  • Creating FOrums with Servlet and JSP

    Hi everyone,
    Is there a good resource that explains how to build a forum using servlets and JSP technology?
    Regards,
    Basil Mahdi

    please let me know here if you find any useful resources...I am in the process of writing my own searchable threaded forum for my company with JSP's/servlets. It's a very slow process at the moment though...if I ever finish it, I'll gladly share it.

Maybe you are looking for

  • Component Initialisation in web dynpro java

    Hi all, Iam new to web dynpro java.I am using two web dynpro component suppose A and B . Iam declaring the usage of B in A so that i can embedd one of the view in Component B.  I want to use the context in Component B in Component A . which component

  • ALE Distribution model view

    Hello I am setting up an ALE scenario to send idocs from system A to system B. I have a problem with the distribution model view. The model has been distributed to the receiving system with the wrong basic idoc type entered in the partner profile. I

  • How to save an recorded sound???

    Hi....am a newbie... I have created an application in J2ME that records sound and plays it back.Have tried in real mobile.Its working fine. I want to save that recorded sound somewhere in the mobiles drive so that i can hear it later. Please help and

  • I might have really wrecked my iPhoto - Help!

    Hi, I was trying to manually install the iphoto keyword assistant, and got my folder structure confused. I replaced the info.plist, macOS, and resources files/folders in the root 'Contents' folder after showing the package iPhoto app. I know this is

  • 1172: Definition fl:transitions could not be found.

    Trying to run this simple script and getting errors. The one mentioned above as well as this: 5001: The name of package 'fl.transitions.easing' does not reflect the location of this file. Please change the package definition's name inside this file,