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

Similar Messages

  • 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.

  • Disable Browser Back Button

    Hi All
    I'm developing a web app using jdeveloper 11.1.1.4.
    In my web appication I want to Disable the browser Back button,
    Is there way to do this,
    Thanks
    Padma

    Hi,
    no, there is no option for this. You can try JavaScript as explained here: http://viralpatel.net/blogs/2009/11/disable-back-button-browser-javascript.html
    See: "Disable Back functionality using history.forward"
    Frank

  • 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.

  • JSF seems not to support the use of the back buttons and html frames.

    I�m having the following problem. I have a JSP which contains a button that register a listener. Here is part of the code:
    <h:command_hyperlink label="<%=engineBean.getId()%>" commandName="<%=engineBean.getId()%>">
    <f:action_listener type="helloDuke.CommandAction"/>
    </h:command_hyperlink>
    This action listener only forwards the request to other simple JSP.
    The problem appears in the following situation:
    1 � I click in the button that generates the event that will be processed by helloDuke.CommnadAction listener.
    2 � It forward to a second JSP page.
    3 � This second page is rendered to the user properly.
    4 � The user clicks in the browser�s back button to return to previous page.
    Then if is the user clicks in first page button, the CommandAction listener was removed. You must click again in the button to forward to the correct page.
    The same happened if you are using html frames. If you have a frame with 2 pages and both pages register action listeners.
    The last loaded page cleans the actions listener of the other.
    Does anybody have any solution?.
    It seems JSF doesn�t support the use of frames and I think that in some situation the frames are the solution to several problems.
    Any help will be really appreciated.

    Using the saveStateInClient=true produces a faulty output when using the command_button and an action_listener. The page that is rendered is totally useless: the button won't work, and due to the faulty rendering there's an output like: >com.sun.faces.saveStateMarker
    So, why is it, that pressing the button (not using the saveStateInClient option) will only work the second time, same thing pressing the backbutton. Pressing the reload button will toggle between two pages - the one before the session id is assigned and the one that it's supposed to show.
    Any guess will be greatly appreciated !!!!

  • HTML back button, controlling attributes...how?

    I need a simple back button that will be on the image of a button. I have looked at JS and HTML, and I think HTML is the best route (because of the potential of JS being disabled); let me know if there are other issues of JS vs HTML I have not thought of.
    The basic HTML is (I think, this does work):
    <INPUT TYPE="button" VALUE="Previous Page" onClick="history.go(-1);">
    I would like to modify the following, and don't know how:
    Font (arial)
    Font Size (14)
    Link Format
    Normal (black no underline)
    Rollover (gray 999999 with underline)
    Visited (black no underline).
    This will allow me to make it look like all other buttons in the site.
    Can anyone tell me the code to control these?
    Thanks
    bob

    I figured it out from google.
    bob

  • RoboHelp HTML 9 - CHM file The Back button works uncorrectly.

    Dear all,
    I am using RH HTML 9 to generate chm file from my project. The problem is when I click on topic 1, topic 2, topic 3 in turn in the Content pane. After that I click the Back button three times, topic 2 is highlighted on the Content pane, although the content of the topic 1 is displayed on the right pane. I think the topic 1 should be highlighed on the Content pane. Is it a bug of Microsoft HTML Help ?
    Please help me understand what Microsoft HTML Help does in generating .chm within RoboHelp 9 ?
    Thank you.

    Dear RoboColum(n),
    The following is the report from my machine. Please help me check it. I really don't have experience in this. Thank you so much.
    MJ's Help Report
    A common problem with HTML Help 1.x is DLLs not correctly registered during installation. This utility checks all components and registers DLLs if required. We also report if the RoboHelp DLL is registered, and if MS Help 2 components are installed and registered.
    After running the report, try running your program again to see if the fault has cleared.
    General Info
    Report EXE:            C:\DOCUME~1\nhanvt\LOCALS~1\Temp\7zOC4BF7DD4\MJsDiag.exe
    Report Run Date:       12/18/2012 9:38:11 AM
    Report EXE Version:    2.7.2.0
    Download URL:          http://helpware.net/downloads/
    Operating System:              Windows NT 5.1.2600
    SysLocale.DefaultLCID: 0x0409 (1033)
    SysLocale.PriLangID:           0x0009 (9)
    SysLocale.SubLangID:           0x0001 (1)
    DecimalSeparator:              .
    HH Installed:                  YES
    HH Version:                    5.2.3790.4110
    HH Friendly Version:           > 1.4a
    H2 Installed:                  NO
    H2 Version:                   
    IE Installed:                  YES
    IE Version:                    6.0.2900.5969
    IE Friendly Version:           Internet Explorer 6 (Windows XP SP2)
    NT Administrator
    NT Admin Check: Current user has full administor privileges: YES
    HTML Help Run-time Components
    File Registered OK: C:\WINDOWS\system32\hhctrl.ocx (Version: 5.2.3790.4110)
    File Registered OK: C:\WINDOWS\system32\itss.dll (Version: 5.2.3790.4186)
    File Registered OK: C:\WINDOWS\system32\itircl.dll (Version: 5.2.3790.2453)
    File Found: C:\WINDOWS\system32\hhctrl.ocx
            Version = 5.2.3790.4110
            Registry Info: {adb880a6-d8ff-11cf-9377-00aa003b7a11}
    ClassName = HHCtrl Object
    InProcServer32 = C:\WINDOWS\system32\hhctrl.ocx
    ProgID = Internet.HHCtrl.1
            DLL is Found and Registered OK = YES
    File Found: C:\WINDOWS\system32\itss.dll
            Version = 5.2.3790.4186
            Registry Info: {5D02926A-212E-11D0-9DF9-00A0C922E6EC}
    ClassName = Microsoft InfoTech IStorage System
    InProcServer32 = C:\WINDOWS\system32\itss.dll
    ProgID = MSITFS1.0
            DLL is Found and Registered OK = YES
    File Found: C:\WINDOWS\system32\itircl.dll
            Version = 5.2.3790.2453
            Registry Info: {4662DAA5-D393-11D0-9A56-00C04FB68BF7}
    ClassName =
    InProcServer32 = C:\WINDOWS\system32\itircl.dll
    ProgID = ITIR.WordWheelBuild.4
            DLL is Found and Registered OK = YES
    For HH Version Info See: http://helpware.net/htmlhelp/hh_info.htm
    HTML Help 1.x Registry Settings
    Description: If present this Key can disable HH Shortcuts and HH WinHelp commands on the local PC
    Reference: KB 810687, KB 323180
      Key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\
      Value: HelpQualifiedRootDir (string value) =
      -> Report: Policy is not enabled. HH Shortcuts are not restricted on local machine.
    Description: This key can be used to enable Hhctrl.ocx ActiveX Visual controls on servers
    Reference: KB 892675
      Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\HHRestrictions
      Value: UrlAllowList (string value) =
      Value: MaxAllowedZone (string value) =
      -> Report: Settings reported for information only.
    Description: This key allows MS programs such as iexplore.exe to open ITS file that do not have a .CHM file extension
    Reference: KB 873343
      Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\HelpRestrictions\AllowedExtensions
      -> Report: No special file extensions have been enabled on this PC.
    Description: This key can be used to allow access to remote ITS files
    Reference: Win 2003 SP1, KB 896054
      Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions
      Value: UrlAllowList (string value) =
      Value: MaxAllowedZone (string value) =
      Value: NestedProtocolList (string value) =
      -> Report: Settings reported for information only.
    For HH Registry Info See: http://helpware.net/htmlhelp/hh_info.htm#hh14
    HTML Help 1.x Workshop Components
    *** HH Workshop not found or not installed correctly. Try reinstalling.
    File not found: C:\Program Files\itcc.dll
    File Found: C:\WINDOWS\system32\hha.dll (Version: 4.74.8702.0)
    KeyHelp OCX by Keyworks.net - KeyHelp.ocx
    This is for information only. KeyHelp is a 3rd party DLL.
    *** KeyHelp.ocx is not registered or not installed!
    *** You can register your KeyHelp.ocx using the "Register a DLL" button.
    *** KeyHelp.ocx could be installed anywhere on your PC by normally resides in the Windows System folder.
    For More Info See: http://keyworks.net/
    RoboHelp DLL by eHelp/Macromedia - HHActiveX.dll
            Registration Info: {399CB6C4-7312-11D2-B4D9-00105A0422DF}
    Version = 9.0.1.262
    ClassName = HHComponentActivator Class
    InProcServer32 = C:\Program Files\Adobe\Adobe RoboHelp 9\RoboHTML\HHActiveX.dll
    ProgID = HHActiveX.HHComponentActivator.1
            Dll Found and Registered = YES
    For More Info See: http://www.macromedia.com/
    MS Help 2 Run-time Components
            *** MS Help 2 NOT installed on this PC

  • Help me to resolve this URGENT: browser back button behavior

    Hi All
    How can I force my application to give the following error in click of back button of browser or backspace .
    Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
    To resubmit your information and view this Web page, click the Refresh button.
    hmm I am using no-cache, no-store and expire '0', Mine is struts application with resin as App server.

    HEY, take it easy, sometime knowing the reason for a thing may help to find another solution for the same problem. We are here to help, some people really help other one only tries to. In any case there is no need to be rude, nobosy here is working for you or have an obligation to answer you.
    1.- this should be on the j2ee forum place, because is everyone posts here all other section will be empty of people and answers, so please help yo keep all the forums running well. And may get better answers on less time.
    2.- I assume you are uusing J2ee and not applets. That may be a 100% different thing to fix that.
    3.- Can you post some architecture of the pages call to see, its different if its a home page than its a result of nested calls.
    4.- I guess you should do something like this to solve your peoblem:
    if using html forms inside a jsp as I guess you are using. You can get the JSP be call from a servlet that introduce inside the form a unique random created value inside a hidden type input. so each time you press the back button the cached jsp will be called and the unique number wont match with the new attention requirement. All you need for that is a shared resource between the 2 servlets. Maybe a EJB or something. It depends a lot on how are you doing the pages call. for that we need to know that. In anycase the message you are trying to get os not from your app, but from the browser, so you may need to implement something like security certificates to have that, but if not you may use a patched own solution like the one I gave you.

  • How do I use edge commons composition loader to load multiple compositions with a next and back button?

    I am working on an interactive book and have set up each page as a separate composition in edge.
    I am using  the edge commons JS library to load multiple compositions into a main composition.
    You can see how this works here: Edge Commons - Extension Library for Edge Animate and Edge Reflow | EdgeDocks.com
    The way the edge commons tutorial is set up requires a button for each composition i want to load. I am interested in loading multiple compositions with a "next" and "back" button, and a "swipe left, "swipe right" gesture on the content symbol that each composition is loaded into. I also need the swipe features on the content symbol not to interfere with the interactive elements on the loaded composition.
    Please suggest a solution that will work without adding additional scripts beyond edge commons and jquery.

    Sort of. I'm using this code inside an action for a button symbol. But it doesn't work perfectly. Trying to debug it.
    Let me know if you have any luck.
    //Check to see if pageCounter already exists
    if (typeof EC.pageCounter === 'undefined') {
      // it doesn't exist so initialize it to first page
        EC.pageCounter = 2;
    //check if the page is only 1 digit -- patch for single digit
    if (EC.pageCounter < 9) {
       // it is, so we need to pad a 0 on the front.
      EC.pageCounterString = "0" + EC.pageCounter;
      //e.g.  01 ...09,11,12,13....115,222352,,....
    else {
      EC.pageCounterString = EC.pageCounter;
    EC.loadComposition(EC.pageCounterString + "/publish/web/" + EC.pageCounterString + ".html", sym.$("container"));
    EC.pageCounter = EC.pageCounter + 1;
    //TODO for back  -1

  • How to get the values retained on clicking the back button in jsp page

    Hi All,
    I had two jsp's search and results. In the search page when i enter some values in the text fields, the rsults will be displayed for that search criteria. I had a back button in the results page. When i click on this back button i will get back to my search page. I am using the following code for this back button.
    <INPUT TYPE="button" VALUE='Back' onClick="javascript:history.go(-1)" class="button">
    Now the problem is when i get back to search page using this back button, i am not able to get the values in the search page which i entered, i am getting all blank values. What should i change to get these values back in the search page. Should i maintain any sessions for this?

    You have no control at all over the back button process. To the server, it's indistinguishable from the user simply tying the URL of your search page. So, you need to store this data server side*.
    When your search page is submitted and processed, store the values you received for each of the fields into the user's session. Then, when the search page is generated, check the session for these values, and for any values that are not null, put their values into the html as the default values for the textboxes and controls you are using. This lets you handle the whole matter on the server's side.
    *barring convoluted, unportable, black-magic javascript trickery which you should definitely avoid                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Back button on Web template

    Hi All,
    I have a web template , which is working fine . There is no option of going back to the previous page on the template and the only way is to click on the back button on the explorer.
    The users have requested me to add a back button on the template. I am not an HTML guy, so I want your expertise on the same .
    Can someone who has worked on this guide me ?
    Thanks

    Hi,
    I don´t know if there is a way in HTML to return to the previous page. You can do this in Javascript this way
    !atras.gif!
    atras.gif is the name of the image you'll use as button.
    If you prefer HTML the only way I imagine is to make a link with the previous page.
    Hope it helps.

  • Is there a way to control the "back button"?

    i've got a simple animation intro, ending with the very last
    key frame being static with links. then the links will bring up
    another page in the same window. but i was wondering if there was a
    way in flash to control the back button to bring the user to that
    very last key-frame, at the end of all the animation. thereby
    skipping over the intro-animation.
    also:
    i have an html intro page, where you can go to the flash
    introduction, or the peoples' old website, or to a Flash-Player
    download window. i was wondering if there was a way to create a
    link to that end key-frame in order to by-pass the animated flash
    intro.
    thanks for your help

    gotoAndPlay(32) if you have a continuos animation after that
    frame and you want to continue it; the number within the brackets
    is the number of the frame you want to go to. Or else if you want
    to go to a particular frame and stop there, gotoAndStop(32);

  • Why do i get redirected when I click on search link If I hit the back button and click on the link again It was allow me to go there

    I use Google to search I click on the link and I get redirected to some other page I click on my back button and re click on the link and it will the allow me to go the link. it does this to me 40% of the time and I know the links that I'm click on a a known good link cause I used them before I just have not save them to my bookmarks

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • I used to be able to go back multiple pages at once, by selecting what page I wanted to go to by the back button. Now I apparently don't have that option and can only go back one page at a time? Am I mistaken, and is there a way to do this?

    I miss the old back button, when I could go back multiple pages at a time.

    You can also:
    *right-click the Back/Forward button for the drop-down
    *add this extension to add the drop-marker to the Back/Forward button: https://addons.mozilla.org/en-US/firefox/addon/backforward-dropmarker/
    <br />
    <br />
    '''You need to update the following:'''
    *Next Generation Java Plug-in 1.6.0_23 for Mozilla browsers (''version 1.6.0_25 is available for download, but can not be updated using manual update yet'')
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • 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

Maybe you are looking for

  • Customer Collection Statement

    Hi All I need to some help with Customer Collection statement , I need this field to display the DOC REF NO in column 2 and not BP REF NO. Which field must I display in order to display the invoice number or credit note number related to a particular

  • DadTool.pl obfuscation doesn't work with passwords containing a "$" sign !?

    Hi, we are using the OHS and mod_plsql which is bundled with the Oracle 9i Companion CD. When we try to obfuscate a password containing a $-sign (p.e. test1$test2) with dadTool.pl, the dads.conf is updated with an encrypted password and the dadTool.p

  • Error BRAIN 276 executing reports

    Hi Gurus, I need to have a page displaying customer information (BSP ACCOUNT, view NAV_MAN) and a report displaying information related to the selected customer. Using the EP 7.0, I created a factsheet page with the view Account, the view com.sap.pct

  • Incorrect time of day on iPhone 3G

    Anyone else notice how the 3G's time of day does not sync correctly with the computer? Mine is always off by a few minutes even after trying to set in manually. I cannot find a setting anywhere that allows one to sync the times. Some have mentioned t

  • Safari Search function goes to Russian Google?!

    Hi, I've had this problem for a while. When I use the search box built into Safari (to the right of the address bar) it uses the Russian version of Google to find results. I live in the UK. How do I change this? Thanks!