Alternative Forward Command Required

Folks,
Quickie..
Is there an alternative to <jsp:forward... e.g.
<%
session = request.getSession(true);
String loggedON = (String) session.getAttribute("loggedON");
if ((loggedON.compareTo("false") == 0))
     { %> <jsp:forward page="logonrequired.jsp" /> <%}%>
Syntax wise it is a pain to use <jsp:forward... in this way... is there an alternative that I can use within the <% tags
Thanks
Angus

I guess you could use RequestDispatcher.forward(), but I never tried that in a JSP page... but I would imagine that jsp:forward just translates to use that anyway...
Or request.sendRedirect() is another similar method, but I'll assume you know the difference between forwards and redirects.

Similar Messages

  • ASDM error - you do not have sufficient privileges to execute commands required to load asdm

    I am getting below error to log in via ASDM for ASA firewall.
    Please help.

    Hello Gurujaj,
    You are running AAA on your network and you are running authorization,
    The user you are using does not have the command authorization set to load the ASDM,
    The ones need it are:
    Commands required to log ASDM
    privilege show level 3 mode exec command logging
    privilege show level 3 mode exec command blocks
    Regards,
    Julio Carvajal

  • FW CS6 Error message: An error occurred. This command requires an active document.

    Hi,
    I've been seeing the following message while saving active documents recently: An error occurred. This command requires an active document. My document does indeed save.
    I'm wondering if a recently-installed (and much-loved) extension could be the cause?
    Has anyone else seen this?
    Thanks!
    --Lucija

    As far as similar problems, I recently opened Fireworks 8 to test the File Management button (the Put command in particular) and found that it triggered an alert message normally produced by Aaron Beall's "Deform to Path" command:
    I tried closing the Path panel, and the alert message was still triggered. (I do have that command also available within the Commands menu, but I'm not sure what was going on there; however, since I don't use Fireworks 8 much anymore and never use the Put command, I decided to leave it alone.)
    Currently, I use Fireworks CS6. Several months ago, I noticed a "migrating panel" bug, where panels within the default configuration had been mysteriously swapped for one another: The Color Palette panel had been replaced by Lorem Ipsum, while the Path panel had gone missing, replaced by the Color Palette panel—bizarre behavior, to say the least. I tried reselecting a default Workspace (as well as a saved one), but it had no effect on the problem. I still haven't taken the time to diagnose and fix the issue, but I suppose it might have somehow been triggered by the Lorem Ipsum panel, which was a custom installation.

  • Could not run the script. This command requires an active document.

    Hi,
    I'm receiving a confusing glitch running a batch process in
    FW MX 2004.
    I want to resize images in one folder and export them to
    another. I step through the batch wizard and on commencement of the
    batch receive an error:
    quote:
    Could not run the script. This command requires an active
    document.
    FW is telling me it can't run the commands on empty
    documents, yet the batch is running on all images selected using
    Add All during the batch wizard. Confusing. Similar batches have
    worked fine in recent days.
    Any ideas?
    Thx

    tkatcher wrote:
    > Thank you. Some of them had brackets and percentage
    marks.
    You are welcome.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Command requires GPIB Controller to be Controller in Charge

    I downloaded the labview driver HP428XA, the 'getting started.vi' works fine, but all other example application vi's keep giving me the following warning:
    'Warning 1 occurred at VISA Read in HP428XA Fetch.vi->HP428XA Frequency Step Measurement .vi. Possible reasons:
    LabVIEW: An input parameter is invalid.
    or
    NI-488: Command requires GPIB Controller to be Controller in Charge.'
    I am a novice when it comes to labview, can anyone offer a solution?
    thanks!

    Hi,
    The two error descriptions refer to the fact that the error code (1) has a different meaning depending on what software component gave the error: labVIEW or GPIB (NI-488.2).
    Since you are able to use the Getting started VI, that means that the GPIB bus, driver and the VISA library are working porperly. Additionally, you would not get a Controller in Charge error if do not explicitly configure the board to be non system controller. labVIEW automatically configures the board to be controller.
    So the error must refer to an incorrect parameter to some LabVIEW function. Open the HP428XA Frequency Step Measurement.vi and use the highlight execution tool to see where the error is generated.
    I couldn't find the instrument driver at www.ni.com/idne
    t, so I didn't take a look at the driver.
    DiegoF
    National Instruments.

  • Use of folder,alternative and command

    hi,
    plz help me to use folder,alternative and command in smartform.where and how it should be used? plz provide step by step guide

    Hi Vishal
    Folder:
    The folder is in the first instance used to structure the form to aid navigation (for example group all the text elements of one row of a template into a folder). Also you can set the page protection of a folder so that all the items in that folder are displayed on one page (for example if you have three text elements you want to always appear together on the same page). The same is true for applying conditions, the condition can be set at the folder level, rather than each element individually.
    Folders are
    The larger a form, the more complex its node hierarchy becomes. For clarity reasons, you can create folders and group nodes in these folders.
    &#56256;&#56452; Examples of the usage of folders:
    &#56256;&#56441; Nodes of a table or a template which are assigned to a specific cell or line can be more easily identified (or moved) in the navigation tree if one folder exists for each cell or line.
    &#56256;&#56441; A dunning form has different dunning texts of which only one is to be output depending on the reminder days exceeded. Create these texts (with conditions) and group them into folders.
    &#56256;&#56441; Several nodes should have the same condition. Instead of setting this condition individually for each node, you can create a folder and then assign the condition to this folder.
    &#56256;&#56452; Folders can also be used to output text with a footer and/or header. Like tables, folders have the Events tab. If you select the Header and/or Footer checkbox on this tab, one or two event nodes appear in the
    navigation tree. Then create your text nodes as subnodes of these event nodes.
    Reward points if it helpful
    Cheers,
    Govind.

  • Command requires GPIB Controller to be Controller in Charge on dequeue element

    I have some funky stuff going on in the attached VI. What the VI does is simply to log data to a text file. It is built up as a state machine. This VI's Create state is called from a mainVI (with the help of named queues). I get more than one error and it seems completely random.The error usually occurs if I stop the mainVI, then starts it again. So the second (or following) times the DP VI is called, I get random errors such as the two below:
    Error 1 occurred at Dequeue Element in DP.vi->PSS.vi
    Possible reason(s):
    LabVIEW:  An input parameter is invalid.
    NI-488:  Command requires GPIB Controller to be Controller in Charge.
     Error 1 occurred at Close File in DP.vi->PSS.vi
    Possible reason(s):
    LabVIEW:  An input parameter is invalid.
    NI-488:  Command requires GPIB Controller to be Controller in Charge.
    Why is this? I don't even have a GPIB controller?
    Solved!
    Go to Solution.
    Attachments:
    DP.vi ‏61 KB

    Siniz wrote:
    blawson, I think you found the error!
    So shift registers only gets uninitialized again if I close the actual VI, and not when I start executing it again? So in reality, they actually behave like real shift registers? I found two solutions to this problem.
    1) To initialize the error shift register with an empty error constant.
    2) To remove the wire from the shift register to the Write to Text File. This works since I always call the Create state first.
    Which one would you recommend?
    Also, what is the reason to keep the typedef strict? I have seen non-strict in other code.
    Generally you should always explicitly initialize your shift registers unless you want to retain the values from one execution to the next. This is required for Action Engines but in most other cases you should use initialized shift registers to avoid side effects like you encountered in this application.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How do I enable the "forward" command for my email?

    When I am at my inbox and reviewing received emails, I am unable to forward any to any other email addresses. The "forward" command is "greyed out", indicating it is not activated/enabled. Not sure how to correct that.

    Hello bendercm, '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • ORA-15072: command requires at least 2 regular failure groups, discovered only 1

    Hi,
    I'm trying to create a diskgroup for a temporary purpose. I didnt mention the type of redundancy. When i ran the below command i got the mentioned errors.
    SQL> Create diskgroup temp_dg disk '/dev/mapper/003w1_e2p5' attribute 'compatible.asm' = '11.2.0.0.0';
    Create diskgroup temp_dg disk '/dev/mapper/003w1_e2p5' attribute 'compatible.asm' = '11.2.0.0.0'
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15072: command requires at least 2 regular failure groups, discovered only 1
    When i used two disks, then diskgroup got created.
    All the diskgroups in ASM are of EXTERNAL redundancy.
    SQL> Select distinct type from v$asm_diskgroup;
    TYPE
    EXTERN
    I would like to know why it was asking to create diskgroup of NORMAL redundancy. Is there some thing like default REDUNDANCY in ASM.
    Please share your views.
    By,
    Step Into Oracle DBA

    Hi,
    When i used two disks, then diskgroup got created.
    Becuase default redundancy for create diskgroup is NORMAL.
    SQL> Select distinct type from v$asm_diskgroup;
    TYPE
    EXTERN
    Did you  sure your diskgroup is created?
    Mahir

  • ASA5505 base license "no forward" command

    I try to configure ASA5505 base license. I created 3 interface vlans; inside, outside, dmz by following this sample:
    http://www.cisco.com/en/US/docs/security/asa/asa72/configuration/guide/examples.html#wp1034897
    But I cannot ping from inside to dmz.
    Error log is "Connection attempt was prevented by "no forward" command: icmp src dmz:192.168.20.2 dst inside:192.168.10.2 (type 0, code 0)"
    Could anyone help figuring this issue ? Thank you in advance.

    What is the security level of the DMZ interface, if possible paste 'show nameif' output.
    Regards
    Farrukh

  • Forward command.....

    I have a flv file....I build controller with forward button
    and also back button....
    Is it possible to use a forward command in this case...I know
    I can use stop or play...but as for forward with flv file ?

    I guess you could use RequestDispatcher.forward(), but I never tried that in a JSP page... but I would imagine that jsp:forward just translates to use that anyway...
    Or request.sendRedirect() is another similar method, but I'll assume you know the difference between forwards and redirects.

  • AppleScript, Mail.app - Forward command doubles content - Mountain Lion

    I'm trying to write an AppleScript to Forward or Redirect an email. It works fine but doubles up the content when I change any of the new emails details. Eg the subject, 'to recipient', etc.
    My code is:
    tell application "Mail"
              set theSelection to selection
              set theForwardedMessage to forward (item 1 of theSelection) with opening window
              tell theForwardedMessage
                             set subject to "{plain} " & subject
              end tell
    end tell
    This is under Mountain Lion, 10.8.2, Mail.app is version 6.2 (1499).
    Any help would be much appreciated.
    TIA, James.

    Thanks Pierre. That's really helpful.
    On its own that didn't work, but if I put in a 'display dialog' command it does. Ie this works:
    tell application "Mail"
              set theSelection to selection
              set theForwardedMessage to forward (item 1 of theSelection) with opening window
              set theSubject to subject of theForwardedMessage
      activate
              tell application "System Events" to tell process "Mail"
      display dialog "1"
                        tell text field "Subject:" of window 1
                                  set focused to true
                                  set value to "{plain} " & theSubject
                        end tell
              end tell
    end tell
    I also want the recipient filled in, but it doesn't work for me. In this code it displays the 'A' dialog then stops:
    tell application "Mail"
              set theSelection to selection
              set theForwardedMessage to forward (item 1 of theSelection) with opening window
              set theSubject to subject of theForwardedMessage
      activate
              tell application "System Events" to tell process "Mail"
      display dialog "1"
                        tell text field "Subject:" of window 1
                                  set focused to true
                                  set value to "{plain} " & theSubject
                        end tell
                        tell text field "To:" of window 1
      display dialog "A"
                                  set focused to true
      display dialog "B"
                                  set value to "[email protected]"
                        end tell
              end tell
    end tell
    Ie it never gets to the 'B' dialog.
    So perhaps that field is called something else? How do you find out what the 'To:' field is called?
    Thanks,
    James.

  • Alternative Editing Methods Required...Please!

    As someone who is somewhat less than expert at image editing (But learning, fast!), I have spent the best part of a day attempting to edit a b/w image which required extreme tonal changes in several parts of the image. After making complex multiple selections around a line of trees, then saving, inversing, saving again and applying adjustments to each, I have been left with an image which clearly looks retouched. There is a definite "boundary line" between the selections along the tree line, which makes it look like one part of the image has been cut out (poorly, with blunt scissors) and stuck onto the other image. No modification of the selection edges has improved things.
    Serendipitously, I discovered an alternative method on a video tutorial, which uses the layer masks in adjustment layers and applying a brush to restore the various parts of the image back to it's original state. Not only is this method far more effective, it is also much quicker. I managed to do the same "day long" job in about ten minutes.
    This leads me to ask the following questions:
    1. Are there other methods to achieve the same or better results? If so, what are they?
    2. If the selections method I first adopted is better, when done properly, what should I be doing differently?
    I'm sure there will be those whose suggestion will be "if you've found a method that works, stick with it". However, this a learning exercise for me and the more methods I know , the more proficient I hope to become.
    Thanks in advance.

    Yes Mark, I've tried feathering. In fact I've tried feathering at various levels from 1 pixel up to about 50 and I've expanded and contracted the two selections next to each other. In fact I've tried all sorts of permutations using Refine Edge. One thing I've noticed is that the inferior effect I'm getting happens when I'm working with two opposing selections (and by that I mean I make a selection, save it, then inverse the same selection and save that. So I'm working with two layers which fit together like a jigsaw puzzle). This doesn't happen when I make only one selection. I'm thinking that I really should only work this way. As I mentioned in my question, the latter technique works well, which is effectively the same thing.  Two opposing selections just seem to collide together.
    But if you know of additional methods, I'd be grateful.
    Thanks for your input.

  • UNIX command required to elevate end user Admin privs on  mac

    Hi All,
    I thought this would be easy but we've drawn a blank.
    So much detail online and in the ARD manual seems to be about setting admin priveledges for end users of actual ARD.
    What we would like to do is to make the user an administrator of their computer temporarily.
    So rather than browse to their computer, take control, log them out, log in as administrator, go to accounts and then select eheir account and tick the "Allow user to admister this computer" box - I was looking for a UNIX command that coudl be sent.
    Any help greatfully recieved.
    thanks
    Gareth

    I believe this will work, but test it on a testbed system first. Send the following UNIX command to the target computers:
    dscl / -append /Groups/admin GroupMembership ARDusername
    where "ARDusername" is the user you want to add to the admin group. To remove the user's admin rights, substitute -delete for -append.
    Hope this does the job for you. If not, it should be close, so persual of the man page for dscl should help you to the correct syntax.
    Regards.

  • IOS port forwarding commands for Port Forwarding

    I am trying to open up port 32400 on my 881w Cisco router but I have not had any success I need to configure manual port-forward to enable my Plex Media server. Can someone help me out wiht this set of cmds?
    Thanks!

    Hello Jonathan,
    You have to configure ip nat inside on inside (LAN) interface and ip nat outside on WAN interface.
    Then you canconfigure portforward:
    ip nat insdie source static tcp 10.0.0.10 1122 150.0.0.1 2233
    tcp - protocol, which you want to forward TCP/UDP
    10.0.0.10 - IP address of your private device
    1122 - port on your private device which you want access
    150.0.0.1 - public IP which will represent your private device in internet
    2233 - public port which will be forwarded to defined port on private device
    Make sure that you do not filter traffic with ACL on your WAN or LAN interface.
    Best Regards
    Please rate all helpful posts and close solved questions

Maybe you are looking for

  • Hooking iPhone up to my new router

    I just purchased the new 6th generation airport extreme.  I have a 2nd generation square airport extreme I am successfully using to extend the network.  The problem is it does not work for my iPhone 4s.  My iPhone will connect to the new router, but

  • ICloud Blocked 2012-07

    Dear Matt K Good day to you. as my problem encounter here which is  my iCloud account being ask to reset and re enter password many times. Although i am follow the order instruction from your pop up web boxes. i am still not receiving any result of s

  • Remote Monitering problem in uccx 8.0.2

    Hi All, We are using uccx 8.0.2 ,We configured remote monitering feature in call center ,Some time monitering some number not able hear conversation the phone is silent after that all agent desktop hanging around 1 min waht is problem please conisder

  • File size in finder ' get info' does not refresh

    I'm moving files about and need to check how large the folders are (in preparation for burning a dvd). 'Get info' is not refreshing the file size (and it's not just enormous folders). I have installed 'Refresh Finder' but it doesn't make any differen

  • How do I manage where the tab-bar is displayed in Firefox 29?

    The config setting (browser.tabs.onTop set to false in about:config) is not working in Firefox 29 -- Please have the Developer Team fix this. By not correcting this, the "new" Firefox has eliminated useful features, notably, the ability to place the