Any tips on jsp 1.2, servlets 2.3, db-supported hosting?

Hi,
i've been considering running the server from home, but it boils down to
$20+ phone
$40+ DSL
$60+/month.
At the same time, i hear that w/o DSL my IP address will be changing on each login, so running the server will be kinda ridiculous.
I'd appreciate any tips on more affordable hosting either from home, or via a hosting co. If the former, I'd prefer a DB that supports FOREIGN KEYs. And of course EJB support would be nice. DNS support would be nice too.
I did a search, but still would appreciate any comments. Thanks.

i forgot to mention also:
the local carrier here charges additional $10+ for business DSL to make IP static, and says residential DSL has dynamic IP.
So, that's $70+/month.

Similar Messages

  • Urgent....How can i redirect to my jsp page from servlet in init() method..

    How can i redirect to my jsp page from servlet in init() method..Becoz that servlet is calling while server startsup..so im writing some piece of code in init() method..after that i want to redirect to some jsp page ...is it possible?
    using RequestDispatcher..its not possible..becoz
    RequestDispatcher rd = sc.getRequestDispatcher("goto.jsp");
    rd.foward(req,res);
    Here the request and response are null objects..
    So mi question can frame as how can i get request/response in servlet's init method()..

    Hi guys
    did any one get a solution for this issue. calling a jsp in the startup of the servlet, i mean in the startup servlet. I do have a same req like i need to call a JSP which does some data reterival and calculations and i am putting the results in the cache. so in the jsp there in no output of HTML. when i use the URLConnection i am getting a error as below.
    java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:707)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:705)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:612)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:519)
    at com.toysrus.fns.alphablox.Startup.callJSP(Unknown Source)
    at com.toysrus.fns.alphablox.Startup.init(Unknown Source)
    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
    so plz do let me know how to call a jsp in the start up of a servlet.
    Thanks
    Vidya

  • Any help appreciated jsp...

    hi
    ive got a problem regarding jsp.... for starters i cant even view the jsp examples on the tomcat index page....
    the servlet examples run fine and i can create my own servlets as well..
    but when i try to create my own simple jsp page or run the examples i get the following error...
    "......The server encountered an internal error () that prevented it from fulfilling this request.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null....blah blah ..."
    ive got a feeling this is a set up related error ... im running xp
    with j2sdk1.4.2 and tomcat 4.1
    any help would be appreciated as i have to get jsp up and running pretty soon .....
    thanks
    mark

    Hi cram81,
    It sounds strange that jsp examples are not working from a default install. I can only guess that your classpath is setup wrong.
    Another possibility is that the .jar files in CATALINA_HOME/common/lib are not the correct ones for compiling the jsp files.
    Tomcat will always look in the above folder when attempting to compile jsp files.
    Servlet examples work because they are precompiled, where-as the server always compiles jsp's at runtime if it's the first time that you are running that jsp or a change has been made to it.
    Usually the jsp examples fail to compile because of a classpath error.
    Check it out and let me know how you get on.

  • Generating the JSP from the Servlet source file

    Hi,
    Does anyone out there know if there is any utility/class/program which will generate a JSP from the Servlet Source file (.java file) or indeed from the compiled Servlet file (.class file)
    If its possible to decompile a .class file into a .java file, surely it must be possible to convert the .java souce file into the .jsp file that created it.
    any comments would be appreciated
    Richard

    I am the author of the original JSP!
    But I want to run a script on the generated Servlet source file,
    changing its contents, and then generate the JSP that would have created the new Servlet source file.
    but I need to know if theres anything that will reverse engineer a Servlet source into the generating JSP.
    its a kind of of Jeopardy type thing!

  • JSP, Bean, or Servlet?

    I've found that alot of the time, the systems I'm trying to design can use all of these to accomplish the same task. What's a good indicator of whether or not I should be using one technology over another?
    For example, most recently, I designed an html form that is used to create registration html forms for clients. I can send the data in my form to another jsp page, a servlet, or a bean. ALL THREE can accept the date and use BufferedWriter to create and write to the registration form. Why would I want to use one over the other?
    Any help here would be greatly appreciated. I am seriously lacking in proper system design knowledge.

    If you want to use the data all through the user session, posting data to a JSP or a Servlet may require either URL rewriting or using hidden elements to preserve the state.
    Its a better idea to store the data in a ValueObject (a simple java bean with get and set for all the properties).
    You may want to refer to J2EE Patterns to find out more about the patterns you can use to design good server side application.

  • Is there any PHP print_r($_REQUEST) equivalent in Servlet??

    Hi friends,
    Is there any PHP print_r($_REQUEST) equivalent in Servlet??

    The system.out calls will print to the server logs, just read them. It's somewhere in a straightforward named folder in the appserver root folder, like /logs. I thought it were for debugging purposes.
    At least, Servlets are not meant to output HTML. Use JSP for that. It's a view technology providing a template for HTML.
    Replace your servlet's code by:public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException {
        // Do some preprocessing logic here?
        // Forward request to page.jsp.
        request.getRequestDispatcher("page.jsp").forward(request, response);
    }and create a `page.jsp` which look like this:<!doctype html>
    <html lang="en">
        <head>
            <title>Show post key-value</title>
            <style>
                body { background: #fdf5e6; }
                h1 { text-align: center; }
            </style>
        </head>
        <body>
            <h1>Show post key-value</h1>
            <ul>
                <li><strong>param1</strong>: ${param.param1}</li>
                <li><strong>param2</strong>: ${param.param2}</li>
                <li><strong>param3</strong>: ${param.param3}</li>
            </ul>
        </body>
    </html>Or if you don't know the parameter names beforehand, then make use of [JSTL's c:forEach|http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/forEach.html] (to install JSTL, just drop [jstl-1.2.jar|http://download.java.net/maven/1/jstl/jars/jstl-1.2.jar] in /WEB-INF/lib):<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <!doctype html>
    <html lang="en">
        <head>
            <title>Show post key-value</title>
            <style>
                body { background: #fdf5e6; }
                h1 { text-align: center; }
            </style>
        </head>
        <body>
            <h1>Show post key-value</h1>
            <ul>
                <c:forEach items="${param}" var="p">
                    <li><strong>${p.key}</strong>: ${p.value}</li>
                </c:forEach>
            </ul>
        </body>
    </html>That said, please throw away the ancient HTML/CSS/JSP/Servlet tutorials/books you're reading and go get a more recent one. The coding practices you're showing off are discouraged over a decade.

  • Why we should use JSP instead of Servlet ?

    I want to know what are the advantages to use JSP over Servlet.

    hi
    Servlets are server exctension ( like CGI ) separate executable
    modules to serve any request efficiently.
    Servlets are pure java classes, u can use them the write an html code to browser.
    u have to compile the servlet before u use it.
    JSP page, is a text-base document , u can type html inside it , and u can use java as scripting language, so it is more easy to use jsp rather than servlet as each jsp page is translated into a servlet by JSP engine.
    Hope this will help
    Good luck
    Mohammed

  • R separate personalization classes reqd 4  jsps managed by servlet portlet?

    My portlet is a servlet which manages multiple jsps. This servlet manages the session data as well as navigation between the pages. At the moment, I have separate personalization classes for each of the jsps. Each personalization class extends NameValuePersonalizationObject. The content on each of the jsps has to be managed within the portal.
    Do I need to have separate personalization classses or is it better to have one personalization class for all the jsps within my portlet ?
    Any help would be great, Thanks,
    Tara

    Hi,
    After going through your application scenario, i think you should use just one Personalization Class. A single class would suffice all the four JSPs.
    But, as you might be aware, a Preference Store can only store basic data types like String, boolean etc. Complex Data Types like Properties etc. cannot be stored directly using NameValuePersonalizationObject. If you are storing complex types, then you will have to extend this class & define methods to store & fetch data from this complex object into the Personalization Store.
    You might want to go through the following article which talks about Information Storage using Web Providers.
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/overview.information.storage.html
    If there are any further issues, please get back.
    Regards,
    Abhinav

  • Move jsp code into servlet, not work!!

    Hi:
    I am new in servlet and java, I can use jdom to read xml file
    into a jsp file, but whan I move jsp code into servlet, they are not work
    have any ideals?
    Thank!

    Hi:
    my.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.io.File,
    java.util.*,
    org.jdom.*,
    org.jdom.input.SAXBuilder,
    org.jdom.output.*" %>
    <%
    String Records = "c:/XMl/Quotes.xml";
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    Document l_doc = builder.build(new File(Records));
    my servlet
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.jdom.*;
    import org.jdom.input.*;
    import org.jdom.input.SAXBuilder;
    import org.jdom.output.*;
    public class XmlJdom extends HttpServlet
    String Records = "c:/xml/Quotes.xml";
    SAXBuilder builder = null;
    Element Author = null;
    Element Text = null;
    Element Date = null;
    * Initializes the servlet.
    public void init(ServletConfig config) throws ServletException
    super.init(config); //pass ServletConfig to parent
    try
    // JDOM can build JDOM trees from a variety of input sources. One
    // of those input sources is a SAX parser.
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    catch ( org.jdom.JDOMEXception e)
    public void doGet(
    HttpServletRequest request,
    HttpServletResponse response)
         throws IOException, ServletException
         PrintWriter out = null;
         out = response.getWriter();
         try{                
         Document l_doc = builder.build(new File(Records));
    Element root = l_doc.getRootElement();
    //get a list of all recode in my XML document
    String l_pages = root.getChild("quote");
    String Iterator e = l_pages.iterator();
    while ( e.hasNext())
    Element l_quote= (Element) e.next();
         Element l_Author = l_quote.getChild("Date").getChild("Text");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    out.println(ls_result);
    catch( org.jdom.JDOMException e )
         finally
              if( out != null)
                   out.close();
    Please tell me, what is wrong!!!
    Element root = l_doc.getRootElement();
    /* get a list of all the links in our XML document */
    List l_pages = root.getChildren("quote");
    Iterator Myloop = l_pages.iterator();
    while ( Myloop.hasNext())
    Element l_quote= (Element) Myloop.next();
         Element l_Author = l_quote.getChild("Date").getChild("Text");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    ls_result = l_format.outputString(l_doc);
    %>
    <html><head><title></title></head>
         <body>
              <pre>
              <%=ls_result%>
              </pre>
         </body>
    </html>

  • Is there any difference between "jsp:useBean" and "scriptlet" ?

    A few days ago, I asked similar question. But I didn't get the answer I wanted.
    I want to know the differnce between <jsp:useBean../> and <% .. %>(scriptlet).
    I tested in three environments(Oracle Jserv, OC4J, and Apache Tomcat).
    In Oracle Jserv and OC4J, a problem occured. But, Apache Tomcat does not occur a problem.
    For example,
    1) TestClass.java (Bean)
    public class TestClass {
    private String txt;
    public class TestClass {
    txt = "Test"; ----- (g
    public String getTxt() {
    return txt;
    2) test.jsp
    <html><body>
    <% TestClass test = new TestClass(); %> ---(h
    <%= test.getTxt() %>
    </body></html>
    Assume that I visit "http://localhost:8888/test.jsp".
    In Tomcat, if I change "Test"(number(g) to "Test1" and compile the browser shows the change.
    But Oracle Jserv and OC4J does not do that. They also show the old String.
    So, I changed <% TestClass test = new TestClass(); %>(number(h) to <jsp:useBean id="test" class="TestClass" />. That is, I changed "Scriptlet" to "JSP useBean Tag".
    Then, Oracle Jserv and OC4J also show the changes.
    To conclude, is there any difference between "JSP useBean Tag" and "Scriptlet"?
    Can't I use a scriptlet (to make a class) in Oracle Servlet Engine?
    Thanks.

    It could be as simple as the JSP not recompiling between java recompiles - ie, it compiles in the link to the old class.
    Try changing the JSP file (add and delete a space) after you change the java code, and then see what happens.
    Jonny
    null

  • Is jsp runs under servlet container ?

    i heard that jsp converted into servlet and compiled at once when it is requested .jsp engine involving this converting process.
    is this file runs in same servlet container or any other jsp container?
    Thanks and regards,

    gunss wrote:
    i heard that jsp converted into servlet and compiled at once when it is requested .jsp engine involving this converting process.Yes. The JSP is parsed and converted into a .java file, which is then compiled into a .class file. It is a servlet, and it runs in the servlet container.
    is this file runs in same servlet container or any other jsp container?Where else would it run?
    %

  • I have downloaded ios 6 on my iphone 4s and now all incoming calls go straight to VM any tips?

    Hello
    I have just installed IOS 6 on my Iphone 4s and now when I try to call my iphone all the calls go straight to Voice mail.  Any tips or hints?

    same problem, along with many many others already noted here and still not had any help from anyone or any fixes lol (apart from silly obvious things like restore bla bla bla)
    can i have £1000 per missed call please apple?
    im losing money because of it, thanks...

  • Retrieve values from a table of a JSP page in Servlet.

    Hello all,
    I am new in JSP servlet world, I want to create a grid on JSP page using Servlet.
    Suppose i have some records in a JSP page and This JSP page will display these records in a tabular form. And, on a button click that table data should be
    accessible in servlet,
    Now, How can i traverse among all the rows of that table of JSP page in servlet. or How can i retrieve a specific cell record of that table of JSP page in servlet.
    Can anyone please answer this.
    Thank you and regards.

    Hi,
    Create in your HTML form inputs with the same name i.e.:
    <input name="a[]" value="2" >
    <input name="a[]" value="9" >
    In your jsp page use :
    String Values[] = request.getParameterValues("a[]") ;
    This will give you a string array of two elements.
    for (int x = 0; x < Values.length; x++)
        System.out.println(Values[x]) ;
    }Will print :
    2
    9
    Hope this helps.
    Bill Moo

  • Problem with JSP and Java Servlet Web Application....

    Hi every body....
    I av developed a web based application with java (jsp and Java Servlets)....
    that was working fine on Lane and Local Host....
    But when i upload on internet with unix package my servlets and Java Beans are not working .....
    also not access database which i developed on My Sql....
    M using cpanel support on web server
    Plz gave me solution...
    Thanx looking forward Adnan

    You need to elaborate "not working" in developer's perspective instead of in user's perspective.

  • HT4108 I'm trying to connect my iPad to my tv so that I can mirror whatever is on my iPad. I want to stream movies online and watch on the tv. I have the digital av adapter and an hdmi cable but it's not working. Any tips ?

    I'm trying to connect my iPad to my tv so that I can mirror whatever is on my iPad. I want to stream movies online and watch on the tv. I have the digital av adapter and an hdmi cable but it's not working. Any tips ?

    If this is an iPad 1, it won't mirror, but it will still output video from the 30 Pin dock connector.
    If your new TV has a conventional VGA in and stereo inputs you can try this connector.
    http://store.apple.com/us/product/MC748ZM/A/apple-composite-av-cable?fnode=3a
    I used to stream video from both Netflix and YouTube and from my Mac using iTunes sharing through my iPad then with this connector plug into my iPad and TV.
    It won't be high resolution, but it will get you picture from iPad to TV.
    Good Luck.

Maybe you are looking for

  • Can this be done in FCE 4?

    Hello All, I have some of Kodak's new Super 8 film called Vision 2 200T. This is a negative movie film. I have had this transferred onto miniDV by a simple telecine machine (it had no color correction adjustments on it). So I have ended up with the f

  • How to change the name in the "To" field in Mac Mail

    My Mail program along with Address Book often put the names of both spouses in the "To" field of an outgoing message when I want, for example, to send an email to just one of the spouses.  How do I change Mail or Address book so that only one spouse

  • Unknown error occured (-15000) when trying to connect to AppleTV.

    Hi all I used Apple TV 2 to Airplay music files into a hifi system from iTunes (WIndows 7 through a wifi connection). After AppleTV did a software upgrade couple of months ago Airplay stopped working and I get "an uknown error occured (-15000)" after

  • Pattern b/w Remote interface & Container implementation  class

    Which pattern is followed by EJB Remote interface & Container implementation class of that interface?Is there anyting mentioned in specs? This questoin was asked to me by many people.I think it is Command design pattern as it hides away all the detai

  • Will not accept serial number--why?

    My serial number entered from the one on the plastic case will not be accepted. I currently have Adobe Photoshop Elements 8 and am trying to install APE 10.