Selecting from 2 pages using button HELP!!

i have 2 buttons in my application. i need to open 2 different jsp pages from 2 butttons. i.e if a user clicks on 1 button he should be redirected to 1 page and if he clicks another button he should be redirected to another page.
help please

Whats so hard about it?
Put them in two different html links.
If you are submitting a form, have an onclick event that changes the form action attribute.
ie <input type="submit" onclick="this.form.action='page1.jsp' ">
Or alternatively give the buttons two different names/values and dispatch the request at the server end
if (request.getParameter("button1") != null){
  RequestDispatcher rd = request.getRequestDispatcher("page1.jsp");
  rd.forward(request, response);
else if (request.getParameter("button2") != null){
}Cheers,
evnafets

Similar Messages

  • How to connect one page using button and by link in BSP

    how to connect one page using button and by link in BSP

    hi,
    use on 'onclick' functionality.
    1. In layout, onclick = 'NEXT_PAGE' of the button
    2. Capture the event in onInputprocessing,
    DATA: event_id TYPE REF TO  cl_htmlb_event.
    case event_id.
    when 'NEXT_PAGE'.
                navigation->goto_page( 'URPAGE URL' ).

  • JDev- how to add data from postgres using buttons in a JClientEmptyForm

    hi! can anyone help me about my problem.. im working on a system that needs to use buttons for adding entries... can anyone give me some reference code that can help me figure out the solution to my problem.. i really appreciate if u answer immediately...thankz..

    Open the file, parse it, populate an ArrayCollection or XMLListCollection, and make the collection the DataGrid dataProvider:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Filesystem_08.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=12_Using_Regular_Expressions_01.ht ml
    http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_6.html
    http://livedocs.adobe.com/flex/3/langref/mx/collections/ArrayCollection.html
    http://livedocs.adobe.com/flex/3/langref/mx/collections/XMLListCollection.html
    If this post answered your question or helped, please mark it as such.

  • Running gif animation and a random image output from an html button, HELP!!

    Trying to click (onClick) an animated gif image of an on/off switch to start a second animation which is located on a different location on the web-page (a 7-frame animation of a generator with moving parts) immediately followed by a random image selection function placing an image in a 3rd location on the page (next to the generator image). The random images are supposed to look like the result of the generator animation---the item that “pops out” of the generator.
    We thought the process to achieve this would be an “OnClick” on the on/off switch-animated-gif to start two javascript functions (generato animation function & random image function).
    To further complicate matters, we are doing this website in iWeb. We’re using iWeb SEO Tool to add the javascript to the header and HTML snippet in iWeb to place the HTML code. Not sure we’re actually doing the snippet right though---is it supposed to relate to the images---or is it separate? When the gifs are place on the iweb page, they work in the browser upon page load---the “on-click” & the random image function are NOT working...so we know we’ve done something(s) wrong.
    We’re thinking that we’re probably missing some code that describes where the 3 different image-spots are on the page (image #1 is the on/off switch gif, image#2 is the generator gif, image#3 is the generator output.png)....or just aren’t coding the string of functions correctly---or maybe our strategy for achieving this is just no correct (?).
    Here is the code we have tried that didn’t work. We desperately need a solution quickly and are open to any/other ideas for how to accomplish this. THANKS YOU in advance for your help!!!:
    script language = JAVASCRIPT>
    <!-- Hide script from old browsers
    function gif_animation(){
    if (document.images)
    generator = new Image
    generator_on = new Image
    generator.src = "christmassweatergenerator-offswitch.gif"
    generator_on.src = "christmassweater_generatoron-offswitch.gif"
    // Stop hiding script from older browsers -->
    Random Image Link Script
    By Website Abstraction (http://www.wsabstract.com)
    and Java-scripts.net (http://www.java-scripts.net)
    function random_imglink(){
    var myimages=new Array()
    //specify random images below. You can have as many as you wish
    myimages[1]="christmassweater_GENERATOR_files/cotton_candy_christmassweater.png"
    myimages[2]="christmassweater_GENERATOR_files/eiffel_tower_christmassweater.png"
    myimages[3]="christmassweater_GENERATOR_files/kitty_litter_christmassweater.png"
    myimages[4]="christmassweater_GENERATOR_files/spatula_christmassweater.png"
    <!--//specify corresponding links below
    var imagelinks=new Array()
    imagelinks[1]="#<a class="jive-link-external-small" href="http://www.christmassweaterfun.com/christmassweater_GENERATOR">http://www.christmassweaterfun.com/christmas_sweaterGENERATOR</a>"
    imagelinks[2]="#<a class="jive-link-external-small" href="http://www.christmassweaterfun.com/christmassweater_GENERATOR">http://www.christmassweaterfun.com/christmas_sweaterGENERATOR</a>"
    imagelinks[3]="#<a class="jive-link-external-small" href="http://www.christmassweaterfun.com/christmassweater_GENERATOR">http://www.christmassweaterfun.com/christmas_sweaterGENERATOR</a>"
    imagelinks[4]="#<a class="jive-link-external-small" href="http://www.christmassweaterfun.com/christmassweater_GENERATOR">http://www.christmassweaterfun.com/christmas_sweaterGENERATOR</a>"
    -->
    var ry=Math.floor(Math.random()*myimages.length)
    if (ry==0)
    ry=1
    document.write('<a href=''"'+imagelinks[ry]+'"''>')
    random_imglink()
    //-->
    </script>
    <!--the HTML:
    <a href="#" onclick="function gif_animation(); function random_imglink();">

    What's the URL of your site so we can examine it first hand? When you added the code to your post the servers messed it up and tried to render it on the page. We can get the code if we can get to your site.
    OT

  • Open specific tab page using button

    Hello,
    How can I make that one button open specific page on tab.
    That page was disabled and I menaged to make my program to show this page when I click one button. So next step would be that by clicking on that button this (previously disabled - unvisible) page is automatically OPENED.
    Solved!
    Go to Solution.

    Chata,
    Use property nodes.  First, get the Pages references.  From that array select the specific page reference.  Then write Page Enabled to the Page Enabled property. After that write the value of the page to a local variable (if the tab is a control) or write the value directly to the terminal if the tab is an indicator.  Close references. 
    Lynn 

  • Creating an interactive map, using buttons, help!?

    Hi,
    I am attempting to create an interactive map of the college I work at.  I have created a button and when you click on the area, it displays info about the particular room or subject.
    I am using Oject States for the room/subject info and when you press the button to select it, when the room info is displayed (as it should), but the button appears on the top of it.
    I would also like to have a back/close button to go back the the original map.
    Please help, I am new to this and would appreciate any help.
    Thanks

    To Bob Bringhurst,
    Maybe you could show your workaround as a step by step approach
    http://blogs.adobe.com/indesigndocs/2010/12/hot-spot-button-workaround -for-indesign-dig-pubs.html
    Having also viewed this video on creating a tooltip.
    Im still having problems after viewing the above video's to get Multi State Objects viewing correctly on the iPad.
    This might resolve a problem for myself, and possibly others.
    Regards
    Vividi

  • Select from KONV using Additional Code in ABAP Query

    I'm attempting to modify an ABAP Query Infoset (using transaction SQ02) that already has a join in it between tables VBAP and VBAK, and two additional alias tables on KONV (to get price history for sales documents).  I wish to get history of all PN00 records from KONV.  I can get ONE record with the following code in the Record Processing of the Extras element in my Infoset:
    SELECT SINGLE KBETR KPEIN KMEIN KDATU
    INTO (PN00_PRICE, PN00_PER, PN00_UOM, PN00_DATE) FROM KONV
      WHERE KNUMV  = VBAK-KNUMV
      AND KPOSN  = VBAP-POSNR
      AND STUNR = 198
      AND ZAEHK = 01.
    But we have many counters (field ZAEHK) for the PN00 condition and I want to have a new row for each PN00 record in KONV.  I've tried some loop syntax, but I've not been able to get any code to function or return more than one row for each sales order item row (VBAP-POSNR).
    Thanks for any hints.
    Dan Gallagher

    Change it like this
    SELECT KBETR KPEIN KMEIN KDATU
      INTO (PN00_PRICE, PN00_PER, PN00_UOM, PN00_DATE)
      FROM KONV
    WHERE KNUMV = VBAK-KNUMV
       AND KPOSN = VBAP-POSNR
       AND STUNR = 198.
    ..... do something with this record and store
    ENDSELECT.

  • How to get notified when any page is selected from Pages palette ?

    Hi all,
    I need to get the notification whenever any page is selected (set to active) form Pages palette. Facing pages may be selected or not seelcted. Can anyone suggest how should I attach the observer to get this notification.

    Hi Daves,
    The kPagesPanelWidgetID widget notifies IID_IUIDLISTCONTROLDATA with kUIDListItemAddedMessage and kUIDListItemRemovedMessage.
    Dirk

  • I am attempting to import my bookmarks from IE8 using your help tip but the "import" option under FILE is greyed out. What do I do?

    I read your instructions but cannot seem to get the "import" option to work. What do I do.

    * Make sure that you not run Firefox in [[Private Browsing]] mode
    * In Private Browsing mode some menu items are disabled (grayed) and features like visited links are disabled and not showing
    * You are in Private Browsing mode if you see "Tools > Stop Private Browsing", possibly grayed
    See [[Private Browsing]]

  • Going from Pages to EPUB using InDesign?

    Is there a guide for going from a Pages document to EPUB using InDesign? The target is a book that is over 105K words for 425 pages.
    I am an absolute beginner with InDesign and I was hoping to more finely control the outcome of EPUB generation by using InDesign rather than outputting from Pages using Export to EPUB. Unfortunately, ID isn't quite as intuitive as I had hoped it would be and I've run up against the wall.
    Do I load each chapter as a separate document and then collect them as a book file? Or can the book be loaded as one document? I've been trying as one document, but I can't it to appear in the main editing window. (It shows up fine in the story editing, but that gets tedious very quickly.)
    Last, while ID creates EPUB files, can it generate a MOBI or AZW file for the Amazon Kindle? I found no references for in concerning ID in the documentation, but thought I'd ask anyway.

    Thanks, Steve!
    I've already been hand-building the CSS & EPUB files. I was just hoping that InDesign would make it easier. Clearly, that's not the case.
    Apple's Pages does a very good job generating an EPUB which only requires a minimal amount of tweaking to the CSS to give it a final polish and further adjustments for e-readers other than an iOS device. Generating the MOBI/AZW for Kindle requires a bunch of jumping through hoops to prepare, which was what I was hoping to avoid.
    A few days to release, I have plenty of time get get the ebooks ready.
    A good heads up for any competent programmers out there—of which I am not—there is a huge market of self-publishing authors in need of a program that can take a RTF, Word or Pages formatted document and smoothly turn it into an EPUB or AZW file.

  • How to display the master TOC when using Context help in a merged document

    I use Robohelp 10. I have created a large Merged Webhelp project and I have set out the project master with nothing in it other than merged projects place markers.
    This is the layout of the generated projects etc.
    Generate
              Master.htm
                   Redirect.htm  (Home page is a redirect to Project 1 Home Page - not in TOC)
    mergedProjects
              Project1
                  Home Page.htm
              Project2
                   Redirect.htm  (Home page is a redirect to Project 1 Home Page - not in TOC)
              Project3 etc.
                    Redirect.htm  (Home page is a redirect to Project 1 Home Page - not in TOC)
    I can get the help to work great when I call up the master page, which shows the TOC for the whole project and the default home page. And from the breadcrumb the home link goes to the home page and shows the Main TOC
    However when I call a page using context help ID I get a single frame with the selected page. The link to show the TOC shows the TOC but it is the top of the merged project and not the master TOC. The home link in the does display the home page but again the displayed TOC is the one of the current merged project.
    The question is :
    How can I get the Master TOC to show all the time regardless of what page I call using a context ID or how can I create a link that will take me back to the Master TOC?
    I remember when I created a previous help file for chm output I had to modify all the ali files in order for the redirect to work throught the master chm. Surely this is not the case with webhelp?
    TonyC

    I am sorry that I didn't get back to all you guys that took to answering my very promptly. Unfortunately I was not in a position to answer to the suggestions made. as I was away from my computer which had Robohelp on.
    Anyway, I did try a couple of scripts mentioned, but didn't really have any success i achieving what I need to do.
    I set up a redirect which redirected to the main home page. I tried setting the home page in a  main sub-project - so the redirect when from any sub project
    Generate
         Master-project.htm (Home Page = Help_Welcome.htm)
    merged Projects
    SubProject1
                [Home Page =  home_redirect.htm (a redirect see below) ]
         SubProject 2
                [Home Page =  home_redirect.htm (a redirect see below) ]
         SubProject 3
                [Home Page =  home_redirect.htm (a redirect see below) ]
    home_redirect.htm  (a redirect use by sub-topics)
    <!--
       window.location="../../ Help_Welcome.htm ";
    //-->
    //]]></script>
    This setup works fine as long as I call the master page. The TOC is as I would want. However if I call an ID from my application I get the required page to display and I can get the TOC to show. The problem is that the TOC is from the current sub-project and not the master project as I would want.

  • Keyflex value disappears from page when lov event is fired

    Hi All,
    There is a keyflex field and one lov field in my page. When i select the value from kff and after that selecting any value from lov item my kff value disappears from page.
    Plz help asap.............

    Hitesh,
    Mukul, i can put my own Add another row button and do cusom code,but what about other events?
    Yes, see dev guide and old threads. It has been explained in dev guide claerly and have also replied this in old threads.--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Open and pass value to page 2 from page 1 using region button

    Good day,
    I created 2 pages. I have created a text item called p_employeeid in page 1 and a region button with button action redirect to page 2. When i click the button i can open page 2 but i cannot filter the records that pertains only to p_employeeid. my source for page 2 is select * from test_tbl where employeeid = :p_employeeid.
    Help would really be appreciated. thank you.
    Mon

    hi trent,
    i created a branch as well. on submit after processing target type page in this application, page 2 and set this item p2_employeeid and value for this item &p1_employeeid. i did not select any in condition type but selected the button i created submit in the when button pressed. the action of my submit button is submit page.
    below is the apex url using button only without branches: only the value of p2_employeeid is not included in the url
    http://172.16.10.10:8080/apex/f?p=103:2:872957668524402::NO:2:P2_EMPLOYEEID:
    this is with branching: no p2_empoyeeid nor the valu
    http://172.16.10.10:8080/apex/f?p=103:2:872957668524402::NO:::
    i notice that using the branching even p2_employeeid is not submitted whereas in the button ihave th p2_employeeid but no item value.
    I have googling and trying out samples but all i see are table columns with the edit icon. I have not seen example with text box with button calling another page. :(
    thank you for the assistance, if you can think of any other suggestion i would be willing to try them out.
    Mon

  • How to move a selected row data from one grid to another grid using button click handler in flex4

    hi friends,
    i am doing flex4 mxml web application,
    i am struck in this concept please help some one.
    i am using two seperated forms and each form having one data grid.
    In first datagrid i am having 5 rows and one button(outside the data grid with lable MOVE). when i am click a row from the datagrid and click the MOVE button means that row should disable from the present datagrid and that row will go and visible in  the second datagrid.
    i dont want drag and drop method, i want this process only using button click handler.
    how to do this?
    any suggession or snippet code are welcome.
    Thanks,
    B.venkatesan.

    Hi,
    You can get an idea from foolowing code and also from the link which i am providing.
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    width="613" height="502" viewSourceURL="../files/DataGridExampleCinco.mxml">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.binding.utils.BindingUtils;
    [Bindable]
    private var allGames:ArrayCollection;
    [Bindable]
    private var selectedGames:ArrayCollection;
    private function initDGAllGames():void
    allGames = new ArrayCollection();
    allGames.addItem({name: "World of Warcraft",
    creator: "Blizzard", publisher: "Blizzard"});
    allGames.addItem({name: "Halo",
    creator: "Bungie", publisher: "Microsoft"});
    allGames.addItem({name: "Gears of War",
    creator: "Epic", publisher: "Microsoft"});
    allGames.addItem({name: "City of Heroes",
    creator: "Cryptic Studios", publisher: "NCSoft"});
    allGames.addItem({name: "Doom",
    creator: "id Software", publisher: "id Software"});
    protected function button1_clickHandler(event:MouseEvent):void
    BindingUtils.bindProperty(dgSelectedGames,"dataProvider" ,dgAllGames ,"selectedItems");
    ]]>
    </mx:Script>
    <mx:Label x="11" y="67" text="All our data"/>
    <mx:Label x="10" y="353" text="Selected Data"/>
    <mx:Form x="144" y="10" height="277">
    <mx:DataGrid id="dgAllGames" width="417" height="173"
    creationComplete="{initDGAllGames()}" dataProvider="{allGames}" editable="false">
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:FormItem label="Label">
    <mx:Button label="Move" click="button1_clickHandler(event)"/>
    </mx:FormItem>
    </mx:Form>
    <mx:Form x="120" y="333">
    <mx:DataGrid id="dgSelectedGames" width="417" height="110" >
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Form>
    </mx:Application>
    Link:
    http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/ae9bee8d-e2ac-43 c5-9b6d-c799d4abb2a3/
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • I am trying to delete pages from a PDF file. I opened the bookmarks, selected the pages to delete and choose Edit Delete. The selected pages are not deleted. Note: I have to open the file using a passport provided by an external party.

    I am trying to delete pages from a PDF file. I opened the bookmarks in the PDF file, selected the pages to delete and choose Edit > Delete. The selected pages are not deleted. Note: I have to open the file using a passport provided by an external party.

    Resolved

Maybe you are looking for

  • Sign-in error when trying to buy a Book?!

    Trying to purchase a book, I get an Apple account Sign-in error message. "The was an error while accessing your account information. Please check your network connection and try again." I checked my account info (login/password) using a web browser a

  • Sending Flash greeting card to multiple recipients with personalization

    Hello.  We are creating a greeting card in Flash and I need to send it to several people and enable others in my company to also send it to their contacts.  I want the end panel to read something like "Dear [Client Name], Season's Greetings from [nam

  • Color background for titles

    I'm using PrE10.  when i work on titles the background defaults to a black background.  How can I change it to white or some other color?

  • The SAPinst GUI could not be started because a Java Runtime Environment

    Hi all, I AM TRYING TO INSTALL THE ECC 6.0 ON HPUX AND WHILE STARTING SAPINST GETTING THIS ERROR: The SAPinst GUI could not be started because a Java Runtime Environment (JRE) could not be found. Either the JRE is not installed correctly or the envir

  • Personnel number in Ad Hoc query

    Hi, The personnel number in the Ad Hoc query is not coming up. I mean the field is selected for Output but 000000 is seen for al employees. Can anyone please guide as to what needs to be done in order for the Personnel number to show. Thanks in advan