How do you invoke a simple jsp

hi,
i have a very simple jsp that displays the current time. it works on my tomcat server (installed on my computer). i purchased a domain from yahoo, say, www.beginer.com and uploaded the jsp file to the yahoo server. but when i referenced it with the url www.beginer.com/MyJSP.jsp, a download dialog popped up.
so, how do you get the browser to display the dynamic contents of the jsp file?
thanks.

Did you ask Yahoo whether their server supports servlets and JSPs? Or did you just assume that? I would expect that it doesn't.

Similar Messages

  • How do you invoke the customer satisfaction guarantee on HP photo paper?

    OK, perhaps this is a silly question, but I can't find anything on the HP site or forums that addresses this.  How does one invoke the customer satisfaction guarantee on HP photo paper?  The instructions in the box (and website) tell me to call HP customer care.  I did that, and spent 25 minutes having a technician tell me it was a problem with my printer (HP Photosmart C6180), my printer was out of warranty, and I would need to exchange it and pay a fee to upgrade to a newer model with a 1 year warranty.  She seemed not to care or know anything about the customer satisfaction guarantee for paper; she was only trained to tell you the problem was most surely with the printer.
    In case anyone here can help, I have the HP Premium Plus 4x6 glossy paper, and whenever I use it the picture quality is extremely poor--not at all what I expected from the paper.  It appears the ink has "balled" up, and it looks very splotchy.  I am setting the paper type appropriately when printing, and I use original HP 02 inks.  When I use other photo paper to print photos, they come out perfectly.  Having wasted quite a bit of ink and paper trying different things, I'm just not satisfied and would like to discuss this further with HP.

    The only numbers available (I've just reached over and picked up a box of premium plus 4X6 from my supply shelves to look) are on the bottom end back of the box.  They are directly under their corresponding bar codes; the Product Number (for 4X6 premium plus it's Q1978AC) and what looks like the SKU (on my box, ignoring the small 8 and 5 at either end, that reads 0873654213).  Additionally, there is a "Lot Number" (printed in white dot printing on a gray box background) directly above the product number (which should have "US" in the upper left, and a string below that...mine is US00204805).  There is no number on the back of the paper, just the HP logo and a string of 6 small dots under it in a diagonal pattern spread across it.
    So, I expect they want all three; Product Number, SKU, and Lot Number...the last likely so that that can pull a lot sample from their QA inventory and attempt to reproduce the issue back at the lab.
    Hope that helps.
    H
    Message Edited by HLansing on 08-14-2009 06:15 AM

  • How to -only- invoke a Servlet/JSP

    Hi,
    I would like to invoke a Servlet or JSP inside a standalone application WITHOUT opening a stream. When I use url.openConnection() or con.connect() the servlet/JSP is not executed, I must also do "ObjectInputStream o = new ObjectInputStream(con.getInputStream());" in order to get the servlet/jsp executed.
    I just want to invoke the servlet/JSP, because I use the returned data for nothing.
    Thanks

    If you openConnection, you might also have to get the output stream from the servlet to make it work properly. (Otherwise, the server, or proxies in-between, might consider that the client has decided it doesn't want the page after all, and may stop requesting it.)
    A cheap way to request a page but get less data back would be..
    conn.setRequestMethod("HEAD");HEAD is exactly like GET, except it doesn't return the body (just the headers, hence the name.) Not entirely sure if it works on Java.
    Failing that, you should be able to just open the input stream, and close it again straight away.

  • How do I expand my simple JSP page to implement Connection Pooling?

    Hi everyone,
    I have a small SQL database which contains information about Students and a StudenBean which contains their attributes and appropriate get/set methods (which I haven't needed to use yet).
    I want to write a simple JSP page which displays all the students details in one big table. I can do this using the basic prototyping method of adding the dataSource and driver details to the deployment descriptor (web.xml - I'm using the latest version of Tomcat by the way) and then accessing the database using JSP standard SQL actions.
    Here's a snipet of what I've done (just an example, the final code works):
    <sql:query var="temp"
    sql="SELECT * FROM Employee ORDER BY UserName"
    />
    <c:forEach items="${temp.rows}" var="row">
    <td><c:out value ="${row.UserName}"/></td>
    <td><c:out value ="${row.FirstName}"/></td>
    <td><c:out value ="${row.LastName}"/></td>
    Now I want to upgrade! I want to access the dataSource using Connection Pooling and it's causing me a lot of trouble. I already have the required working classes/data such as ConnectionPool.java, ResourceManagerListener.java, the MySQL driver etc.
    However, I don't know what the best way to setup the connection for my purposes would be and where I should do it.
    Do I need to write a servlet or tag handler/custom action to establish the connection and access my bean through it? I would like to keep a similar sort of business logic as I already have developed i.e. be able to use actions in my JSP page to cycle through the database and print out each detail from the row.
    Rather confused and muddled. Thanks for any input!

    Good idea.
    Set up a JNDI data source for your app, according to these docs:
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
    You'll have to put the right information into your web.xml and a context.xml. Once you've done that, your JSTL JSPs will simply use the connection resource automagically.
    MOD

  • How do you invoke Edge Web Fonts?

    Assuming this is available in this release, how to you bring up the Edge Web Fonts capability?

    Hi Phil,
    You should be able to trigger the code hints manually anywhere in the font-family value by pressing Ctrl+Space.  It should also pop up automatically if you type "," followed by a space anywhere in the value.  Are those approaches not working for your code?  (If so, please post a snippet of your CSS here so we can investigate).
    - Peter

  • How do you invoke an asp page from a java servlet ?

    How do you do the above. I am very new in java and needs to do something like this. Please provide code snippets on how to do this. Any help will be highly appreciated.

    RequestDispatcher d = getServletContext().getRequestDispatcher("the asp-url")
    d.forward(request, response);request and response are the arguments of the servlets doPost or doGet method

  • How do you invoke a method with native int array argument?

    Hi,
    Will someone help me to show me a few codes samples on how to invoke a method which has only one argument, an int [] array.
    For exampe:
    public void Method1(int [] intArray) {...};
    Here is some simple code fragment I used:
    Class<?> aClass = Class.forName("Test2");
    Class[] argTypes = new Class[] {int[].class};
    Method method = aClass.getDeclaredMethod("Method_1", argTypes);
    int [] intArray = new int[] {111, 222, 333};
    Object [] args = new Object[1];
    args[0] = Array.newInstance(int.class, intArray);
    method.invoke(aClass, args);I can compile without any error, but when runs, it died in the "invoke" statement with:
    Exception in thread "main" java.lang.IllegalArgumentException: object is not an instance of declaring class
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at Test1.invoke_Method_1(Test1.java:262)
         at Test1.start(Test1.java:33)
         at Test1.main(Test1.java:12)
    Any help is greatly appreciated!
    Jeff

    Sorry, my bad. I was able to invoke static methods and instance methods with all data types except native int, short, double and float, not sure the proper ways to declare them.
    After many frustrating hours, I posted the message for help, but at that time, my mind was so numb that I created a faulted example because I cut and pasted the static method invocation example to test the instance method passing int array argument.
    As your post suggested, "args[0] = intArray;", that works. Thanks!
    You know, I did tried passing the argument like that first, but because I was not declaring the type properly, I ended up messing up the actual passing as well as the instantiation step.
    I will honestly slap my hand three times.
    jml

  • How do you invoke the default browser for Unix/OSX

    Does anyone know how to programmatically display the contents of a URL in the default browser for a Unix system? I found a javaworld article on doing this using Runtime.getRuntime().exec(cmd). The article gives the cmd string for invoking the default browser in Windows, and for invoking the Netscape browser in Unix.
    This can easily be extended to invoke any known browser executable in a known path on a Unix system; but I'd like to invoke the default browser without knowing what or where it is. I'm specifically targetting Mac/OSX, but any Unix solution is worth trying.
    Is there a Unix command for launching the default browser to display the contents of a given URL? Or is there an alternative approach, rather than invoking Runtime.exec()?
    -Mark

    After extensive google searching, I came across a partial solution. This code detects the default browser on a Mac, and provides an elegant solution for trying standard browsers in turn for other Unix systems. I tested it on WIndows XP and Mac OSX 3.9, and it detected the default browser each time. A suped up version of this tool is available as a SourceForge project. You can find it here:
    http://sourceforge.net/projects/browserlaunch2/
    Here's the simplified code:
    //  Bare Bones Browser Launch                          //
    //  Version 1.5                                        //
    //  December 10, 2005                                  //
    //  Supports: Mac OS X, GNU/Linux, Unix, Windows XP    //
    //  Example Usage:                                     //
    //     String url = "http://www.centerkey.com/";       //
    //     BareBonesBrowserLaunch.openURL(url);            //
    //  Public Domain Software -- Free to Use as You Like  //
    import java.lang.reflect.Method;
    import javax.swing.JOptionPane;
    public class BareBonesBrowserLaunch {
       private static final String errMsg = "Error attempting to launch web browser";
       public static void openURL(String url) {
          String osName = System.getProperty("os.name");
          try {
             if (osName.startsWith("Mac OS")) {
                Class fileMgr = Class.forName("com.apple.eio.FileManager");
                Method openURL = fileMgr.getDeclaredMethod("openURL",
                   new Class[] {String.class});
                openURL.invoke(null, new Object[] {url});
             else if (osName.startsWith("Windows"))
                Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
             else { //assume Unix or Linux
                String[] browsers = {
                   "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape" };
                String browser = null;
                for (int count = 0; count < browsers.length && browser == null; count++)
                   if (Runtime.getRuntime().exec(
                         new String[] {"which", browsers[count]}).waitFor() == 0)
                      browser = browsers[count];
                if (browser == null)
                   throw new Exception("Could not find web browser");
                else
                   Runtime.getRuntime().exec(new String[] {browser, url});
          catch (Exception e) {
             JOptionPane.showMessageDialog(null, errMsg + ":\n" + e.getLocalizedMessage());
       }

  • How do you invoke custom java classes???

    Could someone post a detailed method of invoking custom java classes that works including what files go where, settings and the way it is invoked etc.
    I have tried various ways from this forum and in the documentation without success. I am using IDM 8. I found these instructions regarding how you would do it if you were writing custom resource adaptors in the deployment tools guide:
    To install a resource adapter you’ve customized:
    1. Load the NewResourceAdapter.class file in the Identity Manager installation
    directory under
    idm/WEB-INF/classes/com/waveset/adapter/sample
    (You might have to create this directory.)
    2. Copy the .gif file to idm/applet/images.
    This .gif file is the image that displays next to the resource name on the List
    Resources page, and it should contain an image for your resource that is
    18x18 pixels and 72 DPI in size.
    3. Add the class to the resource.adapter property in
    config/waveset.properties.
    4. Stop and restart the application server. (For information about working with
    application servers, see Identity Manager Installation.)
    I tried the instructions here but placed my custom class in a folder entitled custom instead of /adapter/sample. Not sure about instruction 3 or whether it is relevent. Anyway nothings working.
    Edited by: masj78 on Nov 25, 2008 3:50 AM
    Edited by: masj78 on Nov 25, 2008 4:03 AM

    Hi,
    The way to add custom class is the same as you followed , put them in the WEB-INF/classes.
    To use the custom adapter ,
    Go To Resources - > Configure Types -> Add Custom Resource .
    Type in the fully qualified class name of the custom adapter you added.and Save.
    Now the new adapter you added should showup in the list of available adapters when you try to
    configure a new adapter.
    (Make sure that the prototype XML of your custom adapter is correct so that it displays the correct name / type for the adapter in the adapter list.
    Thanks,
    Balu

  • How can you opening the tree.jsp page to a specific folder?

    I am trying to pass a query string into the viewer.jsp page so that I can open the appropriate folder relating to that query string. I can't find a way to do this as of yet. A lot of the code doing the work is only .class files so it is challenging.
    If you have any ideas as to how to begin to tackle this problem please let me know. Basically the querystring would contain the folder I want the tree to open to.
    Thanks,
    Simon

    See:
    *https://mike.kaply.com/2012/02/09/integrating-add-ons-into-firefox/

  • How do you invoke an Action prior to an initial page?

    Is there a mechanism in JSF that allows action code to run prior to the first page?
    Basically I want to do some processing in the context of JSF before displaying the initial application page.
    In Struts I was able to do this by defining an action-mappings action that referenced an action class, and from that action I could forward to another action-mappings action that was a JSP.

    This seems rather complicated and is not straight-forward. I need something similar: Before the first Render Response phase of a view I'd like my application to process any parameters that were passed via a non-faces GET request and set up my application and the JSF components appropriately. In other words, instead of the initial Restore View -> Render Response I'd like to have the full sequence of Restore View -> Apply Values -> Process Validations -> Update Model Values -> Invoke Application -> Render Response.
    For example, depending on the request parameters I'd like to forward the request to one or the other JSF view. And I cannot do that in the Render Response phase because doing it The Faces Way is only possible in the Invoke Application phase - which is not invoked upon a view's initial use.

  • How Can You Create A Simple USB Driver

    Hello,
    I wonder if any one can help? I would like to try and build a simple USB driver for this devices http://www.maplin.co.uk/Module.aspx?ModuleNo=227123 I have no real experience programming for mac bar BASH scripts and a few AppleScripts. Could someone give me a few pointers to get started. The devices developer manual can be found here http://www.dreamcheeky.com/dream/forum/download/file.php?id=7
    Thank you,
    James

    http://developer.apple.com/referencelibrary/HardwareDrivers/idxUSB-date.html

  • How do you invoke screengrab

    Just added Screengrab via the add ins
    == This happened ==
    Not sure how often
    == when I added the add-n

    I have updated to firefox 4.0, I wish I hadn't,
    the screengrab tool bar doesn't show or work ,
    among other things ! and my computer is extremely
    slow now since upgrading to firefox 4.0 !
    It's more trouble than it's worth. I've tried using
    system restore *failed*
    At this point I would rather go back to the older version of firefox
    How do I delete the 4.o ? (so messed-up)
    How do I get the sceengrab toolbar back? -
    btw it IS downloaded

  • How do you invoke the wlpackage prompt

    I need to create an earfile with this wlpackage. I have the required build.xml created with java.... weblogic.BuildXMLGen, but I do not see any additional command to display the wlpackage
    If you have any clue, please let me know.
    wlpackage toFile="\physicianEAR\physicianEAR.ear" srcdir="\physicianEAR"destdir="\build\physicianEAR"/><wlpackage toDir="\physicianEAR\explodedphysicianEar" srcdir="\src\physicianEAR"destdir="\build\physicianEAR" />
    Joseph

    Can someone tell me what is wrong with this ant task
    ant <wlpackage toFile="$HOME/apps/MyFirstEarEAR/MyFirstEarEar.ear" srcdir="$HOME/apps/MyFirstEarEar" destdir="$HOME/apps/build/MyFirstEarEAR"/>
    <wlpackage toDir="$HOME/apps/MyFirstEar" srcdir="$HOME/apps/MyFirstEar/src/MyFirstEar" destdir="$HOME/build/MyFirstEar" />
    ~
    Here is my errors
    woksand:/home/erasdev/apps>vi ant_MyFirstEar.sh
    woksand:/home/erasdev/apps>ant_MyFirstEar.sh >> MyFirstEar.log
    ant_MyFirstEar.sh: syntax error at line 2: `newline' unexpected
    Joseph

  • How can you create a simple insert or update trigger

    I am trying to create a simple insert or update trigger to timestamp an xml document when I load it into my XML DB repository but I always get an error trying to compile the trigger.
    "ORA-25003: cannot change NEW values for this column type in trigger"
    Here is my PL/SQL:
    CREATE OR REPLACE TRIGGER "PLCSYSADM"."PLCSYSLOG_TIMESTAMP"
    BEFORE
    INSERT
    OR UPDATE ON "PLCSYSADM"."PLCSYSLOG"
    FOR EACH ROW BEGIN
    :new.sys_nc_rowinfo$ := xmltype('<datestamp>' || SYSDATE || '</datestamp>');
    END;
    Does anyone have an example that works ?
    Thanks in advance
    Niels Montanana

    http://developer.apple.com/referencelibrary/HardwareDrivers/idxUSB-date.html

Maybe you are looking for

  • ITunes wi-fi sync works at home, but not on other wi-fi hotspots. Any suggestions?

    I know I've got all the settings correct, since both my phone (4, iOS 6.0) and iPad (first gen, iOS 5.1.1) connect and sync over wi-fi easily at home. But when I'm on campus, and all devices are connected to the same wi-fi connection, my computer doe

  • Issue with utl file

    Hi, I am using UTL file to export records from table with fixed delimiter to a text file. It works fine except that I see an additional character @ at the end of the file in the last line. Can anyone let me know why are we getting this and how can we

  • IPhoto 11: how to reveal shared/published photos in bulk?

    How can I reveal, easily and quickly, which photos... out of thousands... have been shared/published? The only place I can find that info is in the side bar, but publication information appears for only one photo at a time. I have to go through my li

  • How to view UNused report or programs from past 1year

    Hi All, I have a query, I want to see which are the programs and reports are not used from past 1year, i want to extract those programs or reports. Can any one help me in this. thanks, Praveen Kumar B.V

  • .   Mobile Flash Map

    After almost 3 years of development, a new way of viewing maps on mobile devices. Currently uses Flash Lite 1.1. flashmap retrieves dynamic data from xml, parses it using php then displays it on Flash Lite 1.1 enabled mobile phones. Use the keypad to