Question about running a servelt using HTML form.

Hi, Im new to Servlets , I have created a servelt with this code :
package oracle.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class LoginServlet extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    private static final String DB_URL = "jdbc:oracle:thin:@localhost:1521:ahmaddb";
    private static final String DB_USERNAME = "fundinfo";
    private static final String DB_PASSWORD = "tadapps";
    private static Connection con;
    private String pass;
    private String name;
/*init() : invoked by the servlet engine before the servicing of client requests
- Can be used to retrieve initialization parameters
– Takes a ServletConfig object as a parameter
– Is invoked when the servlet instance is created
– Is useful for obtaining database connections from a connection pool*/
    public void init(ServletConfig config) throws ServletException {
        super.init(config);
        //config.getInitParameter(arg0);
    public void doGet(HttpServletRequest request,
                      HttpServletResponse response) throws ServletException,
                                                           IOException {
response.setContentType(CONTENT_TYPE);
        //PrintWriter : Print formatted representations of objects to a text-output stream.
        //getWriter() : Returns a PrintWriter object that can send character text to the client.
        PrintWriter out = response.getWriter();
        out.println("<html>");
        out.println("<head><title>My First Servlet</title></head>");
        out.println("<body>");
        out.println("<p>The servlet has received a GET. This is the reply.</p>");
        out.println("</body></html>");
        out.close();
    public void doPost(HttpServletRequest request,
                       HttpServletResponse response) throws ServletException,
                                                            IOException {
        response.setContentType(CONTENT_TYPE);
        PrintWriter out = response.getWriter();
        name = request.getParameter("user_name");
        pass = request.getParameter("user_password");
        boolean result = verifyPassword(name, pass);
        out.println("<html>");
        out.println("<head><title>LoginServlet</title></head>");
        out.println("<body>");
        if (result == true){
        out.println ("Hello " + name + ": Your login module is working great!");
        else{
        out.println ("Invalid user name or password");
        out.println ("</body></html>");
        out.close();
        // out.println("<p>The servlet has received a POST. This is the reply.</p>");
        //out.println("</body></html>");
        //out.close();
    public void configureConnection() throws SQLException {
    try{
    Class.forName("oracle.jdbc.OracleDriver");
    con = DriverManager.getConnection(DB_URL, DB_USERNAME,DB_PASSWORD);
    con.setAutoCommit(true);
    catch (Exception e){
    System.out.println("Connection failed: " +e.toString());
    public Connection getConnection() throws SQLException
    configureConnection();
    return con;
    protected boolean verifyPassword(String theuser, String password) {
    String originalPassword = null;
    try {
    con = getConnection();
    Statement stmt = con.createStatement();
    stmt.executeQuery("select password from login where uname='"+theuser+"'");
    ResultSet rs = stmt.getResultSet();
    if(rs.next())
    //>>
    originalPassword = rs.getString(1);
    stmt.close();
    if(originalPassword.equals(password)) {
    return true;
    else {
    return false;
    catch (Exception e){
    System.out.println("Exception in verifyPassword()="+e.toString());
    return false;
}and created an HTML form to target this servlet
<form action="/loginservlet" method="post">,
when I enter the the credintials I get this output in the webpage :
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

Thanks , yes it is added to the web.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
    <description>Empty web.xml file for Web Application</description>
    <servlet>
        <servlet-name>LoginServlet</servlet-name>
        <servlet-class>oracle.servlets.LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>LoginServlet</servlet-name>
        <url-pattern>/loginservlet</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
    </mime-mapping>
</web-app>Anymore suggestions?

Similar Messages

  • Question about Oracle Fusion Middleware 11g.- Installation FORMS

    Hello everyboyd,
    I am installing Forms version 11. First, I installed Oracle Weblogic Server version 10.3.6. After, I installed Forms 11g R2, but when the installation is in the step Create Dominion, the installation fails. I watch in the logs the follow error:
    oracle.as.provisioning.util.ConfigException:
    Error al iniciar el dominio.
    Cause:
    Se ha producido un timeout al iniciar el servidor de administración.
    Action:
    Consulte los logs para obtener más información.
    *     at oracle.as.provisioning.util.ConfigException.createConfigException(ConfigException.java:123)*
    *     at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3150)*
    *     at oracle.as.provisioning.weblogic.ASDomain.startDomain(ASDomain.java:3040)*
    *     at oracle.as.provisioning.engine.WorkFlowExecutor._startAdminServer(WorkFlowExecutor.java:1645)*
    *     at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:635)*
    *     at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)*
    *     at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)*
    *     at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)*
    *     at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)*
    *     at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)*
    *     at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)*
    *     at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)*
    *     at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)*
    *     at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)*
    *     at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)*
    *     at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)*
    *     at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)*
    *     at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)*
    *     at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)*
    *     at java.lang.Thread.run(Thread.java:662)*
    In other log, the error is :
    Executing Task: Creando Dominio
    XXX: adding task: oracle.as.install.classic.ca.standard.DomainProvisioningTask
    AdminServer port is 7001
    Creating Weblogic Domain.
    Adding Template : C:/Oracle/Middleware/oracle_common/common/templates/applications/jrf_template_11.1.1.jar
    Adding Template : C:/Oracle/Middleware/Oracle_FRHome1/common/templates/applications/classic_template_11.1.2.jar
    CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1211\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JROCKI~1.0-1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_12.1.1.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;C:\Oracle\MIDDLE~1\utils\config\10.3\config-launch.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\common\derby\lib\derbynet.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\common\derby\lib\derbytools.jar;;
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Could Somebody help I?
    Thanks in advance
    Carlota Viña Sirgo

    Hi Carlota,
    Now that the WebLogic and OHS environments are functional, there are some configurations that will be required to set up your Forms environment. Before deploying your own 11g forms, I would test to see if Oracle's test form (test.fmx) can run which is deployed by default in %ORACLE_HOME%\forms. What is supposed to happen is that when you run the URL you are using, Oracle Forms will:
    1. Attempt to download the Java Runtime if not installed already. A Java Runtime (JRE) is required to run Oracle Forms 11gR2. The application will try to download the JRE specified in the formsweb.cfg file (sets up the Web environment for Forms) based off the jpi_codebase parameter (if using IE) or jpi_mimetype (if using other supported browsers). Make sure that your browser is able to download the JRE. Alternatively, you may also download a JRE from the Java website http://www.oracle.com/technetwork/java/javase/downloads/index.html. NOTE: Unless you are running Internet Explorer 64-bit (if you simply run Internet Explorer, this is 32-bit), I would download the 32-bit JRE.
    2. Attempt to start the test.fmx form deployed in the FORMS_PATH variable. This variable is set in default.env, which is the standard environment variable deployment file for Forms (formsweb.cfg also references this file in the default section). If successful, you should receive a page saying "Installed successfully" as well as show you the version of Oracle Forms you are running (ex. 11.1.2.1.0).
    Once those tests are work, if you need any assistance with deploying your own 11g forms, the Oracle Forms 11gR2 deployment guide provides a great source of information to help you get started: http://docs.oracle.com/cd/E24269_01/doc.11120/e24477/toc.htm
    Thanks,
    Scott (PITSS)

  • How to use HTML form vi

    Hi, I am trying to trying to fill up information into a website using labview. It has 3 text inputs and a image submit button. I was wondering if it is possible to fill the HTML with labview. Another question is that if anyone knows an example VI for HTML form VI from the internet toolkit. I don't know the connections and there is no examples out in the net.

    My understanding from your question is that you would like to programmatically (using LabVIEW) send input to and click a button on an existing HTML website, is that right?
    If yes, then you can use ActiveX calls to embed a web browser into the front panel of your VI and then use its invoke node to input a text to a form or click a button. Another way is to use the lower-level TCP VIs in LabVIEW, but you need to understand HTTP protocols to successfully use this. See below examples to get started.
    ActiveX
    https://decibel.ni.com/content/docs/DOC-25396
    https://decibel.ni.com/content/docs/DOC-12454
    TCP VIs (HTTP)
    https://decibel.ni.com/content/docs/DOC-2230
    http://zone.ni.com/devzone/cda/epd/p/id/3153
    FYI, LabVIEW Internet Toolkit has been deprecated starting LabVIEW 2012, so it is not recommended to build a new application using that.
    Hope this helps.
    Regards,
    A. Yodha
    Applications Engineer | National Instruments
    Singapore (65) 6226 5886 | Malaysia (60) 3 7948 2000 | Thailand (66) 2 298 4800
    Philippines (63) 2 659 1722 | Vietnam (84) 8 3911 3150 | Indonesia (62) 21 2924 1911

  • How to use html form actions and methods

    Hi, I want to make a quick contact page using Edge. I used the following code in my creationComplete but had no luck.  Any help?
    var na = sym.$( "email" );
    email.html( '<form action="send_mail.php" method="post"><input type="text" id="email" value="" />' );
    var button = sym.$( "btn" );
    button.html( '<input type="submit" value="Send" />' );

    My understanding from your question is that you would like to programmatically (using LabVIEW) send input to and click a button on an existing HTML website, is that right?
    If yes, then you can use ActiveX calls to embed a web browser into the front panel of your VI and then use its invoke node to input a text to a form or click a button. Another way is to use the lower-level TCP VIs in LabVIEW, but you need to understand HTTP protocols to successfully use this. See below examples to get started.
    ActiveX
    https://decibel.ni.com/content/docs/DOC-25396
    https://decibel.ni.com/content/docs/DOC-12454
    TCP VIs (HTTP)
    https://decibel.ni.com/content/docs/DOC-2230
    http://zone.ni.com/devzone/cda/epd/p/id/3153
    FYI, LabVIEW Internet Toolkit has been deprecated starting LabVIEW 2012, so it is not recommended to build a new application using that.
    Hope this helps.
    Regards,
    A. Yodha
    Applications Engineer | National Instruments
    Singapore (65) 6226 5886 | Malaysia (60) 3 7948 2000 | Thailand (66) 2 298 4800
    Philippines (63) 2 659 1722 | Vietnam (84) 8 3911 3150 | Indonesia (62) 21 2924 1911

  • Question about running EverQuest on a Boot Camp MacMini

    Hey all,
    I'm trying to get EverQuest working on my MacMini running Windows 7 via Boot Camp. Browsing through the archives of the internet, I've found many posts from 2007-2010 of people having success with this on a MacBook Pro (a few posts of which I found in these community archives), and I'm 99% certain that my MacMini hardware is more than sufficient. Anyway, I haven't even got to loading the game yet so performance my question isn't about performance.
    My issue is that I'm trying to run the EverQuest LaunchPad to start patching the game, and it won't connect right from the outset. I've followed all of SoE's EQ LaunchPad Troubleshooting tips (here: http://help.soe.com/app/answers/detail/a_id/29017 ) and I've also gone in to my router settings and opened/forwarded all of the necessary EQ ports to this computer's IP address. I was hoping that would do it but no luck.
    I also contacted the SOE Support staff and they were categorically unhelpful as usual. I used to play EQ a decade ago and I wasn't surprised to see that their customer service hasn't changed one bit. Well, here's to hoping that the Mac community is much more positive and helpful than SOE Support.
    Has anyone experienced similar problems getting EverQuest to run on a Windows Boot Camp machine like this? How did people get their LaunchPad client to connect? I'm hoping there's some really dumb, obvious fix that I'm missing here because it really does seem like many have gotten this to work successfully and I'm a bit stumped at the moment..
    Any advice would be greatly appreciated. Thanks!

    the hardware of macs today and windows computer is pretty much the same
    so when one use bootcamp it's really just a bootloaded which collects the windows partition from the harddisk and then let it take over and apart from one having to install the apple drivers and software to get it running well
    it's the same as any windows computer
    I do all my my gaming on windows on my imac and face no different challenges then I did when I had a windows computer really
    so If I were you I would broaden my googling for solutions not just to include bootcamp but all windows issues with newer windows versions and everquest could as easy be a issue there with newer video card drivers and the likes

  • Question about running explain plan

    I tried to run explain plan for a simple query, just to familiarize myself with how to do it. (I have another query that's taking a long time, and I've never run explain plan before). I got an error, googled it, and discovered I had to run the file at @%ORACLE_HOME%\rdbms\admin\utlxplan.sql first, to create the Plan_Table. Well, I tried to run that file and I get the error that I don't have priveleges on the tablespace. This really doesn't surprise me, as my access is read-only. Is there any way around this? I don't know a whole lot about databases, so forgive me if these following questions are dumb, but...
    1) is that file basically trying to create a table (called Plan_Table) within the schema I'm in (the only schema I have access to)?
    2) can my company's DBA run that file for me to create the Plan_Table?

    What version of the database are you on?
    You can get run-time execution plans from V$SQL_PLAN. You will need permission to read the V$ views. First find your query in V$SQL_PLAN (you can do a text search; putting a comment in like '--my_query' can help), then join to V$SQL_PLAN to find the query plan that that query used - join by the ADDRESS and HASH_VALUE columns.
    Otherwise, see if you can get insert/update/delete access on just that one table when your DBA creates it
    Good luck.

  • Question about file size when using "Export for Web"

    Hi!
    I created a .mov file and worked to get a great balance between file size and quality so that I could deliver it via the web and make it easier for end users to see the video on a slower connection.
    My question: When I use "Export for Web," my .mov file is converted into a very large .m4v file--more than double the size of the original file. I know that this export option is to optimize the file for a wide variety of users/internet speeds. Am I correct in guessing that the end size is not an issue? I would post the .mov file instead, but I really like the option of embedding into a html page along with the "click to play" option.
    Bottom line--is it better to post the smaller .mov file that i originally started with or to go ahead and link to the bigger .m4v file that was created with the "Export for Web" option?

    "Export for Web" is a feature of QuickTime Pro and it makes 4 files and the html page code for easy copy/paste Web page editing.
    The very first file is called a "reference movie" and it links to the other 3 files (56kbps, 900kbps and 1.5Mbps). It, and the page code, "read" the connection speed of the viewing hardware and "serve up" the correct file based on that connection speed.
    In nearly all cases the "Desktop" version would still be smaller in file size than the original source. The times the file would "increase" in file size would be when an already compressed was used as the source file. You can find out more about your source file by opening it in QuickTime Player and viewing the Movie Inspector window information.
    There are dozens of other html "tricks" that could be used if your source file is already compressed but you want a different display size:
    Page code to show "aspect" or scale="tofit". This code allows values "outside" of those found in the actual QuickTime file be used for the Web page display. A 320X240 QuickTime .mov file looks pretty good at double size (640X480) but the file size would still be that of the source file.
    "Poster Movie" is another html trick that loads the Web based file directly in the QuickTime Player application (bypassing Web page layout restrictions). These files are also known as "Presentation Movies".
    Another method is the QuickTime Media Link file (.qtl). These are simple text based files that are used as a "direct link". These use simple XML (Extensible Markup Language) and are easily created in any text editing application. The simple syntax has amazing control over a simple QuickTime .mov file. You can launch (and quit) the QuickTime Player, display at other dimensions and even embed "links" inside the display.
    Some of my files as examples:
    http://homepage.mac.com/kkirkster/Lemon_Trees/ a "Poster Movie" style.
    http://homepage.mac.com/kkirkster/.Public/RedneckTexasChristmas.qtl
    A QuickTime Media Link file. A tiny file should download to the viewing machine, launch QuickTime Player, present the movie and it even includes a "link" to my Web page.
    Edit: It appears you must now double click the .qtl download to launch QuickTime.

  • E-recruimtment: Question about landscape standalone with use of MSS view

    Hi ,
    Has anyone already done an implementation of E-recruitment with the use of MSS view ?
    Or have you reliable information about the combination landscape - manager view ?
    For security reasons the choice for the landscape standalone is the best.
    But in documentation of SAP we have read that the Manager view isn't possible in a standalone landscape:
    ERP installation (Recruiting as integral part of the ERP solution)
    - Required for MSS Manager Role integration and ESS integration
    Kind Regards
    Pascale

    Hello Pascale,
    perhaps we mixed up some things according to the manager involvment. There are 2 different solutions.
    There is the "internal" e-recruiting solution for manager involvement. This is delivered in 2 separate roles requester and decision maker but usually joined to one manager or hiring department view / startpage.
    There is an bsp application for requesting requisitions. The manager can create them, fill in the data he knows and then he sends it to his hr clerk respondible for his requests who adds all stuff missing, checks if it's ok with budget / headcount and then publishes it in the jobborads. In Addition there is an application which provides the mangager with a list of candidates he has to check and fill a questionaire for e.g. to decide if he wants the candate for an interview.
    Both applications are parts of the e-recruiting delivery. They have nothing to do with the MSS. They are accessed via a startpage for the amnager and run on the e-recruiting server.
    On the other hand there is nearly the same functionality delivered as part of the MSS. The result is nearly the same just the user interface differs. The requisition request is not done in an bsp application but an Adobe Interactive Form (which requires an ADS Server). The intention of this is to rebuild you old paper requisition request in an interactive form and map the data to the e-recruiting requisition. So you train your managers to use a web version of the old form instad of using e-recruiting. Of course if you already use other mss functions everything will be in the same fancy frontend and you do not need to log in twice if you have no SSO. As far as I heard the ADS license alone costs 50k and then youhave the rollout cost and licence cost for the MSS. You have to decide if it is worth it.
    The candidate list for questionairs to fill is also available in the MSS scenario.
    The MSS solution requires e-recruiting 600 and an hr core system on ECC6.0 (ERP2005) with the newest enhancement package. The MSS is installed and processed on the hr core server no matter if you use an integrated or a standalone installation for e-recruiting.
    Best Regards
    Roman Weise

  • Question about "run application once" semantics...

    Hi to anyone still out there. We're still using ZfD 3.0SP1a with the
    latest NAL patch (10.4.2002). Things basically are working but we're
    redoing our software distribution strategy to try and streamline things
    and squeeze a bit more life out of the platform. As part of the process, I
    moved away from force run MSI installs by user for basic stuff to force
    runs which call msiexec /i some.msi (or setup or whatever...) and
    associating these to OUs. I was planning to use the app version number to
    force redistribution whenever I put up newer MSIs or installer files. In
    testing, I noticed that msiexec was running on each login for each package
    and that wasn't what I wanted. I want the installers to fire off once,
    then again whenever I bump the version number. So I checked off "Run
    application once". Now the apps run only once but do not redistribute when
    I up the version number. If I use nlist to query eDir, I can see the
    attribute "zenappDisconnectedVersionNumber" has been incremented in the
    directory but looking at HKLMSoftwareNetWareNAL1.0Distribute*, the version
    number for that app never moves and the software isn't redistributed. The
    apps are all set to "wait on force run".
    Am I misunderstanding the use of this attribute? I suppose I could leave
    "run application once" off and set up some registry flags to control
    distribution or even just let them run on each login but I want to do this
    in the cleanest fashion. Any suggestion about what I might be doing wrong
    or how to work around/troubleshoot this issue? Thanks in advance!
    Michael

    Thanks, guys. I have a follow up question/issue related to this
    environment. I am pushing out a handful of apps associated with
    workstations via OUs (force runs which call msiexec or a setup). I've
    tested this a hundred or more times in my own OU but in several other OUs,
    I've now run into this issue when NAL kicks off the first app install. I
    get a WMRUNDLL.EXE error and no software distribution occurs. The text of
    the Dr Watson error is:
    The application, WMRUNDLL.exe, generated an application error The error
    occurred on 11/07/2007 @ 12:54:26.495 The exception generated was c0000005
    at address 004AED14 (NWAPPCreateFullObjectName)
    In setting up a few machines today, the first ran fine, the next 3 got
    this error. I've synched up everything in PUBLIC across all servers; all
    NAL related files that I'm aware of (that show via NAL's "more" button)
    are from the last update for ZfD 3, dated 10-04.2002.
    I did some searching and the little I was able to find seemed to point at
    a particular version of wsreg.dll. Wasn't able to find any particulars
    though. Fwiw, wsreg32.exe and wsreg.dll in PUBLIC were dated 6.26.2001. I
    swapped in a wsreg.dll from 10.22.2002 which I believe was part of the
    49SP2 client. That apparently hasn't helped. Worst of all, it seems
    intermittent or arbitrary - I can't really see what's different between
    the environment I'm currently in that is experiencing the error and the
    one in which it's working. It's the exact same base image, exact same
    PUBLIC dir... the only difference is that it's not my home OU. I checked
    workstation policies in the other OU and they appear to be the same as in
    mine.
    I thought I was past this as the PUBLIC sync seemed to clear things up at
    another location but now I'm seeing it again. Have you seen this before?
    Any suggestions? Thanks a lot!

  • A zillion questions about setting up and using external hard drive

    Hello. I recently purchased a Cavalry 440GB CACE USB/FW800 7200 RPM 3.5 in Mac Formatted hard drive. My Mac is a Power PC G4 using OS X 10.2.8.
    After much back and forth with the Cavalry support desk, I was able to connect it to my Mac. (The USB cable included was not compatible--fortunately, my printer cable was.)
    Through Disk Utility I see that my Mac is detecting the hard drive, but there's no icon on my desktop. My questions are as follows:
    1. How do I get the icon on my desktop?
    2. It was suggested on this board to partition the hard drive. What exactly is partitioning, and is it necessary?
    3. If I do partition the hard drive, into how many partitions should I make it?
    4. Once the number of partitions is set, can that number be changed? In other words, can it be repartioned without erasing anything?
    5. My main purpose for getting the external hard drive is to move all my movies off my Mac. I'm sure I will want to back up other files as well. Should I create one partition for all the movies, and one for photos, one for files, etc.?
    6. Once I get the icon on my desktop, is transferring files as simple as dragging the files onto the icon?
    7. Once I move files to the hard drive, is it simple to move them back to the Mac if I need to use them again?
    OK, that's all for now. I appreciate your patience in dealing with all my questions! Thanks.

    Hello, 
    I'll try my best on the first seven. The remaining zillion minus seven questions will have to wait!
    1. If the drive really is Mac-formatted it should just appear. Firstly check that hard disks are set to appear on the desktop. In the Finder go to Finder > Preferences... >General tab and ensure that the box to show hard disks on the desktop is checked. If that doesn't work go to Macintosh HD > Applications > Utilities >Disk Utility. Select the drive in the left hand pane and then click on the "Erase" tab. Erase the disk and ensure the format is "Mac OS Extended (with Journalling)".
    2. Partitioning is splitting the physically drive into two or more volumes. This will allow you to compartmentalise your data. You will have two or more icons appear on the desktop if you do partition. Although they are on the same physical disk you will be limited on each of the volumes to the size you set at the time of partitioning. If you do partition the drive be sure to use the "Apple Partition Map" not "GUID Partition Map". The latter is for Intel Macs.
    3. Whatever you want. My experience is that too many partitions and you loose flexibility in your storage space. Personally on my external drive I have a partition that is exactly the same size as my internal hard drive. I then use that to do a regular clone backup. I then have a second partition for general use. This means I can put files on the external but still guarantee I have enough spare to backup fully.
    4. No. Not without third party tools.
    5. As I said above, in my opinion the best use is to create a partition for backup and a partition for all other use.
    6. Yes absolutely. However if you plan on moving libraries like iTunes or iPhoto then you'll need to show the applications where the libraries are again.
    7. Yes.
    Some extra pointers:
    A. Use Carbon Copy Cloner to backup your internal drive to the external. Clones are fantastic backups as even if the internal drive bursts into flames you will have an identical copy of all user data and settings: http://www.bombich.com/software/ccc.html (scroll to the very bottom for the version suitable for 10.2.8).
    B. Don't use USB to connect the hard drive it's not very fast. Firewire 400 is significantly faster and will allow the iMac to be booted from the external drive in an emergency (USB will not boot a G4 Mac).
    Hope that helps a little.
    mrtotes

  • Question about implementing a clock using a Timer object

    Hello all, I'm not sure if this is the correct forum to post this question but I think so, as it regards a Swing component. I want to add a timer (a clock that starts at 0:00 and keeps track of how long the app is running) to a frame. I am just curious if using a Timer is the proper way to keep track of time, and just repaint() the clock object every second? (or more frequently if desired)... or is there a better way to do this? Thanks in advance for any comments/feedback/help!
    Brian

    Hello,
    Timer is not accurate. You can use Timer to display your component repeteadly, and System.currentTimeMillis() at each call to deduce the elapsed time.

  • Question about running RMIDemo

    Hello everyone.
    I tried running the RMIDemo by converting my own CAP files and generating the script files for loading into the script.
    My question is, must the Generated RMI STUB which i generate using rmic command be converted together with the CAP files?
    The problem now is that when i run the RMIDemo in the CREF simulator, it gives me a
    java.rmi.RemoteException: Applet selection failed sw = 6d00.
    It works fine in the JCWDE simulator though.
    Does the problem lie in the rmi stub file or something else?
    Can someone help me pls? been stuck at this for hours.... thanks in advance.

    The RMI STUB file must NOT converted! There are only for the client application.
    That means that the stub file must be visible to the client application.
    In addition i think that you are not able to convert stub files
    Now for the applet selection, I can't understand why you have that response, but I will try to guess:
    After the conversion, you must add before RMIDemo.scr the Header.scr
    and after the Footer.scr.
    You will find them into JC_HOME\samples\src\demo\misc, try to make them txt to view the content.
    ALSO you must add a line between RMIDemo.scr and Footer.scr, to create the applet like:
    // create RMIDemo
    0x80 0xB8 0x00 0x00 0x0c 0x0a 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0xc 0x5 0x01
    The general patern is:
    0x80 0xB8 0x00 0x00 0x0c (AID Bytes) 0x00 0x7F; (If i remember well)
    try it and tell me if you need more help.
    Friendly, Bill ;)

  • Question about Run-Time Shortcut Menus example

    I am looking at the Run-Time Shortcut Menus.vi that ships with LabVIEW2011. There is an event case "Test List":Mouse Down that does nothing but generate a Val(Sgnl) event for the "Test List" control if the right mouse button was pressed. There is no value change event for that control.
    Is there an obscure reason to do that? One thing I have learned about many of the examples is not to strictly use them as examples.
    =====================
    LabVIEW 2012
    Solved!
    Go to Solution.

    Nevermind - I found the obscure reason. Even though there is not a value change event, generating the value change event is required to change the value on right-click.
    At least NI could have documented this in the example
    =====================
    LabVIEW 2012

  • Basic PL/SQL Question about running context

    We are trying to create some generalized tools with PL/SQL procedures that would be used by a number of different Oracle Users/Schema. The idea was to store them in an administrative schema (call it ADMIN), create public synonyms for them, and grant execute to public. Then we could run them from the user schema (call it USER) to do the work.
    It was my assumption, that while the procedures were stored in ADMIN, when they were run by USER they would run in the USER context. EG, a table (call it MYTABLE) that was referenced in the procedure without a schema reference (SELECT * FROM MYTABLE) would expect to find MYTABLE in the context of the schema which called the procedure. In other words, call the procedure from USER, I expected the procedure to look for MYTABLE in USER. However, we are getting errors that indicate that even though the procedure is called from USER, it is looking for the table in ADMIN (the procedures creation context), no in USER (the running context).
    QUESTIONS: How is PL/SQL supposed to operate in this situation? Are there any options/parameters that can be set so the procedure will use the runtime context for table lookup, or do we have to write dynamic SQL which will fully qualify the table with the owner schema?
    Thanks for your help
    John Conroy

    Hy,
    from the manual:
    The AUTHID clause is allowed only in the header of a stand-alone subprogram, a
    package spec, or an object type spec. The header syntax is
    -- stand-alone function
    CREATE [OR REPLACE] FUNCTION [schema_name.]function_name
    [(parameter_list)] RETURN datatype
    [AUTHID {CURRENT_USER | DEFINER}] {IS | AS}
    -- stand-alone procedure
    CREATE [OR REPLACE] PROCEDURE [schema_name.]procedure_name
    [(parameter_list)]
    [AUTHID {CURRENT_USER | DEFINER}] {IS | AS}
    -- package spec
    CREATE [OR REPLACE] PACKAGE [schema_name.]package_name
    [AUTHID {CURRENT_USER | DEFINER}] {IS | AS}
    -- object type spec
    CREATE [OR REPLACE] TYPE [schema_name.]object_type_name
    [AUTHID {CURRENT_USER | DEFINER}] {IS | AS} OBJECT
    where DEFINER is the default option. In a package or object type, the AUTHID
    clause applies to all routines.
    Note: Most supplied PL/SQL packages (such as DBMS_LOB, DBMS_PIPE, DBMS_
    ROWID, DBMS_SQL, and UTL_REF) are invoker-rights packages.

  • When i use HTML forms in firefox 6, they dont work, but do in IE and safari and firefox 3.6

    i have the following code in a php script, but in firefox 6 it fails, but works in firefox 3.6, safari, IE .......
    <pre><nowiki>
    echo ' <FORM method="post" action="FindPerGetNo.php">';
    echo ' <tr>';
    echo ' <SELECT name="SelectionString">';
    echo '<OPTION selected value="12">12</option>';
    while($row = mysql_fetch_array($query))
    echo '<OPTION value=" -'.$row['sTableID'].'-">'.$row['sTableName'].'</OPTION>';
    echo ' </SELECT> '; }
    echo ' </tr>';
    echo ' <tr> ';
    echo ' <p align="left">';
    echo ' <td colspan="2"><div align="left"><input type="submit" value="Submit"></div></td>';
    echo ' </tr> ';
    echo ' </FORM>';
    </nowiki></pre><br />
    <br />
    the called script has no value for SelectionString in firefox 6, but it does in the other browsers i mentioned

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

Maybe you are looking for

  • Campaign Automation Responses

    All I have configured campaign automation . Scenario: To collect all survey responders to one target group and collect non-responders to different target group. System Settings: Configuration: 1.     Objective, tactics, campaign type, communication m

  • Getting Error when running sql from concurrent program in R12

    Hi All, I created concurrent program and attached EXECUTABLE which executable method as SQL plus . Using this program I am running one SQL file in R12 when I am running I am getting below error . Same king of program I have define in 11i and running

  • (9I) INDEX의 사용여부 확인하기

    제품 : ORACLE SERVER 작성날짜 : 2002-04-03 (9I) INDEX의 사용여부 확인하기 ============================== PURPOSE Oracle9i에서는 만들어진후 사용되지 않은 index을 찾을수 있는 feature가 소개되었다. Explanation ALTER INDEX MONITORING USAGE 절을 이용하여 작업 시간동안 사용되지 않는 index을 찾을 수 있다. Example < Simpl

  • Help with sort on OLAP cubes

    Hi, I have a requirement to provide a D4O report where one of the cube measures is sorted desc. As I have explored on discoverer, I don't think my problem will be solved on the report side. Can I create a sort on the cube but this sort will not affec

  • Corrupted disk issues between iMacs and Mac OSX Lion

    My iMac can't boot up, because it started to fill a black bar at the bottom of the screen and it suddenly disappears. Tried to repair my disk but Disk Utility said "the disk cannot be repaired". So I formatted twice and made a brand new installation,