Losing info after a & on a String url = request.getParameter("refurl");

Hi...
Wnen I am passing information.... like this....
http://127.0.0.1:8080/forumoracle/forum_login.jsp?refurl=http://127.0.0.1:8080/forumoracle/forum_view.jsp?catid=2&threadid=4
I seem to be losing the information after the amperstand.. and not sure why..
String url = request.getParameter("refurl");
So when I print out the url string.. I only get this...
http://127.0.0.1:8080/forumoracle/forum_view.jsp?catid=2

You can't redirect to a new window from the server end
you have to make the decision at the client when you
click the link. All a web server does is receives a
request, and sends back a response.
The decision about where to display that response is
up to the browser. (ie does it replace current
content, put into a new window etc etc)
You can use the target attribute on links and forms to
specify it from your HTML page, but once the
link/button is clicked you are committed.While this is all true for JSP that doesn't care about the UI, JavaScripting makes it possible to open new windows, but it is lacking in some respects for my use. I am facing two issues:
a)how to give a URLEncoder.encode string to JavaScript's window.open() legibly, and
b) how to close a window opened with a JavaScript after a download of a file
In both instances, there is ergonomics.

Similar Messages

  • Newbie request.getParameter(String) issue

    I'm having an issue setting a boolean value in a bean based off a string from request.getParameter(). I've created a small example to illustrate what I want to happen:
    testForm.jsp:
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        <title>testForm</title>
      </head>
      <body><form method="POST" action="testWork.jsp">
          <input type="hidden" name="hiddenTest" value="1"/>
          <input type="submit" name="submitTest" value="Submit"/>
        </form></body>
    </html>testWork.jsp:
    <jsp:useBean id="test" scope="session"
                 class="thistestapp.testClass"/>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        <title>testWork</title>
      </head>
      <body>
      <%
      out.print("<p>" + request.getParameter("hiddenTest") + "</p>" );
      // Great it's sending "1"
      test.setTestB(request.getParameter("hiddenTest"));
      //So when I set this in the bean I should get true
      out.print("<p>" + test.getTestB() + "</p>" ); 
      //False? Not nice!!
      test.setTestB("1");
      //Alright there must be an issue with my code in the bean, so hardcode a
      //"1" in.  I should still get false.
      out.print("<p>" + test.getTestB() + "</p>" );
      //True?? I hate you.
      %>
      </body>
    </html>testClass.java:
    package thistestapp;
    public class testClass {
        private Boolean testB;
        public void setTestB(String testB) {
            if ( testB == "1"){
               this.testB = true;
            else{
               this.testB = false;
        public Boolean getTestB() {
            return testB;
    }So, I want when the bean is sent a "1" from the form to set the bean value to true. I however can't get that to happen. I'm sure there's something I'm missing.
    TIA.
    Joe

    ? if ( testB == "1"){
    Standard beginner's error. If you want to test if two strings contain the same text, use the equals() method. Like this:if ( testB.equals("1")){Your code tests whether the two sides of the == operator refer to the same object. It's possible and likely for two different strings to contain the same value, which is what you are really interested in.

  • How to see the wait events info. after excute a select query

    Hi
    How to see the wait events info. after execute a select query. Are there any parameter to set for this option?
    And also wanna see the follwing info. in trace file. For this what are the parameters I have to set right?
    SELECT * FROM emp, dept
    WHERE emp.deptno = dept.deptno;
    call   count      cpu    elapsed     disk    query current    rows
    Parse      1     0.16      0.29         3       13       0       0
    Execute    1     0.00      0.00         0        0       0       0
    Fetch      1     0.03      0.26         2        2       4      14
    Misses in library cache during parse: 1
    Parsing user id: (8) SCOTT Regards
    Arpitha

    $ sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Apr 20 15:29:33 2011
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> SHOW PARAMETER dump
    NAME                                 TYPE        VALUE
    background_core_dump                 string      partial
    background_dump_dest                 string      /user/oracle/app/oracle/admin/
                                                     orclsb/bdump
    core_dump_dest                       string      /user/oracle/app/oracle/admin/
                                                     orclsb/cdump
    max_dump_file_size                   string      UNLIMITED
    shadow_core_dump                     string      partial
    user_dump_dest                       string      /user/oracle/app/oracle/admin/
                                                     orclsb/udump
    SQL> ALTER SESSION SET EVENTS='10046 trace name context forever, level 12';
    Session altered.
    SQL> SELECT * FROM emp WHERE deptno=20;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
        DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-80        800
            20
          7566 JONES      MANAGER         7839 02-APR-81       2975
            20
          7788 SCOTT      ANALYST         7566 19-APR-87       3000
            20
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
        DEPTNO
          7876 ADAMS      CLERK           7788 23-MAY-87       1100
            20
          7902 FORD       ANALYST         7566 03-DEC-81       3000
            20Now
    $ pwd
    /user/oracle/app/oracle/admin/orclsb/udump
    $ ls -ltr|tail -5
    -rw-r-----   1 oracle   oinstall     622 Apr 20 11:35 orclsb_ora_949.trc
    -rw-r-----   1 oracle   oinstall     651 Apr 20 11:35 orclsb_ora_976.trc
    -rw-r-----   1 oracle   oinstall    1982 Apr 20 11:35 orclsb_ora_977.trc
    -rw-r-----   1 oracle   oinstall    1443 Apr 20 15:29 orclsb_ora_1251.trc
    -rw-r-----   1 oracle   oinstall  279719 Apr 20 15:30 orclsb_ora_1255.trc
    $ tkprof  orclsb_ora_1255.trc  orclsb_ora_1255.txt
    TKPROF: Release 10.2.0.2.0 - Production on Wed Apr 20 15:32:17 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    $ ls -ltr|tail -5
    -rw-r-----   1 oracle   oinstall     651 Apr 20 11:35 orclsb_ora_976.trc
    -rw-r-----   1 oracle   oinstall    1982 Apr 20 11:35 orclsb_ora_977.trc
    -rw-r-----   1 oracle   oinstall    1443 Apr 20 15:29 orclsb_ora_1251.trc
    -rw-r-----   1 oracle   oinstall  279719 Apr 20 15:30 orclsb_ora_1255.trc
    -rw-r--r--   1 oracle   oinstall   26872 Apr 20 15:32 orclsb_ora_1255.txtThis orclsb_ora_1255.txt contains the required information.

  • QSUF (Query string url filter) and SQL Server reporting services report viewer parameters

    Hi,
    this is my issue:
    I have a SQL Server reporting services web part on a page with a report with 1 parameter, lets say it's a client list
    Then i have a QSUF that will be used to filter the clients list through the URL
    However, once i connect the filter and the report viewer web part, the parameter goes away and is no longer accessible
    I'd like to somehow keep the parameter visible, in case there is no parameter sent through the URL, i would like the user to be able to choose a client from the parameter drop down list
    I saw that there is a "send empty if no values are passed" option, but i can't seem to get this working properly and i don't know if this option will make the parameter visible again
    Any help would be appreciated
    Thanks.

    Hi,
    According to your post, my understanding is that the query string url filter web part not worked well with SQL server reproting services web part.
    Did you use the Wiki page layout in your environment?
    You can change the page to a web part page, then check whether it work.
    There is a similar thread for your reference.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/4d7584e3-8e1a-48bf-9346-32f8cb480dd1/query-string-url-filter-web-part?forum=sharepointgeneralprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • I cannot find my contact info after moving to iCloud, i cannot find my contact info after moving to iCloud

    i cannot find my contact info after moving to iCloud, i cannot find my contact info after moving to iCloud, i'm using PC

    Please try clearing cache and cookies. If that doesn't help you can try disabli9ng add-ons and see if it help. [[Safe Mode]] is to disabled add-ons.

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • Deadlock detected...without any info after"Information on the OTHER waiting

    i got ORA-00060: Deadlock detected.
    My trace file is as the follow:
    Current SQL statement for this session:
    UPDATE APPLSYS.FND_FORMULA_PARAMETERS SET PARAM_NAME_FRPAR = :B5 , DESC_PARAM_FRPAR = :B4 , TYPE_FRPAR = :B3 , INOUT_FRPAR = :B2 WHERE FRML_FRML_ID = :B1 The following deadlock is not an ORACLE error. It is a
    deadlock due to user error in the design of an application
    or from issuing incorrect ad-hoc SQL. The following
    information may aid in determining the deadlock:
    Deadlock graph:
    ---------Blocker(s)-------- ---------Waiter(s)---------
    Resource Name process session holds waits process session holds waits
    TX-00050018-00002c3f 28 501 X 28 501 X
    session 501: DID 0001-001C-00000459     session 501: DID 0001-001C-00000459
    Rows waited on:
    Session 501: obj - rowid = 0000CAD7 - AAAMrXAAFAAAGIQAAE
    (dictionary objn - 51927, file - 5, block - 25104, slot - 4)
    Information on the OTHER waiting sessions:
    End of information on OTHER waiting sessions.
    As you see there isn't any info after *"Information on the OTHER waiting sessions:"*
    what is the cause of this deadlock?

    user13344656 wrote:
    i got ORA-00060: Deadlock detected.
    My trace file is as the follow:
    Current SQL statement for this session:
    UPDATE APPLSYS.FND_FORMULA_PARAMETERS SET PARAM_NAME_FRPAR = :B5 , DESC_PARAM_FRPAR = :B4 , TYPE_FRPAR = :B3 , INOUT_FRPAR = :B2 WHERE FRML_FRML_ID = :B1 The following deadlock is not an ORACLE error. It is a
    deadlock due to user error in the design of an application
    or from issuing incorrect ad-hoc SQL. The following
    information may aid in determining the deadlock:
    Deadlock graph:
    ---------Blocker(s)--------  ---------Waiter(s)---------
    Resource Name          process session holds waits  process session holds waits
    TX-00050018-00002c3f        28     501     X             28     501           X
    session 501: DID 0001-001C-00000459     session 501: DID 0001-001C-00000459
    Rows waited on:
    Session 501: obj - rowid = 0000CAD7 - AAAMrXAAFAAAGIQAAE
    (dictionary objn - 51927, file - 5, block - 25104, slot - 4)
    *Information on the OTHER waiting sessions:*
    *End of information on OTHER waiting sessions.*-----------------------------------------------------------------
    As you see there isn't any info after *"Information on the OTHER waiting sessions:"*
    what is the cause of this deadlock?I believe that what you are seeing is termed a self deadlock. Such a deadlock could be caused by an autonomous transaction.
    Take a look at the following Asktom thread:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1528515465282
    In the above thread, search for: August 24, 2004 - 9am Central time zone
    Read down to at least the comment that was posted on: September 21, 2004 - 2pm Central time zone
    Charles Hooper
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Having problems creating PDF from website with query-string URLs

    I have a website that I would like to create a PDF from. I am using the Create -> PDF from Web Page..., selecting the site's home page, and capturing 2 levels, with "stay on same path" and "stay on same server" checked in order to limit the scope of the crawl.
    Where the pages are at example.com/foo/ and example.com/foo/bar/, this works fine. However, where the pages are at example.com/foo/ and example.com/foo/?p=1, the page represented by the query string URL is not converted to the PDF.
    This is a problem, given that the site I want to archive as a PDF uses query strings for most of its pages.
    I have been able to individually convert a single query-string-based page into a PDF using this method, but doing this for every page on the site would be almost impossible given the sheer number of pages on the site.
    Is this a known issue? Is there a workaround other than separately capturing each page (which would be prohibitive effort)?
    I have tried this in both Acrobat Pro X and Acrobat Pro 9 for Mac, with the same results.

    Remember, Acrobat is a 32-bit application and as such cannot access all that 'extra' stuff.
    Be well...

  • GetConnection(String URL) vs. (String URL, String user, String password)

    Hi,
    would have a question referring to the documention at http://docs.oracle.com/cd/E11882_01/appdev.112/e13995/oracle/jdbc/OracleDriver.html where the forms of getConnection are described.
    I would like to convert from using a signature that takes the URL, user name, and password as separate parameters to using a signature that takes the URL, user name, and password all as part of a URL parameter.
    While I was able to successfully connect to my database using the form getConnection(String URL, String, user, String password); I am not able to achieve the same when using getConnection(String URL).
    Here are the code snippets, maybe someone can point out the reason why the second approach is not working?
    approach 1 - working fine
    String driver = "oracle.jdbc.driver.OracleDriver";
    try {
              Class.forName(driver);
              } catch(java.lang.ClassNotFoundException e) {
              String connectionURL = "jdbc:oracle:thin:@localhost:1521:PMT";
              String pgUser = "\"James.Smith@000\"";
              String pgPwd = "\"js\"";
         try {
                   Connection conn = DriverManager.getConnection(connectionURL, pgUser, pgPwd);
    approach 2 - error: java.sql.SQLException: The Network Adapter could not establish the connection
    String driver = "oracle.jdbc.driver.OracleDriver";
    try {
              Class.forName(driver);
              } catch(java.lang.ClassNotFoundException e) {
    String connectionURL = "jdbc:oracle:thin:\"James.Smith@000\"/\"js\"@localhost:1521:PMT";
         try {
                   Connection conn = DriverManager.getConnection(connectionURL);
    Thanks a lot in advance
    Kind regards
    Thomas

    Let me get this clear.
    You want a login dialog.
    Some program calls the dialog and waits untile user respond
    once the user press ok or cancel it reutrn the users input to the caller.
    You can do this directly using JFrame
    but you can do it wil JDialog if you use it as aModal dialog.
    it will look like this
    class LogInDialog  extends JDialog implements ActionListener{
       String value;
       public LogInDialog(){
          setModel(true);
        // This is what you invoke
        public String loadDialog(){
            setVisible(true);
            return value;
        public void actionListener(..... e){
            if (e.getSource() == bCancel)
               value = null;
            else if (e.getSource() == bOk)
               value = //generate the string
            dispose();
    }

  • My string URL is too long and my servlet don't work.

    I need to call servlet from my web page but it does not work because My string URL is too long (appear message in my web "server not found"), exists a way to solve this?

    It's good that you have a solution. But your solution suggests that your original problem was not that the URL was too long, since you are still using GET. Probably it was something else. But at least you have a solution.

  • How do I retrieve my backup info after my phone is stolen

    how do I retrieve my backup info after phone is stolen

    What info?
    You should be syncing calendars and contacts with your computer regularly.  They will be in whatever program that you sync.
    You should be importing all pics talen with iphone to your computer regularly as you would with any digital camera.  They will be wherever you put them.
    You should be transferring any itunes purchases made on your iphone to your computer regularly.  They should be in itunes.
    You can redownload some itunes purchases in some countries:
    http://support.apple.com/kb/HT2519

  • Problem using the setPage(String url) of JEditorPane

    Hi all !
    I'm developping a text file generator which generates a text file and use a viewer to display the content of this text file.
    The first time, it works correctly, it displays the text file content but the others times it doesn't work correctly, the first text file content remains displayed.
    It seems that the setpage(String url) method doesn't work correctly.
    Does anyone know this problem ?
    In advance, thanks a lot.
    Best regards,
    Farid.
    Here is the code of the viewer:
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.lang.*;
    public class ViewerQCM extends JPanel {
         private JPanel panelSouth;
         private JLabel titreLabel;
         private JButton genererQCMButton;
         private JEditorPane editorPane;
         private JScrollPane scrollPane;
         public ViewerQCM() {
              JFrame frame = new JFrame("G�n�rateur de QCM");
              setLayout(new BorderLayout());
              panelSouth = new JPanel();
              panelSouth.setLayout(new FlowLayout());
    titreLabel = new JLabel("G�n�rateur de QCM", SwingConstants.CENTER);
              editorPane = new JEditorPane();
              editorPane.setContentType("text/plain");
    editorPane.setText("Cliquer sur le bouton \" G�n�rer QCM \" ");
              editorPane.setEditable(false);
              genererQCMButton = new JButton("G�n�rer QCM");
              genererQCMButton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
              GenerateurDeQCM.getInstance().init();
              GenerateurDeQCM.getInstance().generateQuestionnaire();
                        try {
    editorPane.setPage("file:" + AccesBase.getString("generateur.QCM"));
                        catch (IOException ex) {
                             ex.printStackTrace();
    LogFile.getInstance().write("Exception *** IOException caught in constructor ViewerQCM() ***");
                   LogFile.getInstance().write(ex.getMessage());
                   LogFile.getInstance().flush();
              scrollPane = new JScrollPane(editorPane);
              add(titreLabel, BorderLayout.NORTH);
              add(scrollPane, BorderLayout.CENTER);
              panelSouth.add(genererQCMButton);
              add(panelSouth, BorderLayout.SOUTH);
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.getContentPane().add(this);
    frame.pack();
    frame.setSize(500,600);
    frame.setVisible(true);
         public static void main(String args[]) {
              new ViewerQCM();
    }

    hi,
    there is some problem with JedtorPane when you update the page. Image or not updated all the time because the buffer keep the old image and does not update it. The problem is that class got to much protected field so you cannot change nothing. It is a bug since Two years and no body as correct it.

  • Possible fix for OS X 10.5.7,  losing connection after sleep, restart

    Possible fix for OS X 10.5.7, Airport, losing connection after sleep, restart, or cold reboot.
    Issue: (For OS X 10.5.7 on iMac5,1, Intel Core 2 Duo)
    =============================================
    - After sleep, restart, cold reboot, even though cannot connect to Internet, but the AirPort bars are still full, as if connected.
    - Losing Internet connection after sleep, restart, cold reboot.
    Possible Fix:
    1.Open Network Preference, click on the Location drop down list > Edit Location... > click on the wheel button > Duplicate Location.
    a)Select this newly setup location; Use Diagnostic button to connect to the internet. Select Network or enter WEP password if necessary.
    b)Test to make sure you can connect to a web page.
    c)Go to sleep & wake up.
    d)This time, the Airport bar will start to show correctly. Before, it will always be full even when not connected. Now there will be no bars or grey out when not connected.
    2.On the left hand side of the Network Preference Window, there is a list of services, such as Airport, build-in ethernet, built-in FireWire, bluetooth, etc.
    a)Click on the wheel button on the bottom of the service list; select Set Service Order...; move Airport to the top of the list.
    b)Delete any services which you are sure that you are not going to use, such as Bluetooth, etc.
    3.Pick one of the locations mentioned in #1, and make it sure it is connected. If not, use Diagnostic button. If you have to select Network or enter WEP password to connect, make it so.
    a)Check to make sure you can connect to a web page.
    4.Go to sleep & wake up. The Airport bar should be filled up quickly. Try to connect to a web page.
    5.Restart computer. Test a web page.
    6.Shut down & Start computer. Test a web page.
    7.When everything is working fine, you can delete the extra location that you created in step #1.
    8.Click the lock on the left lower corner of the Network Preference window to safeguard the setting.

    If my assessment is correct, the LIDE 200 driver is version 14.8.1 and dated 26-Sep-2008. It is possible that the driver will not work with the latest version of OSX. I would advise that you contact Canon and ask them the question.
    (Removed link because of the way Flash drives the Canon site).
    It is not uncommon (though irritating) that devices no longer work when an OS is upgraded. One has to ask the question if (or why) the driver was not written in such a way as to be OS version independent.
    Chris
    I spoke to Canon over here in Australia. Not helpful at all. In fact they were about as useful as an ashtray on on motorcycle. Having said that the tech seemed to think that there would be an update soon. But that is assuming that Canon are aware that there is a problem with that Scanner under OS X 10.5.7.
    Message was edited by: 2point5

  • HT1386 Is it possible to download a friends iTunes without losing info/pics etc that are on my phone?

    Is it possible to download a friends iTunes with out losing info already on your phone?

    Nope - if you do that you will erase the contents of your phone and replace with the contents of your friends.

  • HT1369 how to retreive lost iphone info after sync

    anyway to get back lost iphone info after sync? ie contacts, pics etc.

    All of this should be on your computer.  Just sync it back.

Maybe you are looking for

  • Trying to order but something is wrong

    Hi peeps, Recently moved address and had a ton of problems with a home move order so ended up having to close my old account and set up a new account that I can see attached to my "My BT" page along with my new account. Been up and running on standar

  • SelectOneChoice in Table

    Hi, I need to have a selectOneChoice in a table. I am using ADF 10.1.3.0.4, I simply did drag and drop of the item from DataControl and Set the property of valuepassthru and autosubmit. Code is as follows. <af:selectOneChoice value="#{row.SecInspStat

  • Need to reinstall, having problem. Design Suite Premium 5.x

    Downloaded 3.74 of 3.76 GB of reinstallation file for Design Premium Suite 5.1, then download stopped, won't let me resume, gives error message of "You don't have permission to access the re. . ." It took over 12 hours to get that far. Do I have to s

  • WRT54G no internet default gateway

    My WRT54G was working fine until my TiVo couldn't find my router anymore.  I got the message "Unable to locate gateway".  I logged onto 192.168.1.1 and my internet default gateway was 0.0.0.0.  I have reset the router many times, but the gateway addr

  • Applet PagePlayer noinited---Help

    Hi, When I open one training web pages, I faced some problems, showing "Applet PagePlayer noinited" in IE status hints. Who can help me ? Should I intall one PagePlayer ? If yes, can you provide me a URL for me download. Many Thanks Java Plug-in 1.5.