Use hyperlink to open another page , and pass some parameters to that page

Hi
Thank you for reading my post.
How i can use hyperlink to open another jsp file in a new window meanwhile pass some parameters to it.
for example i need something like this :
http://127.0.0.1:8080/myProj/faces/Viewmessage.jsp?messageID=10
i can not use session bean because i must open that in a new window and use hyperlink not Action
Thank you

I tried the following in the equivalent of your Viewmessage (page bean):
        ExternalContext eContext = FacesContext.getCurrentInstance().getExternalContext();
        String text = "Parameters: ";
        Iterator it = eContext.getRequestParameterNames();
        Map requestParams = eContext.getRequestParameterMap();
        while (it.hasNext()) {
            String key = (String)it.next();
            String value = (String)requestParams.get(key);
            text += "; " + key + " = " + value;
        staticText1.setText(text);That works as expected when you reach that new page via a hyper link.
The session object is also the same as in your `old' window. So be careful about synchronization!
I hope this helps.
-- Marco

Similar Messages

  • Open a web page and pass values from a java file

    Hi,
    I need to open a web page and pass values in the text boxes.
    Finally submit needs to be triggered. All this needs to be done from a java file. i.e instead of entering my values in a web page and submit, i need to do it from my java file..
    Any inputs so that I proceed in the right direction..or is there any alternate way to achive this ??
    Thanks in advance..
    Sid

    I hava found a lines of jaa that can open a URL , lets say www.net.java
    You can open it writable or not.
    It is half of the job you need.
    If you are interested.
    I am wrinting a program to print a URL , and have developed this small
    code.
    Angel Portal

  • I've installed the Adobe Reader Plug In. Yet every time I click to see a PDF, it opens another browser and it is blank. The Browser reads about:blank. How can I fix this so that PDF's open in the browser?

    I've installed the Adobe Reader Plug In. Yet every time I click to see a PDF, it opens another browser and it is blank. The Browser reads about:blank. How can I fix this so that PDF's open in the browser?

    Check your settings in Options > Applications: https://support.mozilla.com/en-US/kb/Opening%20PDF%20files%20within%20Firefox#w_check-firefox-settings
    Also see:
    *https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox
    *http://kb.mozillazine.org/File_types_and_download_actions
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

  • Model diloge button click open another diloge and close of another diloge close all model diloges.

    When user clickes on link he gets model diloge with some fields,
    when clicked OK button all values will save and user should get another diloge, and on another diloge save form will close, and that should close all diloges.
    Or we can have like on click on OK button close save values current diloge and open another one. and Another one when clicked submite close it.
    how this can be achive.
    i tried
    string pageUrl = "/siteName/_layouts/Solutionname/form.aspx?isdlg=1&ID=" + newRequestID;
    string script = @"<script type='text/javascript'>window.frameElement.commitPopup();
    var modalDialog;
    function ShowForwardDialog() {
    var options = {
    url: '" + pageUrl + @"',
    tite: 'Time Title...',
    allowMaximize: false,
    showClose: true,
    width: 440,
    height: 120 };
    modalDialog = SP.UI.ModalDialog.showModalDialog(options);
    ExecuteOrDelayUntilScriptLoaded(ShowForwardDialog, 'sp.js');</script>";
    ClientScript.RegisterClientScriptBlock(this.GetType(), "OKScript", script);
    also tried without window.frameElement.commitPopup(); but nothing seem working.

    I used 1600Mhz Corsair Vengeance RAM. You can either get it in matched sets or in single modules.
    The default system RAM is made by Samsung and also runs at 1600Mhz.
    Thinkpad W530, i7-3720QM, 1920x1080 screen, 32GB RAM, dual SSDs (Samsung 830, Crucial M4 mSATA), Quadro K2000M, 9-cell battery, DVD burner, backlit keyboard, Bluetooth, Intel 6300 wireless card

  • Get the  value and pass it to child jsp page

    Hi All,
    I want to get the attribute value from the adf table in my parent jsp page and again send it to the child jsp page.I'm very new to adf.Please any body give me a example for this.Please help me.
    Thanks in advance!

    Sorry......
    I'm using Jdeveloper 11.1.1.5 version.In my adf application i have two jsp pages.One is parent.jspx and another one is child.jspx.In my parent.jspx page i have adf table.Now i want to get the attribute value from adf table which is in parent.jspx page and i want to send that values to the child.jspx page.How can i do this.Please give me the example.
    Thanks!

  • Launching new database pages, and passing parameters to them.

    The immediate reason I am investigating databases is to
    enable me to automate my
    photo album. I have developed a layout which I like
    (see
    http://www.corybas.com/Albums/New%20Zealand_05/Main_index.htm)
    but at present the page for every photo is hardcoded. This is
    very effective,
    but also very tedious to set up, and difficult to modify. The
    part I would like
    to automate has two levels of indexes, and then the
    individual photo pages.
    Every page has three navigation arrows - a back arrow to go
    to the parent index,
    and left and right arrows to go to the preceding/following
    index or photo.
    I have a number of albums for different holidays, but they
    are linked together,
    so that effectively they all become one big album, which you
    can traverse at any
    level.
    I think I can see how to set up the necessary databases, and
    define the
    appropriate pages, but the thing I still don't understand
    (and which I don't
    think is covered in David's book, other than by buying the
    expensive Interakt
    package) is how to make the navigation arrows launch the new
    page, and pass the
    necessary parameters to it.
    I would also very much like to make the arrow keys on the
    keyboard have the same
    effect as the navigation arrows.
    I would envisage a separate page (and probably database) for
    each level. Each
    page would be passed the number of the item to be displayed,
    a pointer to its
    parent, and possibly an item number for the parent. When a
    left or right arrow
    was clicked the new item number would be calculated and a new
    page launched to
    display it. If the next page was in a different sheet, or
    even a different
    album, a new parent would also have to be calculated. These
    calculations could
    either be done before launching the new page, or in the
    preamble to the new
    page.
    Any suggestions as to how I should go about this?
    Clancy

    > I don't know how many other people are affected
    similarly, or what the
    > answer to
    > this is, but I gather that ZoneAlarm is a very popular
    product, and I
    > imagine
    > that you are as unhappy to know that potential customers
    are unable to
    > view your
    > web page correctly, as I am about mine.
    What is missing when you visit my portfolio page? The screen
    snaps?
    And how can I help you get to where you want to be before
    Christmas?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Clancy" <[email protected]> wrote in message
    news:[email protected]...
    > "Murray *ACE*" <[email protected]>
    wrote:
    >
    >>
    http://www.corybas.com/Albums/New%20Zealand
    >>----------------------------------------------------^^^^
    >>
    >>Clancy! TSK, TSK.
    >
    > Sorry! Try:
    >
    >
    http://www.corybas.com/Albums/New_Zealand_05/Intro.htm>
    >
    > I thought I had got rid of all the spaces, but the
    change of behaviour
    > between
    > MX and Dreamweaver 7 made it very difficult. I THINK
    there are none left
    > now!
    >
    >>> is how to make the navigation arrows launch the
    new page, and pass the
    >>> necessary parameters to it.
    >>
    >>In DW you would use the "Recordset Paging" server
    behavior.
    >
    > When I was working on computer viruses I became infected
    with the Brain
    > Borer
    > virus (everyone who has worked on computers for any time
    has it), and
    > there is a
    > limit to the rate at which I can assimilate new ideas. I
    would never have
    > imagined that 'record set paging' had anything to do
    with what I was
    > looking
    > for, let alone thought of searching for information on
    it. But I still
    > like to
    > understand what I am doing, and would be happier if I
    knew how to write
    > the code
    > myself.
    >
    > I currently have two new albums of photos from our last
    holidays to set
    > up. If
    > I did it the old-fashioned way it would be done by the
    weekend, but if I
    > wait
    > till I get a database setup it looks as if I'll be lucky
    to have it done
    > by
    > Christmas.
    >
    >>It would give you the ability to do something like I
    do on my portfolio
    >>site -
    >>
    >>
    http://www.great-web-sights.com/g_sites.asp
    >
    > A while ago you ticked me off for being obsessive about
    ZoneAlarm. When I
    > looked at your site there was clearly something missing.
    I turned off
    > ZoneAlarm, and the sample web page images appeared. I
    turned it on again,
    > and
    > then went through the configuration turning off one item
    at a time. Even
    > after
    > I had -- so far as I can tell -- set every setting to
    'off' it still
    > blocked the
    > images on your window. I think that when I installed it
    in the first
    > place I
    > chose the default settings.
    >
    > I don't know how many other people are affected
    similarly, or what the
    > answer to
    > this is, but I gather that ZoneAlarm is a very popular
    product, and I
    > imagine
    > that you are as unhappy to know that potential customers
    are unable to
    > view your
    > web page correctly, as I am about mine.
    >
    > Clancy

  • Everytime I open the window it keeps on reloading it self over and over again and when it's not doing that and I open another tab and try to go back to the previous tab it reloads itself....Please Help

    Every time I open a window in firefox it constantly reload itself and when I finally get it to stop and open another tab and try to go back to the previous tab it reload itself....Please Help
    == This happened ==
    Every time Firefox opened
    == About 4 months ago

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • I have currently 4.9 pages and I tried to open a document and I get a message that I have to purchase an upgrade of $19.99 is this correct?

    I have currently 4.9 pages and I tried to open a document and I get a message that I have to purchase an upgrade of $19.99 is this correct?

    You have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5/5.01 can not open Pages 5.1 files and you will get the warning that you need a newer version.
    Pages 5.1 sometimes can not open its own files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has not only managed to confuse all its users, but also itself.
    Note: Apple has removed over 95 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • Want to open 2nd tab and have it load the home page which the first tab opens.

    Want to open 2nd tab and have it load the home page which the first tab opens. The first tab opens Google's advance search, the second tab opens a blank window. I always want Google to be in a new page.
    == This happened ==
    Every time Firefox opened
    == always

    You can look at one of these extensions:
    NewTabURL : https://addons.mozilla.org/firefox/addon/2221
    New Tab Homepage : https://addons.mozilla.org/firefox/addon/777

  • Friend of mine bought movies(ITunesStore)one of the 5 devices that she could use is my Mac.She needs to use the movies on another device and for that I have to erase them,how do I do that?I deleted them but she can't still used them?How delete themsurely?

    Friend of mine bought some movies (ITunesStore) one of the 5 devices that she could use them in is my Mac. She needs to use the movies on another device and ask me for delete the conection in my laptop.  For that I erase them in Itunes, but she can't still used them? How delete the conections between my computer and her account?
    Thank you for your answer.

    Hello there, Ingridvon.
    The following Knowledge Base article provides the information you are looking for:
    iTunes Store: About authorization and deauthorization
    http://support.apple.com/kb/HT1420
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Stop the viewer having the ability to click/touch anywhere on the page and it going to the next page

    I have created a PDF with links to various pages so that it can be used on a touch screen. I need to be able to stop the viewer having the ability to click/touch anywhere on the page and it going to the next page. In Keynote you select a check box that says : "Hyperlinks only" is their something similar in PDF?

    You can upload it to a file-sharing website (Acrobat.com, DropBox, etc.)
    and post the link here, or you can send it to me privately at
    [email protected] .

  • HT1349 I'm on pages and for some reason this time, on a blank page, I cannot get the curser to show up.  Any ideas?

    I'm on pages and for some reason this time, on a blank page, I cannot get the curser to show up.  Any ideas?

    I'll guess that you've opened a page layout template which does not have a text layer, therefore no cursor. You'll need to add text boxes or shapes to type in. If you just want to write a letter or similar, close the current document & then choose a blank document from the word processing section of the template chooser.

  • How do I  take four pages on one page, and give them each their own page?

    How do I take four  images on one page, and put them on their own page?

    You need a unique AppleID for each iCloud account.  So grab some free gmail, hotmail, aol, yahoo or whatever email addresses to make five new AppleIDs.  Now, everybody make an iCloud account for themselves, and keep the existing shared AppleID and password just for use in the iTunes and App Stores.  You can also each use your own unique AppleIDs to make iMessage accounts and keep those separate as well.

  • I used to have the iPhoto application and for some reason it is now gone. Do I have to pay 14.99 in order for me to be able to have it again or is there a way I can get it back. I have a MacBook pro 10.9.5 .

    I used to have the iPhoto application and for some reason it is now gone. Do I have to pay 14.99 in order for me to be able to have it again or is there a way I can get it back. I have a MacBook pro 10.9.5 .

    Depends on what you had
    If you had iPhoto version 9.5.1 then you can reinstall from the app store under purchases
    If you had any version of iPhoto '11 then you can install for free from the App store
    If you had any earlier version of iPhoto (iPhoto '09 version 8.x.x) or older then you need to purchase iPhoto '11 version 9.x.x from the app store
    If you had iPhoto '08 (version 7.x.x) or older then you also need to download and run the iPhoto library upgraded prior to launching the new iPhoto
    LN

  • Project deleted in iPhoto 11 ver. 9.1.1 After spending three months building a twenty six page Book Project in iPhoto i added a page and later decided to delete the page. I selected the page, pressed the delete key and confirmed the delete dialog box ( i

    Project deleted in iPhoto 11 ver. 9.1.1
    After spending three months building a twenty six page Book Project in iPhoto i added a page and later decided to delete the page. I selected the page, pressed the delete key and confirmed the delete dialog box ( i didn't read, dummy) by pressing the delete button. The whole project was gone, the undo menu was grayed out and there was nothing in the iPhoto trash about my Book.
    Surly I can find this if I knew the path to find the project in a library on a back column I have of my hard drive.. Could anyone help me?

    Sorry I'm having a hard time getting this.
    If I go to my hard drive BIGMAC>Library>Application Support>iPhoto>the only thing in this folder is Themes.
    However, when I "Get Info" it's 580MB for 24,421 items. iPhoto says I have 35,977 photos. I would think the database would be into the GB for this many photos.
    If I go to BIGMAC>system>Library>I find nothing about iPhoto
    Is the iPhoto file in the Application Support the one I need to replace with my backup?
    Thanks so much for your help.
    Jack

Maybe you are looking for

  • Itunes won't work when Ipod is plugged in

    everytime the i plug my ipod into my laptop itunes freezes and its shown in task manager that itunes isnt responding. it won't update my ipod either. ive tried restoring and resetting

  • Case Insensitive filter Feature in InputListOfValues Popup

    Dear all, I had taken reference in HRSystem (the tutorial provided by Oracle) , [http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ria_application/developriaapplication_long.htm] In section "Create a Page Flow" Step 19 popup You CAN "Search for

  • Autocomplete shortcuts not working after IO6 upgrade

    I cannot get my shortcuts to work since upgrading to IOS6. Eg, Lc used to autocomplete to "luv, Carol x" Is there a way to fix it please?

  • Mapping of info-objects

    Hello Gurus, We are about to commence our new project DMS (Distributor Management System), where our secondary sales data will be brought into SAP BW and then we have an advantage of analysing them. We are now at the Blue Print stage, where we need t

  • Stored Semi-Finished In Another No Productive Plant

    Dears Experts: I have the following scene: I need to send semi-finished products manufacturing anticipatedly to be stored in another no productive plant (transference between plants) for problems to storage. Comming soon the date to manufacturing the