HTML file reference to a Servlet file...Very Urgent

Hi
i am new to JSP and servlet..........
i already build a servlet file.
I am submitting the html form to this servlet file.
but i encounter problem........
<form method="POST" action="../servlet/SearchSong">
SearchSong(my class name)
but i kept getting error "the requested resource is not available"
what wrongs ...please help

Too little information ...
Case 1. Define your servlet mappings in your web.xml file and check if you are giving the correct URL for the servlet in your form action
Case 2. Each server has a default folder for servlets. I guess you are trying to do something like this. In this case you have to look at your server documentation on the URL to be used to invoke servlets.

Similar Messages

  • Communication b/w SAP and VB .exe file - Very urgent.

    hi,
      I am currently in a project implementing SAP for a cement manufacturing company. Here we have a VB .exe file which takes parameters and return values. now we need to connect this to application to SAP R/3 to pass data to that application and access the data from that .exe file.
    Note: we don't have any source code for that vb .exe file its a third party software.
    Its an very urgent one....
    please guide me how to do it with all steps.
    Any material please pass to [email protected]
    Thanks in advance.

    form grosswt .
      refresh itab3.
      clear itab3.
       Executing VB EXE file to get the weight from weigh bridge
      call function 'WS_EXECUTE'
       exporting
          DOCUMENT                 = ' '
          CD                       = ' '
          COMMANDLINE              = ' '
         inform                   = 'X'
           cd      = 'C:\SAPWEI'
         program                  = 'C:\sapwei\MyVB.exe'
          STAT                     = ' '
          WINID                    = ' '
          OSMAC_SCRIPT             = ' '
          OSMAC_CREATOR            = ' '
          WIN16_EXT                = ' '
          EXEC_RC                  = ' '
        IMPORTING
          RBUFF                    =
        EXCEPTIONS
          FRONTEND_ERROR           = 1
          NO_BATCH                 = 2
          PROG_NOT_FOUND           = 3
          ILLEGAL_OPTION           = 4
          GUI_REFUSE_EXECUTE       = 5
          OTHERS                   = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
       Fetching Value from VB text file
      call function 'WS_UPLOAD'
       exporting
        CODEPAGE                      = ' '
         filename                      = 'C:\sapwei\w1.txt'
        FILETYPE                      = 'ASC'
        HEADLEN                       = ' '
        LINE_EXIT                     = ' '
        TRUNCLEN                      = ' '
        USER_FORM                     = ' '
        USER_PROG                     = ' '
        DAT_D_FORMAT                  = ' '
      IMPORTING
        FILELENGTH                    =
        tables
          data_tab                      = itab3
      EXCEPTIONS
        CONVERSION_ERROR              = 1
        FILE_OPEN_ERROR               = 2
        FILE_READ_ERROR               = 3
        INVALID_TYPE                  = 4
        NO_BATCH                      = 5
        UNKNOWN_ERROR                 = 6
        INVALID_TABLE_WIDTH           = 7
        GUI_REFUSE_FILETRANSFER       = 8
        CUSTOMER_ERROR                = 9
        NO_AUTHORITY                  = 10
        OTHERS                        = 11
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
      loop at itab3.
        v1 = itab3-num.
        pgrwt = v1.
      endloop.
      message 'Save Gross Weight' type 'S'.
    endform.                    " grosswt

  • Running a batch file - VERY URGENT .. help

    Hi people
    I am attempting to run a batch file from with a JSP page.
    the code i am using is:
    Runtime runtime = Runtime.getRuntime();
    Process process = runtime.exec("cmd.exe /c d:\\uploadfiles.bat");
    This jsp file is located on the c: of a webserver.
    the uploadfiles.bat is located on the d: of the webserver and the code is:
    copy d:\videos\008214?.rm d:\blah
    copy d:\images\008214.* d:\blah
    copy d:\xml\008214.* d:\blah
    cd \blah
    pkzip -es -m 008214.zip *.*
    copy 008214.zip d:\upload\008214.zip
    del 008214.zip
    If I run this batch file from a command line, it works fine, though when I try and call it through my JSP page, it doesnt do anything .. a command window just pops up for a while, and then closes.
    How can I fix this ... I need this quite quickly
    Thanks people

    1) It is O.K. that you see nothing in that console. Its output is captured by Java and is not displayed on the screen.
    In general, that console should not be visible, but actually it behaves differently according to JDK and OS versions (treat that as a feature).
    2). Look at this article:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    It it does not answer your problem, try to search the forums:
    http://search.java.sun.com/search/java/index.jsp?qp=%2Bforum%3A31&nh=10&qt=%2B%22exec%22+-%22Replies%3A+0%22&col=javaforums
    Questions about Runtime.exec() has been asked hundreds of times.
    3) runtime.exec() can execute BAT files. It is not necessary to specify that "cmd /C".

  • How to load a Properties file : Very URGENT

    I have properties file ie., SQLProperties.properties
    SQLProperties.properties
    logdetails = SELECT USERNAME AND PASSWORD FROM USER_TBL
    I want to load this file .
    I used like this
    public static Properties prop = null;
    strKey ="logdetails";
    FileInputStream fis = new FileInputStream("SQLProperties.properties");
    prop.load(fis);    // Since load parameter is file input stream
    prop.getProperty(strKey);But it is coming error while loading

    You did not initialize prop.
    //public static Properties prop = null;
    public static Properties prop = new  Properties ();
    strKey ="logdetails";
    FileInputStream fis = new FileInputStream("SQLProperties.properties");
    prop.load(fis);    // Since load parameter is file input stream
    prop.getProperty(strKey);
    [/prop]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Create a batch file "very urgent"

    i want to create a batch file that run every hour to update the user_status table fields according to the following formula
    if login = 1 and login_time status = 0 then login =3

    Write this statement into a text file and name it as
    say test.sql
    UPDATE user_status
       SET login = 3
    WHERE login = 1
       AND login_time = 0;Then write a script in UNIX as following
    $vi test_script.ksh
    !# /bin/ksh
    sqlplus `@test.sql`save it
    write a crom job for every hour.
    Codes not tested...
    Hope this helps
    Ghulam

  • About XLIFF translation File Very urgent

    Dear all ,
    I am trying to translate the error messages in the APEX using the file XLIFF
    I did the following :
    1-Map your primary language application to a translated application
    2-Seed and export the translation text of your application into a translation file.
    3-Translate text identified in translation file.
    4-Apply your translation file and publish.
    but it didnt display the translation for the messages,so I opened the XLIFF file and i saw all the messages in the application inside the file but it is not translated,
    so i changed it manually from the file itself then i exported the translation file into the application and i publish it ..
    but it didnt make any effect to the application i checked the file itself it is changed there but it doesnt make effect on the application ...
    actually i need to change the file manually from the OS not from the application coz it will not show all the component of the file ..
    Thanks in advance
    Regards
    Ahmed ......

    Hi,
    SAP BC and SAP NetWeaver are based on different technologies: SAP BC is based
    on webMethods’ proprietary Integration Server, whereas SAP NetWeaver is based
    on open standards, such as BPEL4WS (business process execution language for
    web services). Therefore, only parts of an SAP BC implementation, such as XSLT
    mappings, can be migrated to a solution based on SAP NetWeaver. Any custom
    programming based on SAP BC, such as SAP BC flow language, is unlikely to be
    reusable in the SAP NetWeaver context.
    The basic steps in the back-end systems are:
    • Defining the logical systems
    • Maintaining the ALE distribution model
    • Maintaining partner profiles and EDI ports
    • Maintaining RFC destinations
    The basic steps in the SAP XI system are:
    • Maintaining the System Landscape Directory
    • Configuring the IDoc adapter
    • Maintaining the receiver determinations, interface determinations, and
    interface agreements
    • Maintaining the communication channels
    The type of scenario to migrate typically has an impact on the communication channels only.
    >>>how to migrate from BC to XI in this kind of scenario. Will i use RFC and File adapters in my XI to configure the same?
    Yes , for RFC communication you need to use the RFC adapter as you know in BC you need to create the connections and you can also test you RFC and BAPI and also you can check what XML string is coming in return. So i guess that XML you can use in XI also. Also you can use file adapter.
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • Create text files-very urgent

    how can i create a text file using 'comma' as delimiter.moreover table is having
    around million records,i want to create a sy for eg.about 10 thousansd.is it a
    time consuming process.Pls help me

    Using SQL*Plus to format the output is easiest way
    set colsep ,
    set lines 1000
    set pages 1000 -- or you can use pages 0 to suppress the column headings
    spool output.txt
    select * from emp where rownum < 10
    spool off
    EMPNO,ENAME ,JOB , MGR,HIREDATE , SAL, COMM, DEPTNO
    7369,SMITH ,CLERK , 7902,17-DEC-80, 800, , 20
    7499,ALLEN ,SALESMAN , 7698,20-FEB-81, 1600, 300, 30
    7521,WARD ,SALESMAN , 7698,22-FEB-81, 1250, 500, 30
    7566,JONES ,MANAGER , 7839,02-APR-81, 2975, , 20
    7654,MARTIN ,SALESMAN , 7698,28-SEP-81, 1250, 1400, 30
    7698,BLAKE ,MANAGER , 7839,01-MAY-81, 2850, , 30
    7782,CLARK ,MANAGER , 7839,09-JUN-81, 2450, , 10
    7788,SCOTT ,ANALYST , 7566,19-APR-87, 3000, , 20
    7839,KING ,PRESIDENT, ,17-NOV-81, 5000, , 10
    You can play around with your SQL and column data format to how you want
    Cheers
    Dave

  • Using a standard infoobject as a reference infoobject ???very urgent!!

    hi guys,
    i have to develop a report. so now here my requirement is that i have to display the fields in the report from an ods. Here there is one standard infoobject extracted from r/3 and is been used as a reference object for one zfield. Now the requirement is in such a way that i have to use the same infoobject's medium txt to display the details in another zfield. so the usage of the infoobject comes twice here. Now can anyone explain me how to solve the problem.
    (same standard infoobject is used to refer two different zfields to display the data in the reporting in two different fields.
    thanks
    rani

    Dear Rani,
        Reference field means, reference objects wont contain any master data. Same master data available for all reference objects.
    Ex: Standarad object : std_1 and based on this 2 reference objects(Ref_1 & Ref_2) created. Same master data(Data of main object: std_1) will be used for all three objects.
          So you can use ony of the objects based on your requirement. you will get same text for same key.
    http://help.sap.com/saphelp_nw04/helpdata/en/ff/f470375fbf307ee10000009b38f8cf/content.htm
    Hope it Helps
    Srini

  • Duplicate javascript references appearing in HTML files

    Every time I run Generate | Primary Layout (Webhelp) on my Robohelp projects, I see duplicate references to a number of Robohelp built-in javascript script files in the head section of my HTML files.  For example:
    <script type="text/javascript"  lange="javascript1.2" src="whmsg_nc.js"> </script>
    <script type="text/javascript"  lange="javascript1.2" src="whmsg_nc_1.js"> </script>
    <script type="text/javascript"  lange="javascript1.2" src="whmsg_nc_1_1.js"> </script>
    <script type="text/javascript"  lange="javascript1.2" src="whmsg_nc_1_1_1.js"> </script>
    Also, there are duplicate references to breadcrumbs javascript and writeIntopicBar(0) javascript at the end of each HTMl file.
    I have to manually remove all the duplicate references, but they keep coming back after I run generate.  Is there a setting I missed somewhere or am I not setting up the projects correctly?
    Thanks!

    Rick may be training so I'll pop in.
    I don't think Rick is saying all the items should not appear, rather that some should not and others should not be duplicated. I think Rick is saying that some should not appear (the WH stuff) and the others should not be duplicated. The likely reason is, as stated, that you have  imported an output file so Rh has them from both when you created the output and now that you are generating again.
    When you open the source topics in your project, are you seeing red squares appearing? If you are then that further supports Rick's theory.
    Perhaps this link to Rick's site will help.
    http://www.robowizard.com/RoboWizard/NewProject.htm#MonthlyScry/062004.htm
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Servlet for plain HTML files? (i.e. not JSPs)

    Hello,
    I have a webapp that includes plain-old HTML files (in a WAR) and a servlet that executes and then dispatches the request to a plain-old HTML file.
    When this runs I get this error:
    500 Internal Server Error
    Cannot get request dispatcher for path foo/bar.html
    I am not sure what the problem is, but I think it may be that this is an HTML file (as opposed to a JSP file), and my OC4J instance is not configured to handle HTML files.
    So, my question is: How do I configure OC4J to handle plain HTML files?
    In config/global-web-application.xml I see several servlets, one for JSPs, one for CGI, for SSI, for Perl, for PHP.... but how do I handle just HTML?
    Thanks,
    Otis

    Hello Steve,
    I think this exception may explain what I'm seeing:
    java.lang.ClassNotFoundException: introduction.videos._tasks__welcome
         at oracle.jsp.runtimev2.JspClassLoader.loadClass(JspClassLoader.java:758)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at oracle.jsp.runtimev2.JspPageInfo.getInstFacade(JspPageInfo.java:167)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:451)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:542)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:304)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    So, it looks like OC4J is using a JspServlet and JspClassLoader to try to load:
    _introduction._videos._tasks__welcome.class
    However, that "_tasks__welcome" is not a Java class - it is a regular .html file that lives in my WAR file as:
    tpri/introduction/videos/tasks_welcome.html
    So it looks like I have to tell OC4J not to try to load .html files as JSPs and treat them as plain HTML files that they are. Is there a way to do this with OC4J? (9.0.4.0.0)
    Thanks,
    Otis

  • Response of a servlet -- a html file

    does anyone know how to do this...
    after processing the clinet request, servlet will return a path of html file that will open in the clinet side..
    if possible tell me the way to do it without jsp bcoz i don't know jsp.

    i have not tried what u have said..anyway thanks.but i have done it another way.and its working fine also..
    out.println("<SCRIPT>window.location.href=\"/redirect.html\" </SCRIPT>");
    piyush

  • Including  a servlet code within an html file

    I have an html file which should include the contents of a servlet. The html and
    servlet are reside on different webservers, otherwise I would have used JSP.
    I cant use JSP here. hope u will provide me a solution as soon as possible

    The best way of doing this would be to make the html page a jsp and use the jstl c:import tage.
    If it must be an html you could use the IFrame tabe:
    <html>
    <head>
    </head>
    <body>
    <IFRAME SRC="http://www.yahoo.com" WIDTH="800" HEIGHT="600" scrolling="auto" frameborder="0"></IFRAME>
    </body>
    </html>

  • Deploying Servlet with HTML file on Tomcat

    Hi ,
    I created a servlet and an html file. The html file accepts user data and passes it to servlet.
    I want to deploy these two files using Tomcat server. Please tell me a sure procedure for deploying both files.
    Regards,
    ap.

    First of all its better to make a jsp rather than one HTML and a servlet but anyhow in order to deploy it first build your project and create a war file which should contain your HTML and servlet and the web.xml.
    Then place this war file inside the webapps folder of tomcat.Start the tomcat and hit your HTML on the browser....

  • Calling HTML file from servlet and vice versa...

    i have got few questions..
    1- if a site is made in HTML then what should be used to put user login functionality in it, servlets or jsp or other option(specify)?
    2- im trying to do with servlets, so when im calling doPost method from HTML page and sending data, everything working fine but because of this the page refreshes and the HTML coding get lost, so how can i stop that from happening if possible, like showing the same page with messege = "Logged in".
    3- how can i call an HTML page from servlet?
    4- how can i send data from servlet to HTML page?

    that i m aware of, but when a servlet is called then the page will refresh n it will display the things that you have mentioned in the servlet file n not the things that u have mentioned in HTML file, n the page will be blank if u have not mentioned any HTML coding in servlet file.
    so i need to knw how to call back that prev HTML file so that the things i want to display can be displayed, i knw the same can be done by adding the HTML code in servlet file but i would like to know if there is any way to call back the HTML file.

  • 404 file not found ,for servlets in a web app but not for html files

              Hi everybody ,I have this web app on weblogic 7 .The application
              works file with Tomcat 4.0 but on WebLogic server 7,I am getting
              404 not found for all the servlets ,although weblogic is serving
              the html files without any problems
              

    Create a subdirectory called 'classes' and copy your servlet class file
              to the 'classes' dir.
              mydomain/applications/
              DefaultWebApp/
              WEB-INF/classes.
              Modify the web.xml file located in the mydomain/applications/
              DefaultWebApp/
              WEB-INF/ directory
              <web-app>
              <servlet>
              <servlet-name>
              myServlet
              </servlet-name>
              <servlet-class>
              package.name.myServlet
              </servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>
              myServlet
              </servlet-name>
              <url-pattern>
              servlet-url-pattern
              </url-pattern>
              </servlet-mapping>
              </web-app>
              Start the default WebLogic Server.
              Call your servlet from a Web browser with the following URL:
              http://localhost:port/servlet-url-pattern
              servlet-url-pattern is the value of the <url-pattern> element that you
              defined in the web.xml file.
              prakash wrote:
              > Hi everybody ,I have this web app on weblogic 7 .The application
              > works file with Tomcat 4.0 but on WebLogic server 7,I am getting
              > 404 not found for all the servlets ,although weblogic is serving
              > the html files without any problems
              

  • Servlet filter is not protecting html files

    Hi All,
    I am using Iplanet web server 6.0 SP4 with JDK v1.3.1_06. I am able to protect the JSP page using the servlet filter. But when I try to access the html files then filter is not getting invoked. The content of web-apps.xml is given below :-
    <web-app>
    <filter>
    <filter-name>TestIntercepto</filter-name>
    <filter-class>testinterceptor</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>TestInterceptor</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    </web-app>
    Can you guys tell me the reason ?

    I don't know much about IPlanet but with Apache/Tomcat it is possible to configure Apache to serve static content from a web application (eg: non-JSP pages) which would mean that Tomcat was never able to intercept the request for the page in the first place. Just a though.

Maybe you are looking for

  • How to find list of all iMessage devices

    I have been an apple user for many years and recently had a disturbing occurrence.  I stopped receiving some of my texts messages for the past month or so and when I searched all of the devices in my household, I was shocked to find that my daughter'

  • HP Pavilion 15 Notebook PC 15-p001TX. Not able to run or update NVIDIA GeForce.

    I purchased  HP Pavilion 15 Notebook PC 15-p001TX on 29-08-2014. Product details : 4th gen Intel i5-4210U Processor(1.7 GHz) 4GB RAM NVIDIA GeForce 830M 2GB Graphics Source :- Pavilion 15 Notebook, 15-p001TX product details Issue : A week back I saw

  • Load balancing with multi datasource

    Hi, I have created two data sources and created a multi data source with those with "Load-Balancing" set as algorithm. I have two kinds of urls where I can use those links to test the load balancing 1. survey page which will take only 2 sec to submit

  • Can I change the arrow direction in the slider

    I am using system slider on the front panel. The default arrow point to the left side. Can I change it to point to right side. Thanks,

  • Sequence with leading zeros

    Hi, I have a column SRL_NUM with datatype varchar2(4 char).I have 3000 records in this table and want to make SRL_NUM like 0001,0002,0003 etc.It should increment but entire 4 characters should be filled.How do i do this? Thanks.