Creating a "go back" button in Struts

How to do that? Are there already some tags I could use in JSTL or some other template library? Or do you simply have to keep a session variable that remembers the last page you visited? BTW: how do you get the address of the page you're on?
Thanks a lot everyone :)

Thanks for the reply macjack.
I know about the "next card" and "previous card" in the card menu. But, they are alphabetical. I should have been more precise, sorry. I want Address Book to keep a record of my searches when I look a contact up. Then go back and forth between those cards. I use my mac bilingually... And in Japanese it really is quite difficult to get the computer to look up someone's name. It takes a lot of typing before I can look someone up. It all seems rather tedious if you are using the same people over and over again.

Similar Messages

  • How can i create forward and back buttons for a dreamweaver slideshow?

    Hi
    I am an illustrator attempting to create a website in dreamweaver (basically it will be an online portfolio). I would like to have a box/slideshow with images of my work that someone can browse through by clicking 'next' and 'back' buttons. Does anyone know how to do this? I have been trying to find out how to do this for ages - i dont want to use flash if possible as i am worried about making the site too complicated. I know how to make swap image thumbnails, but i think my site would be more user friendly (and look more professional) if i could have next and back buttons. Would this involve complicated css code (which scares the life out of me!) or is there a relatively easy way to do it? I have got two 'dreamweaver for idiots' books, but neither of them cover this topic. Can anyone help?

    If you are using CS4, there is a Command to create a Web Album... this does it automatically for you.
    Otherwise, you can create this manually.  Say you have 3 pages,
    page1.html  (is the index page of the album)
    page2.html
    page3.html
    Therefore, using ordinary text links
    Home would link to page1.html
    Previous would link to page3.html
    Next would link to page2.html
    You would need to make adjustments naturally to each page as you move along with the gallery pages, changing the previous and the next links as needed.  Below is a a basic example of setting up the links in a simple table structure.  You would also then style the table layout as you see fit - yes, using css preferably  :-)
    <table>
    <tr>
    <td><h2>MY GALLERY OF PHOTOS</h2>
    <a href="page3.html">Previous</a> | <a href="index.html">Home</a> | <a href="page2.html">Next</a>
    </td>
    </tr>
    <tr>
    <td>
    <br>
    <a href="../images/img_2401_jpg.jpg"><img src="../images/img_2401_jpg.jpg" border=0></a><br>
    </td>
    </tr>
    </table>
    Here's an article on creating an album using the DW Command I mentioned earlier. You could create the album and then copy and paste the code into a current page if you've already designed on.,... not too difficult, I just tested it.  You do however, need to have Fireworks to process the images.
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7ad1.html
    You could also check out the Lightbox effect which is very popular:
    http://www.lokeshdhakar.com/projects/lightbox2/
    Or do a google search for 'jquery'.  There are different album effects using that framework as well.
    Hope some of this helps  :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • Back button in struts html

    hi,
    i am new to struts and developing an application in struts.
    I have a form having 2 buttons say update and back. update button on clicking will call a bean and will update the database based on values provided in form.
    I want to know how i have to provide parameters for back button???
    regards,
    Rapinder.

    All depends on what you want to do when going back.
    Depending on what you want its simple javascript, a submit that will redirect to the first page or something far beyond what this forum is intended too

  • Create back button on preview page

    I have parameterized report where im trying to input ID to get the data. How do we create back button next to view report on the preview page in SSRS. Any help much appreciated.

    Hi SQL Insane,
    Per my understanding that you want to add an "Go Back" button in the Report next to the "View Report" button in SSRS, right?
    I have tested on my local environment and that it is difficult for us to add an "Go Back" button next to the "View Report" in the designer, but if you are an expert of developer you can write some code to add this Button.
    I have some alternative method which is more simple to recommend you according to your requirements.
    Details information for your reference:
    Add "GO Back" button which can work in both designer and report server.
    1) You can create an textbox in the report and right click the textbox properties to select the "Go to Report" to go back to report(Go back to main report itself or go back from child report to main report).
    2) If you go back from child report to main report("Go to Report"), you can add "Go Back" in the child report and add corresponding parameters and you can hide the parameter in the main report.This will make sure they will pass the same
    values back when you click the back button. So in effect it will be same as your navigation button.
    Add "Go Back" button which will only work in the Report Server or report manager:
    You can create an textbox in the report and right click the textbox properties to select the "Go to URL" to go back to report.Using this expression in the "Select URL":
    ="javascript:history.go(-1)"  
    OR
    ="javascript:history.back(1)"
    OR
    ="javascript:void(window.history.back())"
    If you are using the report viewer control in the application, you can add some code to create the "GO Back" button next to the "View Report" button, sample code in below article for your reference:
    You add it to your ReportViewer.aspx file.
    Please see an example here:
    https://github.com/MagnusJohansson/CustomSSRSReportViewer/blob/master/ReportViewer.aspx 
    See instructions here
    https://github.com/MagnusJohansson/CustomSSRSReportViewer
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • JDeveloper - How to create a "back button" using JSF

    As simple as it sounds, I'm having trouble creating a basic back button on my JSF page. I'm using a af:goButton with the Onclick attribute stating history.back(). I've also tried history.go(-1) to no avail.... is there a trick to this?
    Thanks,
    Richard

    If you are looking for a more advanced case as describe, you will need to reference the last navigation outcome in a managed bean so that you can execute it when the back button is clicked.
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                               

  • Back Button: Screens

    Im in the middle of a flash website and im using screens to
    design it..
    Im trying to create a simple back button on the main screen
    so that It acts as a simple back button..
    pretty much I want it to go back in history 1 screen.. I dont
    want to its parrent screen, I would want it to act like a simple
    back button that is commonly used in html.. is there a script I can
    add to a button? how would I do this?
    none of the prevscene commands or the preve screen commands
    work because they simple go to the current slide's parrent.. I need
    help ASAP, so if you know how to do this please respond

    help please!

  • Making a Browser BACK button in Java Script

    I've been trying to create a Browser Back button to return the user back to my LMS.  They typical ones I've found on the internet don't seem to work or I'm not entering it into Lectora properly.  Has anyone succussfully created a BACK button in Captivate?
    Using Captivate 3.
    One code I've tried that won't work:  <a href="javascript:history.go(-1)" </a>

    Hi there
    This could be an issue with Flash Player Security as described in the link below.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Help! history.go(-1) Back Button JavaScript in Safari

    Hello,
    I wanted to create a quick back button using the simple history.go(-1) JavaScript. It works in all browsers except Safari. Any workarounds? Thanks much!
    -Scott Lunceford

    Hello, Ryan.
    Sorry for the delayed response. Thanks for your reply -- it led to a solution.
    Basically, the button code worked for me:
    input type=button value="Back" onClick="history.go(-1)"
    But the link code didn't work:
    a href="#" onClick="history.go(-1)">Back
    I wanted my own custom button, so after trying both lines you provided and seeing that the form <input type=button ... > worked, I modified it slightly to this:
    input type="image" src="back.gif" onClick="history.go(-1)"
    Which worked like a charm. Still not sure why I couldn't get the link code to work....
    Thanks again.
    -Scott

  • How2 implement back button

    Hi Everyone!
    I have a static webpage with a link to an htmldb application (no authentication, just a report).
    I would like to create a browser back button in htmldb, that does just this:
    onClick="history.back()"
    But all created buttons demanded a page (in htmldb - or url) to branch to.
    What would be the best way to implement such an back button?
    Thanks,
    Michael

    Hi Michael,
    i think your HTMLDB-page is a report. So do the following steps:
    1. Create a button
    2. Select the region for the button
    3. Select "Create a button in a region position"
    4. Give the button a name and a label and - that's important - select as action "Redirect to URL without submitting page"
    5. On the wizard page for branching select as target "URL" and enter the URL (at the bottom of the page) "javascript:history.back()"
    6. Click "Create button"
    That's all.
    Thomas ;-)

  • How to Create a Back button in Flash

    Hi all,
    I need to create a back button for my flash app. It doesn't
    need to be connected with Browser. It just need be able to remember
    what frame they were viewing, and bring them back.
    Is there any event I can use for this? I made an variable
    called "visited:Number" and change it on every frame, but this
    won't work. Once the user enters a new frame, the original visited
    number is replaced by current already. I don't know how to hold
    that number, before they leave the current frame.
    Can anybody give me little clue/direction please?
    Thank you...

    Hi
    I believe that you should look at the Forms functionality for UCM . Under Content Management - Web Form Editor will show up the editor where in you can add buttons and attach functionalities to it . With UCM 11g this is not available thus you might need to use AJAX to build the requirement .
    Thanks
    Srinath

  • Can i create a back button in ibooks author?

    I know i can go to a videofile on for examlpe pag 20 making a textlink on page 1. but is it possible to create a back link to the page where i came from?

    K T, you're not quite right on this and ibooks does have a web-like back capability. if readers call up the top menu (by tapping a blank part of any page) and then click on the ribbon in the top right corner, there's a prominent option called "recently viewed" that takes them back to the page they were just on. This works exactly like a Back button or back JavaScript on a web page. it solves the problem with returning to your spot after u hit a bookmark link to a distant spot in an iBook.
    okay, so this functionality a) exists and b) is in the core ibooks menus, so why the eff can't apple give us a way to insert a far more user-friendly back button on the pages? please kick this up. it's b.s.
    j.b.

  • OAF Create Employee Part 2 Task 1: Handle the Back Button

    I am trying this part of code without Debug Mode, I am not sure why I have to click 2 times on Browser Back Button, to go to the EmpSearchPG. Anyone tried this and having same problem or it is suppose to go back to the previous page when you click once on Browser back Button.
    I would appreciate if anyone having tried and know how does it work. I am trying to resolve this before going to the next step of this exercise.
    Step 1.5 Test Your WorkSelect TutorialLabs.jpr, right-click and select Rebuild TutorialLabs.jpr.
    Add the following breakpoints to:
    The first executable line in the createEmployee() method in your EmployeeAMImpl class.
    The vo.insertRow(row); line in the createEmployee() method in your EmployeeAMImpl class.
    The first executable line in the create() method in your EmployeeEOImpl class.
    The first executable line in the rollbackEmployee() method in your EmployeeAMImpl class.
    The first executable line in the processRequest() method in your EmployeeCreateCO class.
    The first executable line in the processRequest() method in your EmployeeResultsCO class.
    The first executable line in the processFormRequest() method in your EmployeeResultsCO class.

    Try to check on any different browser.
    Make sure you are performing correct steps.
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • Urgent:Time Entry Rule Creating Issue on Hitting Back Button

    Hello,
    We have created a Time Entry Rule to see if one of the Field either a Department or Project on the TimeCard is entered. The validation works fine for the first time when hitting the continue button.
    However on hitting the back button the validation fires again although department is there. Here is the snippet of the code.
    Can somebody please tell me what is the additional check that i need to perform so as to ensure that it doesnt fir again on hitting the back button.
    i NUMBER := 0;
    j NUMBER := 0;
    l_status NUMBER := 0;
    tc_blocks                Hxc_Self_Service_Time_Deposit.timecard_info;
    tc_attribs                Hxc_Self_Service_Time_Deposit.building_block_attribute_info;
    pragma autonomous_transaction;
    BEGIN
    tc_blocks := Hxc_Self_Service_Time_Deposit.get_building_blocks;
    tc_attribs := Hxc_Self_Service_Time_Deposit.get_block_attributes;
    hr_utility.set_location ('Prior Loop',1);
    i := tc_blocks.FIRST;
    --hr_utility.trace_on(null,'ORACLE');
    hr_utility.set_location ('Entering ff_formulas_pkg.OGER_CHK_TIMECARD_FIELDS', 1);
    WHILE i IS NOT NULL
    LOOP
    IF(tc_blocks(i).scope = 'TIMECARD') THEN
    j:=tc_attribs.FIRST;
    WHILE j IS NOT NULL
    LOOP
    BEGIN
    INSERT INTO LOG VALUES(UPPER(tc_attribs(j).attribute_category)||' '||tc_attribs(j).attribute6);
    commit;
    IF (UPPER(tc_attribs(j).attribute_category) = 'ELEMENT - 176' and (tc_attribs(j).attribute6 IS NOT NULL OR tc_attribs(j).ATTRIBUTE3 IS NOT NULL)) THEN
    l_status := 1;
    EXIT;
    END IF;
    END;
    j:=tc_attribs.NEXT(j);
    END LOOP;
    END IF;
    i:=tc_blocks.NEXT(i);
    END LOOP;
    RETURN l_status;
    Regards,
    Gayatri

    Hello Tim,
    Thanks for the response. The TER is set to Submission/Resubmission.
    Can you please suggest me if this is correct? Also could you pls take a look at the code pasted above and let me know if that is correct.
    Regards,
    Gayatri

  • Struts : checkbox status is unchanged if i use back button and uncheck it.

    hi
    I have a couple of checkboxes in a jsp page used in struts framework. I am using DynaValidatorForm as form bean with session scope, so it means the properties are mapped only in the struts-config.xml. the checkboxes' property names are checkbox1 and checkbox2.
    now the in the action class, i do:
    public ActionForward execute(ActionMapping mapping,
                ActionForm form,
                HttpServletRequest request,
                HttpServletResponse response)
         throws Exception {
              DynaValidatorForm dynaform = (DynaValidatorForm)form;
                                              System.out.println("1st checkbox value:"+ dynaform.get("checkbox1") );
                                              System.out.println("2nd checkbox value:"+ dynaform.get("checkbox2") );
    }Now if I check the first checkbox and press on submit button, the action class prints out:
    1st checkbox value: on
    2nd checkbox value: off
    this is as expected
    Now I click on the back button, then i uncheck the first checkbox and click on submit.
    the output is same as before, i.e.:
    1st checkbox value: on //wrong
    2nd checkbox value: off
    I expected it to be
    1st checkbox value: off
    2nd checkbox value: off
    That means if in a session if i check on checkbox 'on', and i go back and uncheck it, the uncheck is never stored, i.e. the property is never set to 'off' .
    Now if i check the second one, and click on submit, output is :
    1st checkbox value: on //expected off
    2nd checkbox value: on //correct
    now i go back and uncheck the 2nd checkbox (the first checkbox is already unchecked before), click submit and i get this output:
    1st checkbox value: on //expected off
    2nd checkbox value: on //expected off
    Please let me know what is happening. I expect the values of uncheck boxes to be 'off'
    thanks
    Tanveer

    The String[] thing is only useful when you have multiple checkboxes of the same name.
    What is the scope of the form bean? Request or session? If it's request, then that makes no sense. If it's session, then it does make sense because the same bean is being used, and as a result, the values are not really reset. And since HTML forms work by not submitting anything for unchecked checkboxes, then the server doesn't get anything in the request form data to know to change the checkbox to any other value.
    If you are using session scope, then make sure you have a good reason to. Otherwise, use request.

  • Create a back button in quiz

    Hi -
    I'm pretty new to Adobe Captivate but I need to create a quiz pretty quickly which I want to import to Flash.
    When clicking on a button in Flash I want the quiz to open up which works fine but as soon as I close the quiz
    I would like to go back to my main page. Can I create a button in Captivate which goes back to my main page?
    Thanks alot for your help.
    Franni

    Hi Franni
    Sorry, but it isn't exactly clear what you hope to accomplish. You mention creating a Back button, but then mention importing the content to Flash. One might assume that you want the Back button to jump to some location inside Flash.
    Perhaps your question makes sense to someone experienced with Flash, but I'm going to guess it may not. Hopefully one of our "Flash savvy" folks will see this and offer comments.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

Maybe you are looking for