Redirect page with POST method in JSTL

how to redirect page with POST method in JSTL.
below is the code that i make, but the page redirected with GET method,
so, the URL shown as http://localhost:8080/tes2/coba2.jsp?nama=saya
how to hide the parameter, so it didn't show at the URL..??
anybody help me..??
server1 -> coba1.jsp
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
<title>coba1</title>
</head>
<body>
<c:url value="http://localhost:8080/tes2/coba2.jsp" var="displayURL">
  <c:param name="nama" value="saya"/>
</c:url>
<c:redirect url="${displayURL}"/>
</body>
</html>server2->coba2.jsp
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
<title>coba2</title>
</head>
<body>
<c:forEach items="${param}" var="currentParam">
        <li><c:out value="${currentParam.key}" />
            = <c:out value="${currentParam.value}" /></li>
      </c:forEach>
</body>
</html>

There are other two way communications methods as well. One such would be:
Server1Page1: Take response with parameters.  Use HttpURLConnection to make a request to DataInputServlet
              on Server2 and send the parameters there with a POST operation
Server2DataInputServer: Takes request with data in it and starts a new session.  Puts the data into the session and
              returns the session id to the requester
Server1Page1: Reads the response from the DataInputServer (the session id) and generates a sendRedirect to
              Server2's display page using the session id.  Server1Page1 is now done.
Server2Page1: Gets a request from the client with the session id, and pulls the parameters out of the session.  Then
              can continue as normal.Server2Page1 can also do a quick refresh to itself not using the session id as well, which will keep the URL visible by the client relatively clean.

Similar Messages

  • Call OAF page with post parameters

    Hi,
    From a custom OAF payment screen, on button click, I'm opening a third party website in the same window.
    Once payment is done, third party will send me conf num back as the background process (user is still in third party website).
    For this post back purpose, I have created a simple OAF page and given the OAF url to third party.
    https://xxx-dev:85/OA_HTML/OA.jsp?page=/xxx/oracle/apps/xx/webui/PostbackPG&confNum=
    However, third party refused to use this url as it is a html get. They send return values (conf num) only by html post as security measure.
    Is it possible to use OAF page to get post requests? If yes, please let me know how to call OAF page with a post and how to get values in PR of CO.
    Thanks
    Prabhu

    Any ideas please!

  • How to navigate to a page with POST?

    Hi,
    I have an APEX page with a combobox (or radio buttons) where the user selects a value and by pressing the submit button the application is supposed to navigate to a new URL. The combobox (or radio button group) items are associated to Discoverer URLS and I would like the application to call one or an other URL based on the value selected by the user. The reason for wanting to use POST for this is that I would not like to expose the link, since it has a password parameter in it.
    Tamas

    Peter,
    I know, but I have no other idea, how I could resolve this. DBA do not want to see hundreds of Discoverer user created in the database. I have to authenticate users via APEX (calling Microsoft Active Directory using the built in LDAP package) and then I have to navigate them to the appropriate Discoverer enabled Oracle user. This seemed to be the less painful solution.
    These are simple end users, and reports are not that sensitive to justify more effort than described above.
    Tamas

  • Problems with post-method in weblogic-server 6.0

    Hello,
              I tried to implement a servlet in Visual Cafe working with weblogic 6.0.
              As I used the get-method it worked fine, but as I used the post-method
              I got the following java.lang.IllegalArgumentException:
              bad URLMatchMap path:''
              Does anybody know about this error and where I would have to set the
              path-variable. I have already registered the servlet in web.xml
              Thanx for your help
              Thorsten
              

              Try installing SP1. In SP1 a bug regarding POST using HTTPS has been fixed. Check
              the bug id 041234 in this link
              http://edocs.bea.com/wls/docs60/notes/bugfixes2.html#1073617
              Shiva.
              "Raju" <[email protected]> wrote:
              > Hi,
              >>
              >> We are using Weblogic server 6.0 with out service pack 1.0.
              >>
              >> I am having problem with Https POST, i am using port 7002. and when
              >i use
              >> https post servlet hangs for lot of time. But when i use Https using
              >GET,it
              >> works fine.
              >>
              >> Did any one face the problems.
              >>
              >> Thanks in Advance.
              >>
              >> Raju
              >>
              >
              >
              >
              

  • Send the fields of a form with POST method

    I have a form based on a table, used to insert news. The problem is that I have to send the fields of the form to another aplication when I push the INSERT button, but I have to send them using the POST method.
    I tried to insert code in the event of the INSERT button to do that, but I think it uses the GET method and the other application doesn't receive anything.
    Thank's.

    FWIW, the usual explanations in regards to this are wrong more often that they are right.
    For example, the Acrobat License Agreement says nothing about emailing extended documents or posting extended documents on a web site, but rather simply deploying them.
    Also, it only mentions instances of an extended document in relation to how many the licensee may extract information from if the document was deployed to more than 500 recipients and returned to the licensee.
    If there are 500 or fewer recipients, the licensee may extract information from an unlimited number of instances of an extended document.
    George

  • Geting values in a form with post method

    heloo all
    hi
    i am creating a website, in my website i am developing a discussion forum
    now i am stucked ....
    in the discussion forum there is a reply option for all discussions
    exatly the way it has for this java technology forum and when one clicks the reply ,a html form comes (same as in this case) with a topic text box and a message text area
    now my problem is i want the topic text box to be filled with the topic of the discussion
    but since the method of the form is post it cannot take any values
    can any one give a solution
    thanks 4 ur time

    Hi,
    As the user clicks on the reply link, associate the topic parameter or the topic name with it in the hyperlink.
    Like :
    http:\\localhost:8080\jspdemo.jsp?topic_no=<<topic_no>>&any_other_parameter=<<parameter>>
    Now, according to your coding perspectives, you can make jspdemo.jsp as a jsp to access the topic name from the database given the topic no. Or, the topic name can directly be associated as a parameter, which can be send to the form jsp page. But using jsp is necessary.
    Hope this helps.
    Regards,
    Deepa

  • Accessing Java webservice (XML over http) via WCF or HTTP adapter with content-type and authorization HTTP headers with POST method

    Hi Team,
    I need to access Java web service which is simple service and accepts and returns XML over HTTP. No credentials are needed to access the service. We need to pass following two HTTP headers (Content-Type and Authorization) along with XML request message:
    <GetStatus> message is being constructed in the orchestration and URI is constant to access.
    Which adapter shall I use to get the response back? I tried using WCF-WSHttp with Security Mode = Transport, and different options of client credential types but every time, error returned stating:
    System.Net.WebException:
    The HTTP request is unauthorized with client authentication scheme 'Basic'. The
    authentication header received from the server was 'Basic realm='.
    Authentication failed for principal Basic. Message payload is of type:
    String 
    In Fiddler, request looks line following
    POST <https://URL/GetServiceReopnse HTTP/1.1
    Content-Type: application/xml
    Authorization: Basic cmVmU3RhdHN2Y19kgeRfsdfs=
    Host: <Server name>
    <GetStatus XMLNS="http://server.com/.....">
    <OrgId>232323</OrgId>
    <HubId>3232342323</HubId>
    </GetStatus>
    MMK-007

    First, you should not use the HTTP Adapter because it's been deprecated and replaced by WCF.
    Start with the WCF-Custom Adapter and select the customBinding.
    You should start with the textMessageEncoder and httpTransport and go from there.

  • HELP!!! Wierd CF 9.02 issue when "to many" form fields are posted in "post" method

    So we just installed cf9.02 64 bit on all brand new windows server 2003 machines and migrated all code over and we have run into the wierdest (and very dead on the water) issue, any form posting to a cf templae with a "large" amount of fields using method = "post"  barfs, works fine with method = "get" or with a smaller amount of fields.  Here are some "basic" examples I pulled out of our app: 
    https://dev1.mystudentsprogress.com/testposting/smallform.html --> this is using method = "post" and works fine with a small number of fields, click save and it calls a cf template that simply says "index.cfm here" 
    https://dev1.mystudentsprogress.com/testposting/formget.html ---> this is using method = "get" and also works fine, click save  and it calls a cf template that simply says "index.cfm here" 
    https://dev1.mystudentsprogress.com/testposting/formpost.html --> this is using method = "post" and it barfs, click save and you get an error 500 page  And once this happens the "next" call for even the succesfull pages returns a blank page i.e. go here: 
    https://dev1.mystudentsprogress.com/testposting/smallform.html and click save No go here again and click save: 
    https://dev1.mystudentsprogress.com/testposting/smallform.html 
    ...there is nothing in any of the CF logs indicating any kind of errors, it just flat barfs on forms with post method and a large amount of fields, clearly a MAJOR issue as our app has lots ot screens with lots of fields!!

    You might investigate the postParametersLimit and postSizeLimit values in your server's neo-runtime.xml file.  I suspect you'll need to increase the values for those two settings.  Remember to back up this file before making any changes. You will need to restart the CF server to apply any changes made to the settings in this file.
    See the CF 9.0.2 release notes for more information: http://helpx.adobe.com/coldfusion/release-note/coldfusion-9-0-update-2.html

  • Problems joining Wi-Fi networks that require viewing a redirect page in iOS 8.1.1? Check your "Auto-Login" setting.

    Are you having problems joining previously used Wi-Fi networks that require you to view a login or redirect page (say to accept Terms of Use) first?  The problem could be your Auto-Login Wi-Fi network setting.
    I found numerous cases where I could not access in-store Wi-Fi networks (Nordstrom was one), hotel networks or in fact networks where you had to first view a Terms and Conditions page or where you had to login via a web form.
    These were all networks I had used before.
    This appears to be due to the "Auto-Login" setting assuming that once you (re)join a previously known network you can just go ahead and use it without further action. When the iOS device receives an error trying to use the network, it silently drops the Wi-Fi association.
    If this is happening to you, follow these steps:
    1) Go to Settings -> Wi-Fi
    2) Select the network you want to join
    3) When a check-mark appears next to the SSID, press the "i" button on the right hand side
    4) Set Auto-Join however you want, but shut off the Auto-Login switch
    5) Now attempt to use the network and you should be presented with the usual redirect page with terms you must accept or where you must login to use the Wi-Fi network in question
    This cleared up the issue for me everywhere I had previously been having issues.

    Just let me get one thing straight...you don't change don't do this for the PC you have your router plugged in to?
    "For Vista:
    1. Open Control Panel, Network and Internet, Network and Sharing Center, Manage Network Connections
    2. If Wireless, Right click on your Wireless Network Connection, otherwise, Right click on Local Area Connection and click Properties
    3. Highlight Internet Protocol Version 4(TCP/IPv4)
    4. Click Properties
    5. Tick Use the Following IP Address and enter the IP you want to use for that PC. I would start at 192.168.0.100(D-Link) and work your way up on each additional device. The second device would be 192.168.0.101, the 3rd, 192.168.0.102 and so on. Like I said, different brands of routers use different IP's, so it could be 192.168.1.100 and so on, so you will need to know the IP address of your router first.
    6. Subnet Mask is 255.255.255.0 on all pc's and devices
    7. Default Gateway is 192.168.0.1(D-Link) or whatever your router's IP is on all pc's and devices
    8. Tick Use the Following DNS Server Address and enter 192.168.0.1(D-Link) or whatever your router's IP is and click OK.
    9. You will need to do this on all Vista Pc's"

  • HTTP Receiver adapter with post

    Hello,
    I have following scenario.
    XI (http receiver adapater) -
    > 3rd party web based application.
    The 3rd party application expects XI payload to be part of URL with POST Method.
    When HTTP receiver adapter sends request to 3rd party application, the URL looks like as follows.
    http://myserver:6789/myapplication/name1=value1&name2=value2&.....&name27=value27
    I looked at HTTP receiver adpater document on SDN. I see some attributes such as headerfiled1, headerfiled2..... headerfield6 and urlfield1....urlfield6. I have about over 25 fields to be passed with URL.
    Now I have following questions.
    1. How to make XI payload as name value pairs and part of URL.?
    2. I think the default for http adapater is GET, How to configure http adaper to use POST?
    I appreciate your help.
    Thank you,
    Balaji

    > 1. How to make XI payload as name value pairs and part of URL.?
    You should create the whole URL in a user defined function in mapping.
    > 2. I think the default for http adapater is GET, How to configure http adaper to use POST?
    HTTP adapter (and SOAP adapter) use HTTP POST. GET is not supported.
    Regards
    Stefan

  • A page with a post method form is not opening in PageViewer web part

    Hi,
    I wanted to display a page in the Page Viewer web part. So, i gave the URL of the page in the Page Viewer web part.
    The page is rendered as expected. 
    Now, the page has a link when clicked opens another page which has a form with a post method. The issue is the page with the form is not opening. I want the page to open and function as expected.
    Any suggestions?

    Hello Raghavendra_RT,
    Is that page on SharePoint, or is that on the internet?
    If the second is the case I would just use a hyperlink which opens in a new tab via target blank attribute:
    http://www.w3schools.com/tags/att_a_target.asp
    And you can place it in a content editor web part.
    Btw, with SharePoint 2013 you can use the Script Editor Web Part to embed a form from a source like Survey Monkey:
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/05/20/how-to-use-script-editor-web-part-in-sharepoint-2013.aspx
    - Dennis | Netherlands | Blog |
    Twitter

  • JSF and ADFBC: How to Run a method every time the page is posted back

    Hi everyone,
    I am using ADFBC and JSF in my project, and there is a page which runs the following logic: The page displays a set of radio options and a submit button. It has a total of 4 options, but they never display all at once. For example, when user enters the page for the first time, only selectItem 1 displays. When it clicks on the submit button, the page is posted back and hides the first select item, showing now the second, and so forth. The steps i did to achieve this are:
    1 - Created a method on the App Module that inserts a row corresponding to the select item choice.
    2 - Created another method that verifies which is the lastly entered row and returns a string containing the relevant attribute, for example, "E".
    3 - Created the methodAction binding to run the insertMethod (1) and retrieveMethod (2).
    4 - Created an invokeMethod executable for the retrieveMethod (2) and set the refresh property to "always".
    5 - Created a variableIterator with a variable to hold the retrieveMethod return, also setting the refresh to "always".
    6 - Lastly, bound the "rendered" attribute of each select item to the variable's value, for example "#{bindings.returnVariable == 'E'}
    When i run the page, the logic works almost fine, except for one detail: When the user clicks the button that calls insertMethod, the page is posted back, and i assume the selectItems should be re-rendered accordingly. Yet, the button click inserts the row in the DB (called insertMethod) but keeps showing the previous radio item. If i restart OC4J, when i enter the page again the radio is now correct, showing the next option.
    Do you know how can i tell the page that the model has been refreshed, so it runs the retrieveMethod again, alters the variable and the radio options without having to leave the page or restarting OC4J?
    Thanks in advance for your help!
    Regards
    Thiago Souza

    Hi all,
    It seems i have figured out the error. It was a logic mistake on my method, ADF was doing the refreshes just fine. There is another little question i wanted to ask now: I need to execute a JSF Navigation Case when the page loads, in order to navigate to another page due to a certain condition. is there any way to run some logic to redirect the request before the page has been rendered, just like the onLoad() javascript event runs on the body every time it gets loaded?
    What i'm trying to do exactly is this: When the login.jspx page runs the "success" navigation case, it goes to "page1.jspx". But before "page1.jspx" is loaded, i need to run an Application Module method to check for a certain situation; if this criteria is not met, i must run "fail" navigation case, from "page1.jspx" to "page2.jspx" without ever displaying page1.jspx.
    Is it clear enough? Can you guys give me some pointers on how to do it?
    Thanks a lot!
    Thiago

  • FIREFOX 26 changed the 'post crash' page with the list of windows and pages. It was a real HTML page with links for each page. Now it isn't (and blows)

    * You changed the page that comes up after a crash - the one which shows the windows and pages that were up before the
    crash.
    This used to be a real HTML page and it isn't any more. THis choice was pure isiocy consider how peopel used that page every day (try taking to your users for a change).
    The pages listed on that 'post crash page' used to be actual LINKS (you could right click them &
    manually open them in another tab - and most peope DID that every day). You could also (and I did this a lot) drag a second
    copy of the page, into a new tab (to keep track of all the pages I had not wanted to open)
    Now the pages are no longer links. You cannot right-click them.
    The thing in the probser is no longer a page that I can drag into a new tab.
    Roll the version back and throw this one in the bin...and have a good long talk with your developers about the definition of
    'STUPIDITIY'
    Then I try to type anything in the addres bar it is suppose to repoond with the history of old things I have types in the past, or
    search for what I type (and in some cases I think it tyes to convert it intoa URL). However it no longer does any of these
    things. When I type in the ADDRESS BAR ONLY, I do not get all of my letters to appear. I have to type into a notepad or
    into the search and to copy and paste to go to a URL. Nothing that is typed into the address bad responds normally at all
    anymore, and I am fairly certain there are no new addons on this machine at all. It does not matter which things I disable. It
    still does this. W of course points the finger back at a change to FIREFOX. I wich I could just sitct with one stable release
    forever but the MOZILLA folk thing it is best to force peopel awy from a working broswer release to a horrible one (due to it
    being out of date).
    FIREFOX 26.0 has 'issues' (ie new *features*/bugs)
    1) History is no longer accurate. My Proof? This machine is the primary one for the entire family (the only PC working). It is
    logged in with same user every time and never has its history cleared. It now January 7 so I ought to have a list of all of last
    months browing available to me.
    However, according to FIREFOX history, in all of December 2013, the entire family only went to 51 primary URL's. None of
    the official TV sites I use to get episodes are listed. None of the official movie sites I use are listed. The primary URL for
    ebay is not listed. Only 1 out of our 4 weather sites that I use (at least once a week) are listed. Only 1 of our 3 FINANCE
    sites is listed. There ought to be several; hundred root URLs listed.
    Please fix history as this change seriously "blows greasy chunks"
    PROBLEM (a stupid change in the new FIREFOX version)
    FOr a long time, after a crash you got a useful page (a real HTML page) which gave you a list of all of your last sessions
    'winwos and tabs' that were open when the browser crashed. there were certain ways of using this page that are no longer
    able to be done.
    The old method was wonderful as it had this behavior :
    *** The old method for displaying your 'Recovered Tabs' allowed you to :
    a) right click an individual item and open it in a tab without getting rid of that lovely window of your previous session of
    'recovered windows and tabs '.
    2) drag the URL for the entire window of 'recovered windows and tabs ' to a new tab (to make a second copy) so that you
    could select just a few of them to open as a group, and stil have the old list handy.
    You can no longer do either of these things. The 'recovered windows and tabs ' page no longer has links in it and can no longer be dragged, so you cant select a few of them to use, and keep the rest around for later. NOW - once you choose which pages to open the window is gone forever (can can't get a second copy).
    People used to make a copy of the page for later use (with a drag)
    we also used to open pages with a right click (which no longer functions
    This new method seriously blows big greasy chunks. A parge loss in function has occurred.
    Put things back as they were. 26 is full of terrible changes that NOBODY likes. It also has a lot of bugs (history is not reliable at all)

    (1) Firefox's built-in post-crash page has not been a real HTML page for a long time (for example, from the time of Firefox 22, see: [https://support.mozilla.org/en-US/questions/968212 Want to save LOTS of versions of "Restore Session.xht" from the "oops ..." page for later use]). If you had this working differently with Firefox 25, that might have been created by an extension.
    You can check to see whether extensions are disabled or need an update on the Add-ons page. Either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Extensions. The disabled extensions cluster toward the bottom of the list. To poll for updates, use the "gear" button above the list and choose Check for Updates.
    If you used the Reset feature (or Firefox automatically did a reset due to some problem during upgrading), you will need to reinstall missing extensions. The reset feature creates a folder on the desktop named Old Firefox Data. Do you have that folder? There may be data you can recover from it.
    (2) There are many ways for history to get cleared, both internal to Firefox and external. Could you double-check your Privacy settings?
    orange Firefox button (or Tools menu) > Options > Privacy
    * The "Firefox will" drop-down says Remember History: Firefox shouldn't be clearing history, but an add-on or external software could do it
    * The "Firefox will" drop-down says Use custom settings for history: inspect the "Clear history when Firefox closes" setting to make Firefox isn't set to clear history. Also check your add-ons and consider external software.
    Firefox normally accumulates months of history. However, some of Firefox's database sizes are based on disk space available. If your hard drive is very full, Firefox might reduce the amount of history stored.

  • My macbook pro running lion will not boot . it stays on the grey page with the cog spinning. I have tried all methods of booting to no avail. I have removed the bottom and taken out the battery and the ram . will this affect my applecare warranty.

    my macbook pro running lion will not boot . it stays on the grey page with the cog spinning. I have tried all methods of booting to no avail. I have removed the bottom and taken out the battery and the ram . will this affect my applecare warranty. I had to try myself as I'm overseas for two months and nowhere near any sort of help .

    there was a recent software update that seemed to screw HDV up.  Do some searching here over the last month or 2 and you'll find a bunch of posts and some possible solutions.
    Worst case scenario, do as Shane suggests.  But might I suggest you take a look at the user tips section of the forum.  there are some great tips on how to prevent these sorts of problems by cloning your startup drive, etc.

  • Trying to Imitate the html POST  method with an applet

    I am trying to imitate the POST method with an applet, so that I can eventually send sound from a microphone to a PHP script which will store it in a file on a server. I am starting out by trying to post a simple line of text by making the PHP script think that it is receiving the text within a POST-ed file. The reason I am doing things this way is in part because I am, for the time being, limited to a shared server without any support for servlets or any other server side java.
    The code I am trying is based in part on an old thread found elsewhere in this forum, concerning sending data to a PHP file by imitating the POST method:
    link:
    http://forum.java.sun.com/thread.jspa?threadID=530399&messageID=2603608
    someone named "harmmeijer" provided most of the answers on that thread. If that person is still around hope they take a look at this,also I have some questions to clarify what they said on the other thread..
    My first attempt at code is below. The applet is in a signed jar file and is trying to pass a text line to the PHP script in the same directory and on the same server that the applet came from. It is doing this by sending header information that is supposed to be identical to what an html form would send if it was uploading a .txt file with the line of text within it. The applet displays one button. When you press it, it sucessfully starts up the postsim method (defined at the end), which is supposed to send the info to the PHP script at the server.
    I have two questions:
    1) I know that the PHP script is starting up, because it prints out a few messages depending on what happens. However, the script does not recognize any file coming down the line, so it does not save anyting on the server, and prints out a message saying the no file was uploaded.
    Any idea what might be going wrong? I'm not getting any error messages from the applet. I've tried a few different variations of the 'header' information contained in the line:
    osToServer.writeBytes("--****4353\r\nContent-Disposition: form-data; name=\"testfile\"; filename=\"C:testfile.txt\"\r\nContent-Type: text/plain\r\n");
    The commented out line below it shows one variation (which was given in the thread mentioned above).
    2) You'll notice that I've commented out the two lines having to do with the input line:
    //InputStream isFromServer;
    and
    //isFromServer = uc.getInputStream();
    The reason is that the program crahes whenever I put the latter line in - to the extent that Opera closes down the JVM and then crashes when I tried to exit it.. I must be doing something horribly wrong there! I first tried using isFromServer = new DataInputStream(uc.getInputStream());
    becuase it was consistent with the output stream, but that caused the same problem.
    Here's the code:
    public class AudioUptest1 extends Applet{
    //There are a few spurious things defined in this section, having to do with the fact the microphone data is evenuatly going to be sent. haven't yet insterted code to get input from a microphone.
    AudioFormat audioFormat;
    TargetDataLine targetDataLine;
    SourceDataLine sourceDataLine;
    DataOutputStream osToServer;
    //InputStream isFromServer;
    URLConnection uc;
    final JButton captureBtn = new JButton("Capture");
    final JPanel btnPanel = new JPanel();
    public void init(){
    System.out.println("Started the applet");
    try
    URL url = new URL( "http://www.mywebsite.com/handleapplet.php" );
    uc = url.openConnection();
    //Post multipart data
    uc.setDoOutput(true);
    uc.setDoInput(true);
    uc.setUseCaches(false);
    //set request headers
    uc.setRequestProperty("Connection", "Keep-Alive");
    uc.setRequestProperty("HTTP_REFERER", "http://applet.getcodebase");
    uc.setRequestProperty("Content-Type","multipart/form-data; boundary=****4353");
    osToServer = new DataOutputStream(uc.getOutputStream());
    //isFromServer = uc.getInputStream();
    catch(IOException e)
    System.out.println ("Error etc. etc.");
    return;
    //Start of GUI stuff
    captureBtn.setEnabled(true);
    //Register listeners
    captureBtn.addActionListener(
    new ActionListener(){
    public void actionPerformed(
    ActionEvent e){
    captureBtn.setEnabled(false);
    //Postsim method will send simulated POST to PHP script on server.
    postsim();
    }//end actionPerformed
    }//end ActionListener
    );//end addActionListener()
    add(captureBtn);
    add(btnPanel);
    // getContentPane().setLayout(new FlowLayout());
    // setDefaultCloseOperation(EXIT_ON_CLOSE);
    setSize(250,70);
    setVisible(true);
    }//end of GUI stuff, constructor.
    //These buffers might be made larger.
    byte tempOutBuffer[] = new byte[100];
    byte tempInBuffer[] = new byte[100];
    private void postsim(){
    System.out.println("Got to the postsim method");
    try{
    //******The next four lines are supposed to imitate a POST upload from a form******
    osToServer.writeBytes("--****4353\r\nContent-Disposition: form-data; name=\"testfile\"; filename=\"C:testfile.txt\"\r\nContent-Type: text/plain\r\n");
    //osToServer.writeBytes("Content-Disposition: form-data; name=\"testfile\"; filename=\"C:testfile.txt\"\r\nContent-Type: text/plain\r\n");
    //This is the text that's cupposed to be written into the file.
    osToServer.writeBytes("This is a test file");
    osToServer.writeBytes("--****4353--\r\n\r\n");
    osToServer.flush();
    osToServer.close();
    catch (Exception e) {
    System.out.println(e);
    System.out.println("did not sucessfully connect or write to server");
    System.exit(0);
    }//end catch
    }//end method postsim
    }//end AudioUp.java

    Hi All,
    I was trying to write a signed applet that helps the
    user of the applet to browse the local hard disk and
    select a file from the same. The JFileChooser class
    from Swing is what I used in my applet. The problem
    is with the policy file. I am not able to trace the
    exact way to write a policy file which gives a total
    access to read,write,delete,execute on all the drives
    of the local hard disk.
    I am successful in signing the applets and performing
    operations : read,write,delete & execute on a single
    file but failing to grant permission for the entire
    file.
    Any help would be highly appreciated.Which policy file are you using? there might be more than one policy file.
    also, u have to specify the alias of the signed certificate in the policy file to grant the necessary priviledges to the signed applet.

Maybe you are looking for

  • Field Merging in ALV

    Hi,      How to merge the repetitive entries of field, while displaying in ALV. For example:    In my internal table ITAB has 3 fields, VBELN, POSNR, AMOUNT.  If ITAB contains 1 record say 100 with 4 line items 10, 20, 30 & 40. I need to display it a

  • How can I get a new overhead line replaced?

    Hey guys, I suscribed to BT infinity two months ago and I've noticed that everytime it rains my internet is knocked offline. Yesterday my area was battered with rain and wind all day and my internet disconnected 6 times an hour as the light kept goin

  • Servlet with async task

    I am looking for a solid example of a servlet that starts a task and then responds/forwards before the task completes (the task continues to run in another thread and may run for seconds or minutes). Then the servlet can be called again to check on t

  • Apache Listener on OAS 4.08

    i can't install and run apache properly as a third-party listener on oas 4.08. Apache seems to start, but the red-flag indicates that it isn't running. what should i do with libapadp.so? docs say i should link it when i build apache. how do i do that

  • Trouble with Leopard and Clean Access Agent

    I just got Leopard yesterday. I loaded it to my computer and all went well. Except when I tried to get on the internet (on my college campus that requires Cisco Clean Access) it wouldn't let me. I realize this is a third party software problem, but I