Question re. RequestDispatcher - can I include a target fragment?

Hi
I have a web page with 2 forms:
Log in
Register
If the user submits invalid data, the controller servlet uses 'RequestDispatcher.forward()' to re-display the page.
Is there some way to also specify a specific portion of the page? For example:
some_url/home.jsp#registerIn other words, I would like to automatically display the relevant form on the page.
I tried this:
RequestDispatcher.forward("WEB-INF/jsp/home.jsp#register");The server returns this error message:
The requested resource (/WEB-INF/jsp/home.jsp#register) is not availablePresumably, the target fragment muddles things up.
Is there some other way to do this? I would obviously prefer not to use a 302 redirect - if possible. :)
Thanks
Pete

The #fragment is a client side indicator only, and means nothing to the server.
The way to do this would be to break your two forms into two (or three) separate JSPs.
1) Login.jsp displays the Login form
2) Register.jsp displays the Register form
3) Signin.jsp <jsp:include>s both the Login and Register JSPs
Then when you get the invalid data you would forward to PleaseRegister.jsp which just <jsp:include> the Register.jsp (inside the rest of the HTML you might want to display), and it would be this PleaseRegister.jsp that you forward to.

Similar Messages

  • HT5312 I need help resetting my security questions so I can shop from the apple store.

    I can't answer the security questions because I never set them up. I need to download n buy a game for my daughter.

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104628)

  • Can i include external usb drives in Time Machine backups

    Can I include external usb drives and sticks in Time Machine backups?
    This was the question I searched a week for. My machine is a MBAir with Yosemite. I have a bunch of USB HD and sticks. This is a sharing of what it took to solve. I lost a couple of important document revisions lately because of not having differential backups on them, so wanted to include them in Time Machine.
    Yes it can, I found. But it's a wee bit backwards. And apparent inconsistencies drive you crazy. Time Machine is supposed to do this by default, and wants you to tell it what NOT to include. Trouble is, formats create many troubles.
    But the USB sticks and HD's you buy are PC formatted. And you'd like to share, as the Apple does with FAT16, FAT32, and exFAT (to overcome the 4G size limit on the others). Even NTFS can be plugged in and be read-only. Turns out you just can't incorporate into TM backups.
    Open Time Machine Options, and look at the drives listed in the exclusion window. Drives that you know to be plugged in and registered by Finder, may or not be registered in the exclusion window, and if registered and their icons may be bright or dimmed. Bright will NOT be included. Dimmed are excluded. Normally the operation is to use the or to exclude these drives from your next BU operation. (this instruction is lost the next time in manual mode). So if a drive or stick is shown and is bright it WON'T be backed up. If you it from the window, then it will grey out and WILL be backed up. If it's not there to offer you exclusion, you can browse to such a file or device so you can exclude it. TM's exclusion window will show the PC formats: FAT16, FAT32, and exFAT greyed out (as not included). NTFS is bright looking like it might work, but when    doesn't dim, it disappears, and is ignored in the actual BU.
    Sources are supposed to be included in the backup if it isn't shown bright in the exclusion window. In this respect I only use TM manually, and not for programmed BU's, so I cannot speak to that.
    If everything you have is formatted for the Apple disc system (Mac OS Extended) then there are no contradictions or partial equivalences. The mounted disc or stick will show in TM exclusions window, and if you it, you'll see it in the Time Machine pile of calendared directories, with all the files. And of course it will do the differential backups for it that we use TM for in the first place. Just remember to prepare the BU by not excluding.
    BUT NOW THE VARIABLES. It now depends upon the formats. I use the Paragon NTFS program to permit writing NTFS. (Apple can normally read but not write NTFS). Paragon is lovely because for normal computer use, I can read and write both Apple and PC files and disc formats in Finder (for 3 years now). But Time Machine cannot be reached by Paragon so it's NTFS behaviors are outrageous. Paragon reaches Disk Doctor so you can read, write, format and heal both Apple and PC formats. And this really confused things respecting Time Machine. I literally worked through every variable, from stick to disc to prove what did work, and when false appearances of working showed up.
    Respecting that very Time Machine display of Finder windows piled backwards through time there's a confusing bug. When first opened, TM shows NOW as the current setup and works just like a Finder window in present time. And the outboard discs and sticks show as in Finder. BUT working back in time, the left window DOES NOT SHOW THE CONDITIONS AT BACKUP but rather in all left windows shows the present setup. So you need to work from the right hand side dates and times to go back and see when you had that stick or HD plugged in. And then, finally, you will see the files you wanted saved. But if there is a stick on the left than TM doesn't like but Finder likes you'll see it left but nothing will be in the files. Clicking on the pretender just jumps to the root.
    My Disk Doctor provisions (with Paragon) show, Mac OS Extended (Journaled), Mac OS Extended (Case Sensitive Journaled), MS-DOS (FAT), exFAT, Windows NT Filesystem, Windows NT Filesystem (compressed). It's a better utility than in Microsoft and I use it for such maintenance.
    Bottom line, I like TM very much. 2 years ago I lost my air and TM was able to reconstruct my machine many times in the course of the troubleshooting - all the way from the start to the last without ever missing a beat or a file. So I accept this limitation and make copies to another HD formatted in NTFS when I work on PCs.
    Hope's this sorts out being lost in the desert for a few of you.
    Jock
    <Personal Information Edited by Host>

    Storing normal data files on the Time Capsule is unfortunately not as easy as dropping the folder on the Time Capsule.
    Open up Macintosh HD on the Mac
    Look for the SHARED heading on the left
    Click on the Time Capsule icon and a folder named "Data" will appear (unless you have renamed it)
    Double click the "Data" folder to mount the drive on the desktop. You may need to enter the device password for the Time Capsule when you do this the first time
    Once the drive icon is on the desktop, you can drag data to the icon and drop it there. Double click the icon to open up the drive and see the files

  • How can i include a sampling of type in ps7 type tool?

    how can i include a sampling of type in ps7 type tool?   i did this in ps3

    I guess in my zest to answer your question i had forgotton about Adobe Type Reunion.
    What operating system are you using photoshop 7 on?
    photoshop 3.05 on mac os 7.6.1

  • Can a include file exception crash an app server?

    Hi,
              Can somebody please help me with the answer to this question?
              Question is: I have an include file in a jsp page. But this include
              file is not present on the server and hence it is giving an
              exception.This exception is being caught and a message is thrown on
              the console.Now, will this exception 'crash' my app server anytime?
              Also will the exception be thrown everytime a user tries to access the
              jsp page? Please help.
              Thanks,
              

              "Shirin" <[email protected]> wrote in message
              news:[email protected]..
              > Hi,
              >
              > Can somebody please help me with the answer to this question?
              > Question is: I have an include file in a jsp page. But this include
              > file is not present on the server and hence it is giving an
              > exception.This exception is being caught and a message is thrown on
              > the console.Now, will this exception 'crash' my app server anytime?
              No. It shouldn't crash the app server.
              > Also will the exception be thrown everytime a user tries to access the
              > jsp page? Please help.
              Yes, until the file that is included exists or until the page handles the
              exception.
              Tom
              

  • How can I reset my security questions so I can buy an app?

    How can I reset my security question so I van buy an app because I am using for the first time my credit card to buy an app and I can't remember some answears .I have made  my Apple id 2 years
    Ago

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (101674)

  • Can I include a bean inside a customization project?

    Hi,
    I am customizing out-of-the-box Profile (.jsff) pages. I'll have to create a bean which will get binary data from Oracle. I have a project to customize the Profile pages. Can I include the bean inside the project? Or, should I create a separate project, and have the pages referenced to the bean class. How should I go for that?
    Many Thanks

    Hi,
    For now, you can change any attributes on user's profile page like department and etc. What's about if I want to create a dynamic drop-down department list for a user to pick? The department list will be generated from a database source. In jdeveloper, you can have various roles. I'm switching back and forth between 'default' and 'customization' roles. In the default role, I'm going to create a javabean to create the dynamic department list. In customization role, I customize the 'look and feel' of the profile page. This is kind of pain in the neck. Am I going to a wrong direction? Is there anyway of getting the work done without switching.
    Secondly, on the profile page, I use EL to reference an attribute in a javabean. But, when I load the page, it errors out.
    <Jan 24, 2012 3:16:22 PM EST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /edit-basic/view1 URI: /oracle/webcenter/peopleconnections/profile/view/jsf/regions/ootbedit/editbasic.jsff actual-URI: /oracle/webcenter/peopleconnections/profile/view/jsf/regions/ootbedit/editbasic.jsff.
    javax.el.PropertyNotFoundException: Target Unreachable, identifier 'PersonBean' resolved to null+
    at com.sun.el.parser.AstValue.getTarget(Unknown Source)
    at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
    at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
    at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
    at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
    Any help would be appreciated. Thanks.
    Edited by: 891549 on Jan 26, 2012 9:45 PM

  • Can you include navigational attribute in export datasource

    Can you include a navigational attribute in an export datasource?  If so, how.
    Thanks.
    Sandy

    hi sandy,
    i don't think so. navigational attributes are not available. you need to understand that in case of an ODS object the export data source is generated out of the change log table, so if any field missing in the change log table it will not be part of the export data source.
    In case of cubes the characteristics and key figures reflects in the export data source.
    but why do you need navigational attributes in export data source ? it conflicts the nature of nav attributes as you will be storing the history statically with reference to the data when it was loaded. if you really want the same nav attributes in your subsequent data targets then include the characteristic which has the desired nav attributes in your target cube and map it from the export data source of the source info-provider. Switch on the nav attributes in the target info-providers.
    hope it helps
    thanks
    soumya

  • I'm trying to buy something on the App Store but I don't remember my Security questions answers what can I do

    I'm trying to buy something on the App Store but I don't remember my Security questions answers what can I do

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (100016)

  • HT5312 I forgot the answers for my security questions, now I can't get into my AppleID. All because my rescue email address has been deactivated due to inactivity. Now what?

    Here is some bad luck.
    I forgot the answers for my security questions. I want to buy an app in the app store but Apple keeps asking me these questions I can't remember the answers to. All because my rescue email address has been deactivated due to inactivity. Now what?
    I tried to create my old email address again, but funny enough it told me that specific email address was already taken....

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (100112)

  • HT5624 I would like to change ,my password. I signed in but I don't know what was my answer for the 2 security question. How can I change my password?

    would like to change ,my password. I signed in but I don't know what was my answer for the 2 security question. How can I change my password?

    Hello, dot mac & MobtleMe no longer exist, though it may be possible to still use a dot mac addy... or maybe not if expired.
    You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
    On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
    IMAP (Incoming Mail Server) information:
        •    Server name: imap.mail.me.com
        •    SSL Required: Yes
        •    Port: 993
        •    Username: [email protected] (use your @me.com address from your iCloud account)
        •    Password: Your iCloud password
    SMTP (outgoing mail server) information:
        •    Server name: smtp.mail.me.com
        •    SSL Required: Yes
        •    Port: 587
        •    SMTP Authentication Required: Yes
        •    Username: [email protected] (use your @me.com address from your iCloud account)
        •    Password: Your iCloud password
    Also, you must upgrade your password to meet the new criteria:  8 characters, including upper and lower case and numbers.  If you have an older password that does not meet these criteria, when you try to setup mail on your mac, using all of the IMAP criteria listed above, it will still give a server error message.  Go to   http://appleid.apple.com         then follow directions to change your password, then go back to setting up your mail using the IMAP instructions above.
    Thanks to dpepper...
    https://discussions.apple.com/thread/3867171?tstart=0

  • HT5312 How do I reset the security questions so I can buy a book on I tunes

    How do I reset the security questions so I can  buy books on I tunes
    Jan

    You need to ask Apple to reset your security questions; ways of doing so include clicking here and picking a method for your country, and filling out and submitting this form.
    (96005)

  • HT5312 I forget the answers to my security question! How can I change them?

    I forget the answers to my security questions, how can I change them?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104712)

  • HT5312 PLZ help!    I forgot my rescue e-mail and security question. What can i do?

    PLZ help!    I forgot my rescue e-mail and security question. What can i do?

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (99891)

  • I've forgotten my security questions, and I can't find a way to change them. Help?

    I can't remember the answers to my security questions, and I've no idea what to do. Help me please!

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (99102)

Maybe you are looking for

  • Job terminated in source system - Request set to red during delta load

    Hi All, There is issue with the delta load where as full load works fine and it results in below job termination with below log. Job started Step 001 started (program SBIE0001, variant &0000000128086, user ID ALEREMOTE1) Asynchronous transmission of

  • File explorer hang and crashes

    here are the log gged errors Log Name:      Application Source:        Application Error Date:          2013-12-12 11:25:58 AM Event ID:      1000 Task Category: (100) Level:         Error Keywords:      Classic User:          N/A Computer:      pc10

  • LDAP realm for authentication and ACL in Database

    We are thinking of using LDAP realm for authentication and we want to use ACL from a Database. But the documentation says: "WebLogic Server defers to the LDAP realm for authentication, but not for authorization. Authorization is accomplished with acc

  • Change Groupwise LDAP Server Settings

    Hi, When Groupwise was installed (many moons ago) I remember a dialog whereby it requested an LDAP server and needed this to install the domain and post office. We used a replica server for this information (IP address). We now wish to retire the ser

  • ITunes Installation killed my computer

    Downloaded and ran iTuness installation about 2 weeks ago. After running through the installation routine we had to reboot and everything stopped as soon as the keyboard tried to initialize in Windows startup. The keyboard was USB and so I thought ma