Please Look into this.!! Viewing HTTP Server Response

Please consider this urgently..
How can I view the response Headers sent by the Server back to the Client??(The Client is a java application which has invoked the servlet via the URL class)
It is possible to check the client Headers with the following in your servlet code:
String contentType = request.getContent();
System.out.println(contentType);
How can I check the response headers of the server which it sends back to the client?
If on the server I say : response.setContentType("text/html");
what method I need to invoke on my client to see this content Type???
Please can any one respond..
ajay

This problem occurred to me - the applet needs to know the authorization data (ie: the user) which the servlet extracted via the request.getHeader("Authorization") method.
But if the browser obliged the servlet by demanding a user and password in response to servlet calling request.getHeader("Authorization"), one would think the browser would know the user and password.
Isn't there a way for the applet to obtain the user and password directly from the browser without having the servlet send it back via something like response.setHeader("user",user) ?

Similar Messages

  • I am using Firefox 4.0 Beta 10. It doesn't start immediately after I click on the Firefox button located in my shortcut bar. And sometimes it even doesn't open. I don't know why it occurs, so please look into this matter. Thanks!

    Whenever I click on the button of Firefox 4.0 Beta 10 located in my shortcut bar. It opens after a very long time i.e. after 5-10 minutes after I get irritated and start using Safari. And sometimes it doesn't even open. Please look into this matter. :D
    Thanks

    Try disabling hardware acceleration in your Firefox settings and see if it helps:
    From the Firefox menu, go to '''Options''' and click the '''Advanced''' panel, then select the General tab. Clear the box in front of "Use hardware acceleration when available" so that it is unchecked, then restart Firefox. ([http://support.mozilla.com/media/uploads/gallery/images/2011-01-27-04-52-31-8c9d82.png screenshot]).
    Ref: <br>
    https://blog.mozilla.com/tglek/2010/12/21/rude-surprise-startup-overhead-of-windows-font-apis/

  • Hey SHA1 & everyday is christams guys...please look into this.....same prob

    Hey....hii....
    someone solved your problem i suppose...
    I am also facing something like ur's..
    I do not have any naming prob..Its all correct...but still i am getting...
    pls Help me...
    I gotta complete this sooon....
    This is the error i am getting....
    exception
    java.util.MissingResourceException: Can't find bundle for base name LocalStrings, locale en_US
         java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
         java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:726)
         java.util.ResourceBundle.getBundle(ResourceBundle.java:576)
         HelloWorldExample.doGet(HelloWorldExample.java:39)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0 logs.
    my code is as follows+*
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * The simplest possible servlet.
    * @author James Duncan Davidson
    public class HelloWorldExample extends HttpServlet {
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response)
            throws IOException, ServletException
            ResourceBundle rb =
                ResourceBundle.getBundle("LocalStrings",request.getLocale());
            response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head>");
                String title = rb.getString("helloworld.title");
                out.println("<title>" + title + "</title>");
            out.println("</head>");
            out.println("<body bgcolor=\"white\">");
            // note that all links are created to be relative. this
            // ensures that we can move the web application that this
            // servlet belongs to to a different place in the url
            // tree and not have any harmful side effects.
            // XXX
            // making these absolute till we work out the
            // addition of a PathInfo issue
                out.println("<a href=\"../helloworld.html\">");
            out.println("<img src=\"../images/code.gif\" height=24 " +
                        "width=24 align=right border=0 alt=\"view code\"></a>");
            out.println("<a href=\"../index.html\">");
            out.println("<img src=\"../images/return.gif\" height=24 " +
                        "width=24 align=right border=0 alt=\"return\"></a>");
            out.println("<h1>" + title + "</h1>");
            out.println("</body>");
            out.println("</html>");
    }Thanks In advance
    Shruthi

    This is from Tomcat-5.5.26
    LocalString.properties can be found in servlet-api.jar.
    # Archive C:\apache-tomcat-5.5.26\common\lib\servlet-api.jar
    2008-01-28 10:05 Folder Folder META-INF
    2008-01-28 10:05 378 213 META-INF\MANIFEST.MF
    2008-01-28 10:05 Folder Folder javax
    2008-01-28 10:05 Folder Folder javax\servlet
    2008-01-28 10:05 Folder Folder javax\servlet\http
    2008-01-28 10:05 Folder Folder javax\servlet\resources
    2008-01-28 10:05 389 230 javax\servlet\Filter.class
    2008-01-28 10:05 289 185 javax\servlet\FilterChain.class
    2008-01-28 10:05 357 220 javax\servlet\FilterConfig.class
    2008-01-28 10:05 2187 916 javax\servlet\GenericServlet.class
    *2008-01-28 10:05 957 555 javax\servlet\LocalStrings.properties*
    2008-01-28 10:05 968 562 javax\servlet\LocalStrings_fr.properties
    2008-01-28 10:05 1001 584 javax\servlet\LocalStrings_ja.properties
    2008-01-28 10:05 330 206 javax\servlet\RequestDispatcher.class
    2008-01-28 10:05 473 258 javax\servlet\Servlet.class
    2008-01-28 10:05 360 215 javax\servlet\ServletConfig.class
    2008-01-28 10:05 1404 562 javax\servlet\ServletContext.class
    2008-01-28 10:05 833 381 javax\servlet\ServletContextAttributeEvent.class
    2008-01-28 10:05 318 198 javax\servlet\ServletContextAttributeListener.class
    2008-01-28 10:05 624 318 javax\servlet\ServletContextEvent.class
    2008-01-28 10:05 267 183 javax\servlet\ServletContextListener.class
    2008-01-28 10:05 940 462 javax\servlet\ServletException.class
    2008-01-28 10:05 637 432 javax\servlet\ServletInputStream.class
    2008-01-28 10:05 3155 1390 javax\servlet\ServletOutputStream.class
    2008-01-28 10:05 1381 615 javax\servlet\ServletRequest.class
    2008-01-28 10:05 944 408 javax\servlet\ServletRequestAttributeEvent.class
    2008-01-28 10:05 318 199 javax\servlet\ServletRequestAttributeListener.class
    2008-01-28 10:05 846 390 javax\servlet\ServletRequestEvent.class
    2008-01-28 10:05 267 182 javax\servlet\ServletRequestListener.class
    2008-01-28 10:05 4180 1389 javax\servlet\ServletRequestWrapper.class
    2008-01-28 10:05 733 388 javax\servlet\ServletResponse.class
    2008-01-28 10:05 2594 1000 javax\servlet\ServletResponseWrapper.class
    2008-01-28 10:05 148 120 javax\servlet\SingleThreadModel.class
    2008-01-28 10:05 1323 627 javax\servlet\UnavailableException.class
    2008-01-28 10:05 3580 1691 javax\servlet\http\Cookie.class
    2008-01-28 10:05 8125 3871 javax\servlet\http\HttpServlet.class
    2008-01-28 10:05 1420 636 javax\servlet\http\HttpServletRequest.class
    2008-01-28 10:05 3579 1098 javax\servlet\http\HttpServletRequestWrapper.class
    2008-01-28 10:05 2611 1174 javax\servlet\http\HttpServletResponse.class
    2008-01-28 10:05 3028 1011 javax\servlet\http\HttpServletResponseWrapper.class
    2008-01-28 10:05 872 427 javax\servlet\http\HttpSession.class
    2008-01-28 10:05 292 191 javax\servlet\http\HttpSessionActivationListener.class
    2008-01-28 10:05 317 208 javax\servlet\http\HttpSessionAttributeListener.class
    2008-01-28 10:05 1109 468 javax\servlet\http\HttpSessionBindingEvent.class
    2008-01-28 10:05 277 183 javax\servlet\http\HttpSessionBindingListener.class
    2008-01-28 10:05 288 195 javax\servlet\http\HttpSessionContext.class
    2008-01-28 10:05 626 321 javax\servlet\http\HttpSessionEvent.class
    2008-01-28 10:05 264 182 javax\servlet\http\HttpSessionListener.class
    2008-01-28 10:05 4391 2333 javax\servlet\http\HttpUtils.class
    2008-01-28 10:05 1450 705 javax\servlet\http\LocalStrings.properties
    2008-01-28 10:05 1568 787 javax\servlet\http\LocalStrings_es.properties
    2008-01-28 10:05 1534 739 javax\servlet\http\LocalStrings_fr.properties
    2008-01-28 10:05 2236 856 javax\servlet\http\LocalStrings_ja.properties
    2008-01-28 10:05 1271 732 javax\servlet\http\NoBodyOutputStream.class
    2008-01-28 10:05 5065 1751 javax\servlet\http\NoBodyResponse.class
    2008-01-28 10:05 17280 4431 javax\servlet\resources\XMLSchema.dtd
    2008-01-28 10:05 7363 2171 javax\servlet\resources\datatypes.dtd
    2008-01-28 10:05 46838 7400 javax\servlet\resources\j2ee_1_4.xsd
    2008-01-28 10:05 14511 3168 javax\servlet\resources\j2ee_web_services_1_1.xsd
    2008-01-28 10:05 10081 2377 javax\servlet\resources\j2ee_web_services_client_1_1.xsd
    2008-01-28 10:05 9178 2562 javax\servlet\resources\jsp_2_0.xsd
    2008-01-28 10:05 17810 3491 javax\servlet\resources\jspxml.xsd
    2008-01-28 10:05 16797 4379 javax\servlet\resources\web-app_2_2.dtd
    2008-01-28 10:05 31096 7596 javax\servlet\resources\web-app_2_3.dtd
    2008-01-28 10:05 36887 6698 javax\servlet\resources\web-app_2_4.xsd
    2008-01-28 10:05 27914 5655 javax\servlet\resources\web-jsptaglibrary_2_0.xsd
    2008-01-28 10:05 3805 1453 javax\servlet\resources\xml.xsd
    # Total Size Packed Files
    # 312064 84328 67
    Edited by: everyday.is.Christmas on May 2, 2008 6:47 PM

  • Please look into this.. where i have to write at end of

    HI all ,
    i am getting this output in my report.
    the first column is the division (D.C) and the next couln is the no of consumer(no of business partner in a perticular dc (this is the count of dc))
    314200     0
    314201     1     
    334300     0
    i got the value of the first two digit of dc in a variable.
    now when it change from 31 to 33 i want to get the value of no of count .
    but the atatement AT END OF IS NOT WORKING ...
    Can anyone just look at the code and let me where i have to change..
    REPORT  ZDISTRICT_CUST_AUCSALES.
           LINE-COUNT 40(4).
    ******************************************************TABLE DECLARATION
    TABLES: /BIC/AUCSALES00,
            /BIC/TCOKEY.
    *******************************************************DATA DECLARATION
    DATA:  BEGIN OF ITAB OCCURS 0,
           /BIC/COKEY LIKE /BIC/TCOKEY-/BIC/COKEY,
           TXTSH      LIKE /BIC/TCOKEY-TXTSH,
           END OF ITAB.
    DATA:  BEGIN OF ITAB2 OCCURS 0,
           BILL_DATE   LIKE /BIC/AUCSALES00-BILL_DATE,
           /BIC/COKEY  LIKE /BIC/AUCSALES00-/BIC/COKEY,
           BPARTNER    LIKE /BIC/AUCSALES00-BPARTNER,
           END OF ITAB2.
    DATA:  COUNT TYPE I,
           COKEY TYPE I,
           COKEYNO(2) TYPE C,
           BILDT TYPE I.
    DATA: C TYPE I VALUE 2.
    *DATA: /BIC/COKEY TYPE /BIC/AUCSALES00-/BIC/COKEY.
    SELECT OPTION FOR DATE SELECTION IN THE SELECTION SCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK DATE WITH FRAME TITLE TEXT-001.
         SELECT-OPTIONS: S_BILDT FOR /BIC/AUCSALES00-BILL_DATE OBLIGATORY default sy-datum.
    SELECTION-SCREEN END OF BLOCK DATE.
    *********************************************************INITIALIZATION
    *INITIALIZATION.
    FORMAT INTENSIFIED ON COLOR = C.
    write:/  'PROCESSING DATE:',    20 SY-DATUM,
         125 'TIME           :',   130 SY-UZEIT.
    WRITE:/  'USER NAME      :',    20 SY-UNAME, 138 ' '.
    WRITE SY-ULINE.
    WRITE: / 'D.C'                   , 12 SY-VLINE,
             'NAME OF D.C'        , 36 SY-VLINE,
             'BILL DATE'             , 53 SY-VLINE,
             'NUMBER OF CONSUMER' , 74 SY-VLINE,
             'REMARKS'            ,105 SY-VLINE.
    write sy-uline.
    *ULINE AT (100).
    FORMAT INTENSIFIED OFF.
    *END-OF-PAGE.
    WRITE:/40 'PAGE NO:', SY-PAGNO.
    *****************************************************AT SELECTION-SCREEN
    SELECT BILL_DATE
           UP TO 1 ROWS
           INTO (/BIC/AUCSALES00-BILL_DATE)
           FROM /BIC/AUCSALES00
           WHERE BILL_DATE IN S_BILDT.
    ENDSELECT.
    IF SY-SUBRC <> 0.
          WRITE:/ ' NO DATA FOUND ON THIS DATE'.
          EXIT.
    ENDIF.
    START OF SELECTION
    SELECT /BIC/COKEY TXTSH from /BIC/TCOKEY into table itab.
    IF NOT ITAB[] IS INITIAL.
    SELECT  BILL_DATE
             /BIC/COKEY
             BPARTNER
             FROM /BIC/AUCSALES00
             INTO CORRESPONDING FIELDS OF TABLE ITAB2
             FOR ALL ENTRIES IN ITAB
             WHERE /BIC/COKEY = ITAB-/BIC/COKEY
             AND BILL_DATE IN S_BILDT.
    SORT ITAB BY /BIC/COKEY.
    ENDIF.
    ***********************CHECK WHETHER THE DATA RETRIVE SUCESSFULLY OR NOT
    IF SY-SUBRC NE 0.
      WRITE:/ 'THIS DATE DOESNOT CONTAIN ANY DATA'.
    ENDIF.
    ************************************************************DATA DISPLAY
    LOOP AT ITAB.
    MOVE: ITAB-/BIC/COKEY+4(2) to COKEYNO.
    READ TABLE ITAB2 WITH KEY /BIC/COKEY = itab-/BIC/COKEY.
    IF SY-SUBRC = 0.
           SORT ITAB2 BY /BIC/COKEY.
           DELETE ADJACENT DUPLICATES FROM ITAB2 COMPARING /BIC/COKEY.
    ENDIF.
    IF ITAB2-/BIC/COKEY = ITAB-/BIC/COKEY.
           SELECT COUNT( DISTINCT BPARTNER )
                  INTO COUNT
                  FROM /BIC/AUCSALES00
                  WHERE /BIC/COKEY = ITAB2-/BIC/COKEY and
                  BILL_DATE IN S_BILDT.
          COKEY = ITAB2-/BIC/COKEY.
          WRITE:/ ITAB2-/BIC/COKEY,             SY-VLINE,
               15 ITAB-TXTSH,                   SY-VLINE,
               42 ITAB2-BILL_DATE,              SY-VLINE,
               55 COUNT,                    74  SY-VLINE,
                  ' ',                     105  SY-VLINE.
          WRITE:/ SY-ULINE.
      ELSE.
         COKEY = ITAB-/BIC/COKEY.
         WRITE:/ ITAB-/BIC/COKEY,                SY-VLINE,
              15 ITAB-TXTSH,                     SY-VLINE,
              51 '0' ,                           SY-VLINE,
              55 'Not Processed',              74 SY-VLINE,
                 'Data Not extracted to BW', 105 SY-VLINE.
          WRITE:/ SY-ULINE.
    ENDIF.
    CLEAR: ITAB, ITAB2.
    ENDLOOP.
    thanks in advance..

    Hi
    In this case instead of using AT END OF just create temp. which will hold in it last value of dc,every loop run, check it with new value, if it not equal - get the desired value
    only condition - itab must be sorted
    temp = 'x'. -->you need to put the first value
    loop at itab.
    if temp <> COKEYNO.
    --->your actions to get your value
    endif.
    temp = COKEYNO.
    endloop.
    OR
    you can add one more field to itab (better first) with COKEYNO
    fill itab in this field and then
    loop at itab.
    at end of cokeyno.
    endloop.
    Regards
    Yossi

  • Can you please look into this: Dblink from Oracle to postgres

    https://forums.oracle.com/message/11204905#11204905

    You posted this just 3 minutes after posting in the other forum.   This is essentially crossposting.  The other forum is probably the more appropriate one for your question.
    Patience, Grasshopper
    You posted this follow-up a mere 3 minutes after posting in the other forum
    These forums are not a chat line, and not paid support.
    Everyone here has a job for which they are paid, and this forum is not it.
    No one is responsible for monitoring it and giving a quick response. 
    Furthermore, it is a global forum.  The person with the information you seek may very well live 20 time zones away from you and was going to bed just as you posted. He will not even see your post for several more hours. 
    Your original post went up in the middle of the night for half the world.
    =====================
    Oh, and by the way, "This is not working" is totally devoid of any actionable information.  Oracle emits actual error codes for a reason.

  • May be a bug.. please look into this

    Hi,
    for ex:
    there is a table like
    desc trade;
    trade_date date
    day_high number
    day_low number
    day_open number
    day_close number
    there are many records right from trade_date 01-jan-05 to till date. If i want to query records of any perticular date returns no records, here sql query...
    select * from trade
    where trade_date = '&dt';
    No rows returned on any date enetered when i execute in oracle 9.2.0.1.0 - Production
    same query returns rows when i execute in oracle 8.0.4.0.0
    It returns records when i write the same query like
    select * from trade
    where to_char(trade_date,'DD-MON-YY') = '&dt';
    OR
    select * from trade
    where to_date(trade_date) = to_date('&dt','DD-MON-YY');
    please tell me about this.
    Thanks

    What values are you entering, and what range of values do you have on the database? '01-JUN-05' will currently evaluate to 2005 whether you use 'DD-MON-RR' or 'DD-MON-YY'.
    Perhaps you have some dates in the database that are 1905 when they should be 2005?
    It's safer to avoid two-digit years.

  • _d2d_compute_bitmap_mem_size crashing too often. Source: gfx/cairo/cairo/src/cairo-d2d-surface.cpp:1190. This was is really bugging me bad, can you please look into this?

    https://crash-stats.mozilla.com/report/index/bp-9a296328-dbce-40c7-a778-3c2392110809

    Sounds like a problem with Direct2D.
    Try to toggle some Boolean gfx.font_rendering prefs on the about:config page to disable some features and maybe set gfx.direct2d.disabled -> true to disable Direct2D.<br />
    Filter: gfx
    You can also try to disable hardware acceleration in Firefox:
    *Tools > Options > Advanced : General: Browsing: [ ] "Use hardware acceleration when available"
    *Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily if the Menu Bar is hidden.
    *Use "Firefox > Options" instead of "Tools > Options" if the menu bar is hidden.

  • I was trying to set Adobe Reader 11 as default PDF viewer on my client PCs, Please help me this. My server is windows 2012 R2 and client PCs are Windows 8.1

    I was trying to set Adobe Reader 11 as default PDF viewer on my client PCs, Please help me this. My server is windows 2012 R2 and client PCs are Windows 8.1

    Hi Krisis,
    I have found a forum where similar query was answered. Hope this helps.
    http://www.loginvsi.com/forum/support-v4/857-adobe-reader-xi-not-set-as-default-pdf-viewer -in-server-2012-r2-rds
    Regards,
    Anoop

  • I am having mac book. I order for I-boost up software for $9.99 on 5th oct 2012 installed and paid through credit card. Again on 8th oct2012 my credit card debited with $9.99 please look into matter why this amount debited ,if wrongly debited please refun

    I am having mac book. I order for I-boost up software for $9.99 on 5th oct 2012 installed and paid through credit card. Again on 8th oct2012 my credit card debited with $9.99 please look into matter why this amount debited ,if wrongly debited please refund.

    Apple deosn't respond here, just other users like you.
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html > Get iTunes support via Express Lane > iTunes > iTunes Store

  • Hi, I have tried to use FaceTime using both my Mac and iPhone, it showed it was connecting, but can't not be connected, and it will just show call failed. could you please look into it? thanks

    Hi, I have tried to use FaceTime using both my Mac and iPhone, it showed it was connecting, but can't not be connected, and it will just show call failed. could you please look into it? thanks

    There is an issue with facetime at the moment http://www.idownloadblog.com/2014/04/17/facetime-connectivity-issues-reaching-ma ny-ios-users/

  • I currently have wireless, but i am looking into this to maybe have faster wireless. if this is hooked up, will the existing wireless/ethernet to pcs still function without changing them to use the airport express?

    i currently have wireless, but i am looking into this to maybe have faster wireless. if this is hooked up, will the existing wireless/ethernet to pcs still function without changing them to use the airport express?

    let me fix this a bit. i currently have dsl and a 2wire wireless router, and i currently do not have one or a mac. im getting one for when i start college and this is a must if it will improve my internet. but i now connect wirelessly to the 2wire router. if this is set up, will the current 2wire wireless still be useable?

  • Cofirmation #214861700.  Would you please look into it?  Thanks.

    Please look into my refund for cancellation.  Confirmation #214861700.  Thank you.
    Pat Reger

    I have called Adobe  three times and each time have been told the refund will be or has been refunded or "we are looking into it", but so far, the $29.88 still has not been credited to my Visa
    account..  It was deducted on 2/09/15.  I think that is more than enough for it to be "looked into".   Please do more than check in to it.  Please refund the amount.  Thanks very much.
    Pat

  • Since I have updated my iOS to iOS 7 I'm unable to save the photo attachments from email. It this a bug? Please look into the issue.

    Unable to to save photo attachments from emails in ios7

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Please look at this problem and give me solution

    hi all,
    iam getting this problem when i run th server
    javax.servlet.UnavailableException: Missing configuration resource for path /WEB-INF/struts-config.xml
    so, i am unable to run jsp, servlets using struts in tomcat.
    pls solve this problem
    --> i have a servlet file namd Form.java
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class Form extends Action {
    public ActionForward execute(ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    ServletOutputStream sos=response.getOutputStream();
    String fname=request.getParameter("firstname");
    String lname=request.getParameter("lastname");
    String dob=request.getParameter("dob");
    String uid=request.getParameter("uid");
    String pwd=request.getParameter("pwd");
    sos.println("First Name = " + fname +" "+lname+"<br>");
    sos.println("DOB = " + dob);
    sos.println("Username = " + uid);
    sos.println("password = " + pwd);
    String target = new String("success");
    return (mapping.findForward(target));
    -->jsp file named form.jsp
    <html>
    <body>
    exe on httpservlet
    <form action="http://localhost:8080/satish/Form">
    enter firstname <input type= "text" name="firstname"><br>
    enter lastname <input type="text" name="lastname"><br>
    enter DateofBirth <input type="text" name="dob"><br>
    enter userid <input type="text" name="uid"><br>
    enter password <input type="text" name="pwd"><br>
    <input type="submit" value="register">
    </form>
    </body>
    </html>
    and i have web.xml in F:\projects\tomcat\webapps\satish\WEB-INF
    with below contents
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>struts example</display-name>
    <description>
    Mycode
    </description>
    <!--GENERATED_JSPS-->
    <!-- JSPC servlet mappings start -->
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class> org.apache.struts.action.ActionServlet </servlet-class>
    <init-parameter>
    <name>application</name>
    <value>ApplicationResources</value>
    </init-parameter>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>action </servlet-name>
    <url-pattern>/satish/Form</url-pattern>
    </servlet-mapping>
    <!-- JSPC servlet mappings end -->
    </web-app>
    and struts-config.xml file in F:\projects\tomcat\webapps\satish
    with below contents
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd" >
    <struts-config>
    <action-mappings>
    <action path="/form" type="Form" input="/form.jsp" >
    </action>
    </action-mappings>
    </struts-config>
    and run the tomcat server
    typed http://localhost/satish/form.jsp
    given the input and clicked submit button and i got
    this
    HTTP Status 404 - /satish/Form
    type Status report
    message /satish/Form
    description The requested resource (/satish/Form) is not available.
    Apache Tomcat/5.0.5

    double post:
    http://forum.java.sun.com/thread.jspa?threadID=684573&tstart=0

  • I am getting the following error in DAC, can anybody look into this ?

    Hi All
    I am getting the following error in DAC while Registering Informatica Services & repository services in DAC ?
    This is for RS(Repository services):
    ======================
    Failure connecting to "BIA_RS"!
    ANOMALY INFO::: Error while pinging informatica repository server
    MESSAGE:::F:\DAC\bifoundation\dac\log\pmrepConnect.log (The system cannot find the file specified)
    EXCEPTION CLASS::: java.io.FileNotFoundException
    java.io.FileInputStream.open(Native Method)
    java.io.FileInputStream.<init>(FileInputStream.java:106)
    java.io.FileInputStream.<init>(FileInputStream.java:66)
    com.siebel.etl.functional.ReadFileToBuffer.readFileToBuffer(ReadFileToBuffer.java:39)
    com.siebel.analytics.etl.infa.interaction.PmrepInvoker.pmrep(PmrepInvoker.java:100)
    com.siebel.etl.gui.data.StaticDatabaseCalls.testRepositoryServer(StaticDatabaseCalls.java:959)
    com.siebel.etl.gui.data.StaticDatabaseCalls.testInformaticaServer(StaticDatabaseCalls.java:890)
    com.siebel.etl.net.ExecutionPlan.getInformaticaStatus(ExecutionPlan.java:275)
    com.siebel.etl.net.ClientMessageDispatcher$WorkerThread.mBeanRequestInformaticaStatus(ClientMessageDispatcher.java:433)
    com.siebel.etl.net.ClientMessageDispatcher$WorkerThread.consoleMessage(ClientMessageDispatcher.java:224)
    com.siebel.etl.net.ClientMessageDispatcher$WorkerThread.run(ClientMessageDispatcher.java:144)
    This is for IS(integration services):
    ====================
    Failure connecting to "BIA_IS"!
    Can anybody please provide the solution for this ?
    Regards
    Srini
    Edited by: Srini on Feb 26, 2012 4:58 AM

    Check weather Your able to Ping Data warehouse, might be your ETL is not able to ping DW.

Maybe you are looking for