Interesting Problem in VA4Java: Using POST with forward(req, res)

I am trying to use POST Metod with forward(request, response) in VisualAge for java using webSphere test environment and getting an error page. Interesting thing is that if I set a breakpoint then I get the desired page otherwise an error page. However, if use GET Method everything works fine. What confuses me is that why POST method is not working without setting a breakpoint and running the code in debug mode? Does it has to do with WebSphere test environment or problem of using POST method with requrest forwarding in servelt API?

Hi there,
I am beginning in developping jsp / servlet in VAJ3.5 and Websphere Test Environment.
i manage to run the servlet properly. unfortunetely the jsp is not working properly : in my hello.jsp (this example is coming from tomcat4.0), there is a method 'request.getContextPath()'
WTE send me a message : 'method not found in interface javax.servet.http.HttpServletRequest'
Any idea hox to solve this?
VAJ3.5, WTE use JSP1.0, is it something linked to this?
Thanks to you.
Regards
Hugues

Similar Messages

  • Use Post with Reference in FV50 / FV50L?

    Is there a way to use Sample Documents (Post with Reference) in the parking transactions?  By default its only available in the Posting transactions.  Whoever replies please do not suggest account assignment templates / models as that does not meet the requirements our client is currently requesting (they do not allow for a pre-populated header).

    Hi,
    Please note that it is not possible to use post with reference function for parked documents via transaction F-65 or FBV1.
    As a alternative, pls consider using the park document function via tcode F-02/FB01.
    This will allow you to use post with reference with the parked document entered via F-02/FB01.
    I hope it answers your inquiry.
    Best Regards,
    Vanessa.

  • Problem importing a CSV file with forward slashes in a column

    I have an Excel csv file of a product database (contains about 6500 products) that contains product codes with forward slahes such as 499/1, 499/3, 499/5.
    These are different sizes of a product and as such have different prices etc.
    When I import the file into Numbers these numbers appear as 499, 166 1/3, and 99 4/5 respectively.
    What seems to be happening is that Numbers is interpreting the forward slash (/) as a divide by command and subsequently performing a calculation on that number on import and hence totally changing the value of the cell so that it is impossible to look up the price related to a product as the product code no longer exists.
    Excel can import these files with no problems, why can't Numbers treat each cell as text and leave it alone on import.
    Is there any way round this or do I have to revert to using Excel for the import of csv files.
    Thanks
    Steve

    I know I'm a bit(!) late (a year) coming to this party, but there is a simple solution, that worked for me, enclose the field in double quotes, and add a single quote before the number:
    Instead of
    499/1,"Super Widget 3",12.34
    do
    "'499/1","Super Widget 3",12.34
    In fact the single (unclosed) quote without double-quotes works as well:
    '499/1,"Super Widget 3",12.34
    I've always found it better to enclose strings with double quotes. This works on loading the file into Mac Numbers and should work with Excel too if that helps. It opens with OpenOffice 4 on the Mac too - if you select "comma" in the "Separated by" checkbox
    I can't remember where I picked this info up....
    Hope this helps someone, albeit late.
    Andy

  • Problems setting up used ipa2 with ios7 due to Find My My Ipad Feature being left on by previous owner

    Hi!! Im having problems setting up a used ipad 2.with ios7. The previous owner forgot to turn off the find my ipad feature so now its asking me for her itunes username an password. I dont have that info and i lost her phone number

    yes my friend ios 7 was already loaded on when i bought it.    The person who sold it to me left the find my ipad feature ON. I called her and she said she would be in the next day to buy it back and since i actually belived her  i threw away her phone number. i dont know what i was thinking

  • Problem accessing Infosets using Query with SQL

    Hi,
    I have Lumira desktop version 1.18.0.
    Using the Query with SQL connection, I successfully connected to SAP R/3 6. I was able to view the User Groups under CATALOG_VIEW, but it seems I cannot go beyong this point and select an Infoset. When I click on an Infoset I expect the Query pane to be populated with the SQL statement but nothing happens.
    I attached a screenshot for clarification
    Thanks
    Dany

    Hi Dany,
    A suggestion for you would be to use another client tool & check if the behavior is the same. I suggest that you use Information Design Tool (from BOE 4.1), create a connection to your ERP, then a data foundation on top of that connection and check if the behavior is the same. This way we can isolate if the problem is caused by the client tool or by the backend.
    My 2 cents
    Antoine

  • Problem trying to use replaceAll with url string

    Can anyone give me some quick advice on how to replace part of a url? I'm trying replaceAll but I'm getting errors. My code is below. Thanks.
    String value = http://localhost:8280/portal/templates/page/library.jsp?foldId=libfold245696
    String hostName = "192.168.0.1";
    value = value.replaceAll("localhost",hostName);I want to replace "localhost" with the ip address.

    Here's the replaceAll version:
    package com.cellexchange.util;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.util.Enumeration;
    import java.util.Properties;
    * Created on Nov 3, 2005
    public class UpdateExternalLinks {
        private String hostName;
        private String fileName = "/server/fvm/conf/ExternalLinks.properties";
        private static final String pattern = "localhost";
        private Properties properties;
        public UpdateExternalLinks(String hostName,String jBossHome){
            hostName = hostName;
            System.out.println("hostName: " + hostName);
            fileName = jBossHome + fileName;
            readPropertiesFile();
        public static void main(String[] args) {
            if(args.length == 0) {
                System.err.println("Usage: UpdateExternalLinks %HOST_NAME% %JBOSS_HOME%");
                System.exit(1);
            else {
                new UpdateExternalLinks(args[0],args[1]);
        public void readPropertiesFile() {
            try {
                properties = new Properties();
                properties.load(new FileInputStream(fileName));
                Enumeration propertyNames = properties.propertyNames();
                while(propertyNames.hasMoreElements()) {
                    String key = (String)propertyNames.nextElement();
                    String value = (String)properties.getProperty(key);
                    System.out.println("key: " + key);
                    System.out.println("value: " + value);
                    String newValue = value.replaceAll(pattern,hostName);
                    System.out.println("newValue: " + newValue);
                    //properties.setProperty(key,newValue);
               // writePropertiesFile(properties);
            } catch (IOException e) {
                System.err.println("Problem reading properties file");
        public void writePropertiesFile(Properties properties) {
            try {
                properties.store(new FileOutputStream(fileName), null);
            } catch (IOException e) {
                System.err.println("Problem writing properties file");
    }

  • I have perl scripts that I want to be able to run with my iplanet web server 6.0. How can I make it work in Windows NT? (Because I have no problem when I use it with Linux).

     

    Hi Melanie,
    In order to run a PERL script under Windows NT the iPlanet Web Server needs to know where to find the PERL interpreter.
    follow these steps :
    1) Make sure Windows NT knows what a .pl file is. In file Manager click on file and choose associate from the menu. Check the "files with extension" drop-down list for pl - if it exists verify that it is pathed to your perl.exe. If it is not already on the list click the "New Type" button. In the Filetype box put pl. Choose open from the Action drop-down list. In the Command box specify the full path to your perl.exe interpreter (Make sure to use short filenames, rather than long filenames.) Click the OK button. Then click the Close button in the main Associate dialog box. Double click a .pl file to test - it should automatically launch the PERL interpreter and feed it your .pl file.
    2) Create a directory to contain your .pl scripts.
    ~server_root\shell-cgi is a good choice.
    or \cgi-bin\
    NOTE: Make very sure that this directory is NOT part of the document root, it should have it's own directory (preferably at the same level of the docroot).
    3) In the Admin Server select Programs.
    4) Choose CGI directory (normally) or WinCGI directory or ShellCGI Directory depending on ur choice from the Programs menu.
    5) Put the URL Prefix you would like to map to your Shell-CGI directory into the URL Prefix field.
    6) Put the full path to your Shell-CGI directory in the Shell CGI directory field.
    7) Click OK.
    8) The save and apply changes page will display your changes and give you the opportunity to verify them. If they are correct click the Save and Apply button. If not Click the Undo button and go back to step 4.
    (9)You can then call your .pl scripts directly by referencing the directory mapping that you have just created. For example:
    http://my.server.whatever/shell-cgi/ myscript.pl
    this should work now.
    If not Pls Mail me.
    regards
    T.Raghulan
    [email protected]

  • Problem exporting JAR using Eclipse with JNIlib

    Hi all,
    I have a java application that is using an external JAR. The external JAR is coupling with a JNIlib.
    When I 'export' my application to a runnable JAR in Eclipse, the external JAR is extracted and included in my runnable JAR. However, when I execute the runnable JAR, some functions of the application is not working due to missing library. After I put JNIlib into my Java/Extension, the runnable JAR then works fine.
    I want to distribute the JAR to other people, but I can't ask them all to put JNIlib in their Java/Extension.
    Does anyone have an idea? I am a novice to Java, it took me awhile to figure out how to create a runnable JAR.
    Thank you very much.
    Eagle.

    first , it says unable to access jar file .
    upon deeper inspection i found that background processes is created behind thus the jar file been activated but the UI doesnt show up? any more idea of where my codes gone wrong? which seems perfect for me
    anyway thanks but i still .. it says unable to access jar file

  • Having problem adding citations using endnote with pages 4

    Help needed
    When I go to insert and find a quote in my endnote library and hit insert it appears as if it has done something but no quote appears in my pages document however something is in there because it moves the curser along and when I press delete it acts as if it is deleting something.......wierd.  Ive downloaded and installed the plug in and the same thing seems to work fine on my Imac.

    If all your professors are using MS Office, then I recommend you should too.  It is not realistic to think Pages will always generate word format docs the same way MS Office would have done so.

  • F-04 - Post with Clearing  problem

    HI ,
    I have some confusion
    when i enter document(RV) i gave Ex.rate on document: 0 .02700  (KRW) to THB on last month. accoring to that my local currency was = 3089614.86THB.
    when i using post with clearing on this month(F-04 ), it is showing me 31010578.78 THB.
    how this is happend? bu the latest Exchange rate was: 0.02790 (G).

    Hello,
    System gets exchange rate on clearing date. If you want to get 0 .02700, you must give RV document's date to clearing date
    Or you can use FB05 for manually entering exchange rate.
    Regards,
    Burak

  • Help on using NewObject with constructors!

    Hi,All:
    I want to create an object in a native method. The object is an instance of an inner class. The inner class has two constructors: one default and one with two arguments. There is no problem if I use NewObject with the default construtor. But if I use NewObject with the constructor taking two int arguments. The JVM crashes.
    Can anybody give me some idea what the problem is?
    Thanks!
    Tao
    Here is the native method, the inner class and error message:
    JNIEXPORT jobject JNICALL Java_Prompt_createtp(JNIEnv *env, jobject obj)
         jobject test_ttt= 0;
         jclass cls2;
         jmethodID cid;     
         jint a,b;
         jfieldID fid;
         a = 10; b = 20;
         cls2 = (*env)->FindClass(env,"LPrompt$tp;");          
         cid = (*env)->GetMethodID(env,cls2,"<init>","(LPrompt;II)V");     
    test_ttt = (*env)->NewObject(env,cls2,cid,a,b);
    // However, the following codes using default constructor works well
    //cid = (*env)->GetMethodID(env,cls2,"<init>","(LPrompt;)V");     
    //test_ttt = (*env)->NewObject(env,cls2,cid);
    (*env)->DeleteLocalRef(env,cls2);
         return test_ttt;
    // here is the inner class     
    class tp{
    int a;
    int b;
    tp(){
    a = 100;
    b = 0;
    tp(int x,int y){
    a = x; b = y;
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # Internal Error (53484152454432554E54494D450E43505001A3), pid=276, tid=640
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
    # An error report file with more information is saved as hs_err_pid276.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    #

    You are getting the constructor id on a signature that looks like:
    Prompt(Prompt p, int n1, int n2)I guess that your constructor signature is:
    Prompt(int n1, int n2)So it should ne:
    cid = (*env)->GetMethodID(env,cls2,"<init>","(II)V");Next time please paste your code between code tags exactly like this:
    &#91;code&#93;
    your code
    &#91;/code&#93;
    You may read the [url http://forum.java.sun.com/help.jspa?sec=formatting]Formatting tips for more information.
    Regards

  • Hello everyone! Did you find any problems so far using hotspots?

    Hello everyone! Did you find any problems so far using hotspots with iPhone 4?

    Just the usual ones in dealing with some routers with buggy firmware and such.
    I'm sure there have been many who have had problems, but mine has worked beautifully at a wide variety of hotspots like those at McDonald's, Starbucks and Borders.

  • Using isight with two different OS

    I have a G4 running OS10.2.8 and I want to connect to my son who has a iMac G5 running 10.4. I want to buy 2x iSight cams, one for each of us, and want to know if this set up will work.
    Thanx a bunch for any help.
    Lan

    Hello Lan,
    Welcome to Apple Discussions.
    In addition to Bill's good comments, I offer the following:
    If you currently have iChat AV 2.0 for Jaguar, you will be able to chat with your son provided he meets HIS requirements and you have broadband internet service. You can be sure about which version of iChat you have by issuing the
    b iChat > About iChat
    menu command.
    The link Bill cites shows Apple's System Requirements for iChat AV 3. This would require that you upgrade your 10.2.x system to 10.4.2
    See this page for System Requirements for iChat AV 2.1. This would require that you upgrade your 10.2.x system to 10.3.9
    Mac OS X 10.2.x originally came with iChat 1.0. iChat versions earlier than v2.0 will NOT do video. If you do not already own iChat AV 2 for Jaguar, you will need to upgrade your Mac OS to get video capability.
    At one time, Apple sold an iChat AV 2.0 upgrade for the original (non-AV) Jaguar iChat, but they stopped selling (or supporting) it in October, 2004.
    My Mac OS Panther install disks include the Panther version of iChat AV 2.0. A free iChat AV 2.1 Updater is available from Apple to bring the Panther version of iChat AV to the most current
    b Panther
    version, which offers one-to-one audio and video capability. (This is an Updater ONLY. It requires iChat AV already be installed from your Panther installer disks.)
    The only way to buy iChat AV from Apple nowadays is to buy Tiger, Mac OS X 10.4.x, which includes iChat AV 3. iChat AV 3 is capable of multi-party text and audio conferencing for those who meet the System Requirements for iChat AV 3. Tiger's Mac OS X 10.4.2 Update upgrades you to the current iChat AV 3.0.1.
    If you need more info on iChat AV, see the iChat AV Frequently Asked Questions (FAQ) or the iChat AV Discussions.
    You may also be interested in the the iSight Tips and FAQ. As implied in the How To Ensure Your iSight Is Functional FAQ, new users may want to consider buying iSight at a brick and mortar store.
    Ask for a demonstration of the very same iSight you will take home. This will let you see how easy it is to connect, let you verify that it works, and give you an opportunity to ask any questions where you can
    b see
    the responses applied.
    If you have a Mac notebook, heed the magnetic mount warning in the What Mounting Hardware is available for iSight? FAQ.
    This response has grown longer that I thought, but once both you and your son are using the same Mac OS, you can eliminate all the other possibilities described above.
    As a new user, you may be interested these suggestions for Using iSight with iChat AV.
    EZ Jim

  • Copy of attachement in Post with reference and recurring documents

    Hi Gurus,
    While using Post with reference and recurring documents, can we also copy the attachment from the source document?
    Please revert asap
    Thank You

    Hi,
    How you been able to create attachments for a recurring document at all?
    I  could not create any attachment.
    Miroslav

  • P67S-C43: Won't POST with two sticks of RAM

    Hi, my new P67S-C43 has a peculiar problem: It won't POST with two sticks of RAM. I've tried both of my sticks (2 x 2GB G.Skill Ripjaws DDR3-1600 CL9 1.5V) individually in Slot 1 and the system POSTs fine. When I insert the second stick in any other slot, the system proceeds to restart unsuccessully a couple of times and then it will not POST. Only one blue LED is illuminated. When the system is in this state I have to reset the CMOS in order to POST successfully with a single stick of RAM again, which made the problem difficult to diagnose and very annoying to troubleshoot (lose BIOS settings after every attempt with the clear).
    Any idea of when we'll see a new BIOS? Are any betas available? I'd like to see if this is a BIOS problem before RMAing it.
    Thanks.

    Quote from: HU16E on 14-January-11, 16:52:36
    Which BIOS do you now have? Current official is V1.5. It would possibly help to have a full listing of all the systems components. Work with the one RAM stick initially in the primary dimm slot, blue closest to CPU. Get the OS loaded, drivers, etc., then add the second stick in the other blue dimm slot later. I have a feeling the RAM is setting itself up wrong. Might try the manual settings of 1333 9 9 9 24 @ 1.50V's.
    The BIOS was 1.5 out of the box but it's my understanding from another thread that there have been a slew of beta BIOSs released. I'm not going to load the OS until I get this straightened out. Also, both sticks would have the same settings with one stick or two installed. I fiddled with voltage, timings, etc but it still wouldn't work when I popped in the second stick. LIke I said, after every attempt with two sticks I have to clear CMOS or it won't work again with one stick. I'm hoping to try a newer BIOS before spending more hours on this, one setting at a time.
    Also, I have a 2600K but the rest of the components are irrelevant. At one point I had everything but the CPU/fan, video card, and RAM unplugged and the mobo entirely out of the case. Still didn't work until there was only one stick.

Maybe you are looking for

  • Airport allows access to only one computer at a time

    Is there a setting which prevents internet access by more than 1 computer at a time via airport? I cannot get laptops to connect simultaneously (via airport) to the internet

  • Setting Up Photo Viewer in DW

    I have about 40 pictures that i would like to set up in DW like: Maybe a thumbnail page and then open pics to larger format when clicked.... Is there some kind of prewritten code / wizard that can help set this up?

  • Filename is not valid: d:/oracle/product/10.2.0/apex/apache/apache/images"h

    HI!, I really need help on this. I have tried multiple installs but with no sucess. Below is the copy of my marvel.conf. Alias /i/ "D:\oracle\product\10.2.0\apex\Apache\Apache\images\" AddType text/xml xbl AddType text/x-component htc <Location /pls/

  • Photosmart Plus B209a-m | Wireless Config Trouble

    For some reason i can not get my printer to connect to my AP, but i was able to connect to the wireless router. Is there any particular reason why? The only difference between the two access points is the fact that the AP does not have DHCP enabled..

  • Two files, same pantone color...Onscreen looks like two different colors?

    Recently we have been having this issue at work, We have a line of packaging that uses the same pantone color (375 C). When we go to create a new document and use that same pantone the color onscreen looks more saturated then its predecessor. The onl