Using redirect /

Hi,
I tried using the <redirect />-Tag in the faces-config.xml. The result is,
that a page, which was the result of an post request, is "changed"
to a page, which was the result of an get request.
I also understand the post/redirect/get-Pattern, which was used
behind that. But what exactly happens in jsf, when I use the <redirect />-Tag?
Thanks,
Andy

Hi Andy
as i understand, JSF performs an HTTP redirect and calls
responseComplete() on the FacesContext instance for the current request.
Cheers,
Matthias

Similar Messages

  • When To Use redirect/ In faces-config.xml

    In what situations should I use <redirect/> in faces-config. I understand what that using it causes it to generate a HTTP redirect instead of redirection through the view handler.
    I have ran into situations where if I don't use redirect, evein in a request scoped bean data isn't completely cleared out of a form. IE I have a list of users with a list of their addresses. If I look at an address on user 1 I see the right details, if I then move to user2 and look at one of his addresses it reflects the information from user1. As soon as I add <redirect/> the problem disappears.

    You normally use it to fire a brand new request.
    If I look at an address on user 1 I see the right details, if I then move to user2 and look at one of his addresses it reflects the information from user1. As soon as I add <redirect/> the problem disappears.This rather sounds like faulty code logic. Debug it.

  • Keep System.in open when using redirection

    I am using redirection for System.in but when I go to read a second line the stream has closed so all I get is null.

    You need to explain a bit better about what you are asking.
    System.in only has three read methods and none of them can return null, so you must be referring to something else.

  • Attachments converted to plain-text when using redirect rule

    When I redirect emails using a Mail rule, any attachments (as well as the entire message) are converted to plain text with extra control character, rendering the attachment unviewable. This does not happen when I manually redirect an email. Any help you can provide would be welcome.

    When I redirect emails using a Mail rule, any attachments (as well as the entire message) are converted to plain text with extra control character, rendering the attachment unviewable. This does not happen when I manually redirect an email. Any help you can provide would be welcome.

  • Payment processing using Redirect Integration

    It seems likely I'll need to customise Verify.aspx so that the submit button passes order information to be processed by an external payment service and then back to the Webtools site with either a confirmation of Credit Card Charge  and subsequent Webtools processing or a denial of authorisation.
    This will mean hiding the existing btnOrder and replacing it with a new button which one the has the necessary code to interface with the provider
    I'd Imagine that I'd need some of the existing code in the submit button in order to achieve the subsequent processing that webtools requires following a completed and successful payment transaction.
    Is this correct and if so how do I get hold of this code?

    Geoff
    Have you tried editing the checkout webflow? You can insert your own billing page that the shipping page redirects to, then in that custom page you can redirect back to verify
    Also, there is credit card gateway functionality built into the core product. In the UK and Ireland I believe you can use Ogone to do cc authorization.

  • How to use Redirect syntax in jsp?

    Hi guys I need your advice. For my web application, upon user clicks on the log out button I will redirect the user back to the main in a given time frame of 5sec for example.
    How do I write the redirect syntax? Please help I am a newbie in JSP.
    Regards,
    ~LEroy

    if u want to redirect after some time use this script. May be it will be helpful
    <SCRIPT LANGUAGE='JavaScript'>
    function f1()
    <%
    <jsp:forward----- forward to ur page");
    %>
    setTimeout('f1()',2000);
    </script>
    here 2000 milliseconds. try with this

  • Problem with page size when using redirected printer

    I have a customer who connects to another customer's network via VPN, then logs into and RDS server running Server 2012.
    This customer then opens an Excel file and tries to print it out to a printer that is local to her and of course shows as redirected when looking at Devices and Printers in her login on the RDS server.
    The problem is that when going to File / Print on the Excel document, the page size is listed as Custom Size and if you try to select any other size from the list, it won't accept it and stays at custom size. If she selects another redirected local printer,
    she can choose whatever page size she wants.
    This is not selecting the paper size. She can change that on either redirected printer. So when she is trying to print an Excel file on legal size paper, the print comes out reduced as if it is trying to print on letter size paper even though legal size
    paper is selected.
    I hope my description is clear enough. If not, please let me know and I'll try to explain further. So I'm trying to find how to fix this one redirected printer (a Brother MFC-7860DW) so that she can change the page size so when the document prints it occupies
    the full sheet of legal size paper.
    Jonathan

    Is there is a difference in printer driver for working and non-working redirected printers? If yes, can you match it?
    Do you see the same behavior if you use Generic Text Only inbox driver?
    Thanks
    Hari Kumar --- Disclaimer: This posting is provided AS-IS with no warranties or guarantees and confers no rights

  • Using redirection operator ( ) in Runtime.exec()

    I am trying to execute a command "cat abc.txt > 123.log" from my Java program using Runtime.exec(). However, the exec() command isnt able to interpret ">" as an operator, instead it uses this as a string. Any suggestions on how I can run the above command using exec()???

    hi hiwa,
    could u tell me, why dont this
    e, why dont this program is not clearing the screen
    in linux. though some commands are working like
    "poweroff", "reboot"..
    public class ExecuteCommand{
    public static void main(String[] args) throws
    ws Exception{
    String[] cmd = {"sh","-c","clear"};
    //String cmd = "clear";
    Runtime rt = Runtime.getRuntime();
    rt.exec(cmd);
    Commands like "poweroff" and "reboot" work on underlying system while "clear", "cd" etc.
    work on current shell. Current shell is the shell on which we have invoked java command.
    But the shell java runtime invokes is not(can't be) current shell but its child, a sub-process.
    Thus we don't see current shell window cleared by a java runtime program.

  • Using a variable in Struts config, to redirect

    In the struts-config file,
    to redirect to a different site, I can use
    redirect="true"
    and mention full path, in my <forward path=
    variable.
    1. Is there a better way to do it?
    2. Since I have to do it in multiple places, is it possible to use a variable? I mean, something like this
    <forward
    name="success"
    path="URL/abc.html" />
    Where URL is a variable name that the site path? This way, I can reuse the variable to redirect to other pages too (xyz.html, for example)

    Hi there,
    I don't know...is there only one URL you are using ore are there more than one? Because if it's the same path everytime you can try using this:
    <forward
    name="success"
    path="./abc.html" />
        ./               // This is the shortcut for the directory you are currently using.
        ../              // This is the shortcut for the directory above the one you are currently using.This code should do it. If not, try to create a var named for example "vpath" and put it like this:
    <forward
    name="success"
    path=vpath+"abc.html" />Try and tell if it worked ;)
    X--spYro--X

  • Redirect Document Recovery using registry setting or Group Policy

    Hi all, I am deploying In Design CS5.5 (version 7.5) on several Windows 2008 R2 SP1 Citrix servers. The users login to the server and use the server desktop to run applications. For many apps we have used redirection for cache folders etc to try and keep the user's windows profile as small as possible. When an application uses the registry to store its file paths then this can easily be done with group policy, I haven't been able to find any key for In Design that holds the Document Recovery path or any other cache type paths.
    Does anyone know where this path is stored?
    Any recommendations for methods on redirecting adobe paths out of the user's profile?
    All help appreciated !
    Nick.

    The path to the recovery folder is stored as part of the User's application preferences in InDesign Defaults, I believe. There is  Browse button under FIle Hnadling that lets the user choose the location for the folder.
    I don't know if it will help you, but I maintain a group of workstations for the student paper at the local community college, all of which have DeepFreeze installed making a local recovery folder useless, so I set the folder on one machine to a network drive, then cloned the prefs to the other workstations. Seems to work great.

  • Possible bug using go tag with redirection under SSL?

    I've been testing an application under SSL and have noticed that some links "pop-out of SSL". Upon further inspection I noticed the links were using <go> tags with redirect set to true.
    Does anyone know where <go> gets the URL it uses? I'm wondering if this might be a webcache configuration issue or appserver config issue.
    note: using AS 10g 9.0.4.1.1
    Thanks in advance!
    /SFL

    Hi all,
    Just thought I'd update on resolution. As suspected, an AS config issue was responsible for this glitch. Long story short WebCache can communicate in 2 ways w/ an origin server (HTTP or HTTPS). You can have WebCache use SSL w/ the client and still communicate with the origin server using HTTP (which was our case). PITFALL: the origin server is unaware of the use of SSL by the client (WebCache only "knows"). SINCE THE ORIGIN SERVER IS THE ONE EXECUTING THE <GO> TAG, when using redirect=true attribute with the tag, the URL generated by the rewrite routine is HTTP and not HTTPS as one might expect when accessing the app via SSL.
    Hope I can spare someone else the headache...
    Cheers!
    /SFL

  • Control the page height and page width of pdf report using pasta_pdf.cfg

    Hi All,
    I've followed the note: 338990.1 (how to print publisher PDF reports via the concurrent manager) in metalink to print a PDF REPORT. Everything work fine except the page height and page width is used as default (8X11). Is there anyway that i can custom page height and page width size such as: legal (8.5X14).
    current set up in pasta_pdf.cfg
    [DEFAULT]
    %% ============== Preprocessing Command ==================== %%
    % Pasta can use a preprocessing command to invoke any executable
    % that supports an input file and an output file (a filter program).
    % You can use redirection. Pasta will invoke the filter program
    % to preprocess the Pasta output before passing it to the printing
    % command. By using the preprocess option, you can generate output
    % formats other than the formats Pasta currently supports. For
    % example, you can generate PCL output.
    % You can use {infile} and {outfile} in this option.
    % {infile} is the output file generated by Pasta. You can use
    % it as input for the preprocessing command. It is a temporary
    % file and will be deleted after being passed to the
    % preprocessing command. {outfile} is the output file generated
    % by the preprocessing command. Pasta names it temporarily and
    % it will be deleted after being passed to the printing command.
    % If you want to keep it, you can name it by using the '-o'
    % command line option. Pasta will copy {outfile} to the file you
    % specify.
    % Preprocess for PDF output
    % This is an example for PDF output to print.
    ; Xpdf
    preprocess=/usr/local/bin/pdftops {infile} {outfile}
    ; Ghost Script
    ; preprocess=pdf2ps {infile} {outfile}
    ; Acrobat
    ; preprocess=acroread -toPostScript -pairs {infile} {outfile}
    %% ============== Printing Command ========================= %%
    % You can specify the printing command and options you want
    % to use to print your report. Pasta will pass the final output
    % to this command. {printername} will be replaced by the
    % actual printer name passed through the command line option
    % (-pn), so in most cases you don't have to change these
    % options.
    % for UNIX platform
    printCommand=lp -c -d{printername}
    % for Windows platform
    ntPrintCommand=print /D:{printername}
    %% ============== Error Log File =========================== %%
    % This tells Pasta to create a log file. The default error
    % output is stderr.
    ;errorlogfile=pasta.log
    NOTE: pasta version 3.0.4
    form server 6.0.8.27.0
    third party tool is pdftops
    Thanks
    Kevin

    i think that can be down from the printing direver/styles/prt files when you added the printer at your apps system check the follwoign for more info.
    ( How to Implement Printing for Oracle Applications: Getting Started )
    Note:269129.1
    (Step By Step Guide to Set Up a Printer in Oracle Applications)
    ( Note:60936.1)
    fadi
    http://oracle-magic.blogspot.com

  • Using select list as default value in tabular form.

    Hi,
    I am using Application Express 4.1.0.00.32. I have two questions that are related.
    I have a Select item *'P1_SELECT'* and a tabular form My Items.
    Question 1. The My Items tabular form col1 Attributes are set Display As Text Field, and the Tabular Form Attributes are set Default Type = item(application or page item name), Default = P1_SELECT. I have checked the session state value is set on P1_SELECT ie. Fred. What I need to know is, why, when adding a row to the tabular form My Items does col1 not display 'Fred' as the default value from the select item P1_SELECT? I can change col1 of the Tabular form to be Display as Text (save state) and this will work. However that leads me on to:
    Question 2. After adding say 3 rows to the form, I then change the select P1_SELECT value to Bob and Bob is now set in session state on the P1_SELECT item, but when I again add row to the form the value Fred is still the value not Bob. It seems that the tabular form keeps the default value as Fred and not Bob. How can I get this to look or work like:
    col1_
    Fred
    Fred
    Fred
    Bob
    Your help is needed.
    Thanks.

    Howard (DBA in Training) wrote:
    Do you submit the page or set the value after changing the selection? If not, the display value seems to be Bob but the working value is still Fred. That's what you are seeing right? In the "Settings" section, what do you have for "Page Action when Value Changed". I've been using "Redirect and Set Value" because I was staying on the same page after the selection.
    Additional info which might be helpful (or NOT). ====================
    NOTE: I am just a novice's novice with APEX and I had much agony with Select Lists. It was challenging to have the Select List value displayed because there seem to be so many different sources of the Select List value, namely:
    1) the current value in the session state
    2) the value you can specify in "Source value or expression" in the "Source" section of the Select List item
    3) the value you can specify in the "Post Calculation Compution" in the "Source" section of the Select List item
    4) the value you can specify in the "Default value" of the "Default" section of the Select List item
    [Now, if I've misdescribed any of these, remember, this is from a novice's perspective.]
    It's like putting a clock (back) together. Get any of the pieces wrong and it will probably not work right.
    I had an addiitonal challenge in that I wanted the same Select List displayed on multiple pages and for the currently selected value (from the former page) to already be set on the new page when it was displayed. What fun!
    To see what I did here: http://apex.oracle.com/pls/apex/f?p=43250:101 login Dever/Ima9Dever
    Remember, I'm doing many things you will likely not need to do. I iniitalized the Select List for the first time it displayed. I copied the Select List value from old page to new page by storing it in an application item F217_SYS_NIC_NM.
    Best wishes,
    HowardHi Howard,
    You don't have submit the page for just setting one item's session state. you can use a Dynamic Action OR use Page Items to Submit property if available (this is available in various places such as sql region,chart region etc)
    In context to this question you don't have to do any of those..just see my example above
    Thanks

  • Not Using Index on File Server When Accessing User Files Directly on Server

    It appears to me that on a server with an indexed network share (Desktop Experience and Search Indexing roles/features installed), if you access the share directly on the server using its drive path, you can search the folders using the index, which
    is much faster and supports finding words inside of the files in seconds). However, if you access the same shared folder via its network path from the server itself, the server ignores the index. I have this experience/problem across all shared folders on
    the Windows 2012 R2 Server. Details and my most specific goal follows.
    In addition to a laptop, I frequently work directly on a Windows Server 2012 R2 computer. We have Redirected Folders set up on DFS (for failover redundancy) so that my Documents folder is in:
    \\network\redirections\user\documents. This all works fine on Windows 7 and 8 client computers connected to the network via Offline Files.
    The problem is on the server itself. The server has Desktop Experience enabled and Windows Search is installed. If I navigate manually through the DFS root folder to my documents folder, I can search and it properly uses the index. This proves the location
    is properly indexed. However, if I access the folders through the official "Documents" folder from the Folder Redirection (a network share pointing to the same server computer I'm working on), it performs an un-indexed search (slow and ignores file
    contents, but does find files eventually if the search term is in their filename). Is there a way to force the server to use the indexed search on the Redirected Folders (my Documents folder in particular) when working on that server when logged in locally
    on that server?
    I suspect a workaround would be to go into the Registry and manually change the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders to point to the local DFS folder instead of the network share name, but at least one problem
    with this is then if I save files with links to other files (e.g., a linked Excel table in a PowerPoint, a mail merge to Access database in Word, etc.) on the server computer, those links will point to d:\DFSroot\... (a physical drive on the computer) instead
    of \\network\redirections\user\... (a universally accessible network path) and so none of the other computers will be able to find the linked files, defeating one of the
    major benefits of using Redirected Folders.
    I can't believe that I need to choose between indexed searching and proper path names in saved files. Surely there is a way to use an indexed search on the server itself?
    If you need any more info to help me troubleshoot, please let me know.
    Thanks for any help,
    Colin

    Hi Colin,
    It seems that we can not use indexed search on DFS shares. Windows Search works well when users directly access the server. That is, the server is not made available through Distributed File System (DFS).
    For more detailed information, you could refer to the links below:
    Windows Search Service, Clustered File Services, DFS, Win7 Libraries
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/31ac4c16-948b-4ca4-b18f-3a339cdfd5b9/windows-search-service-clustered-file-services-dfs-win7-libraries?forum=winserverfiles
    Windows Browse and Organize Features
    https://technet.microsoft.com/en-us/library/dd744693(WS.10).aspx
    Best Regards,
    Mandy 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to manage a "nice" url if APEX uses web pl/sql and not Apache?

    Hi all,
    How can I create a pretty url without using redirects or frames since APEX is using web pl/sql and not Apache? This is on version 4.0.1. We want the users to access the Apex App from a nice url without the traditional long url.
    Thanks,
    Veena.

    How can I create a pretty url without using redirects or frames since APEX is using web pl/sql and not Apache? This is on version 4.0.1. We want the users to access the Apex App from a nice url without the traditional long url.Hi,
    check out the last part of this blog post:
    http://ora-00001.blogspot.com/2009/07/creating-rest-web-service-with-plsql.html
    - Morten
    http://ora-00001.blogspot.com

Maybe you are looking for

  • Change Data Capture on a db in NoArchivelog mode

    I am trying to test an implementation of CDC on a database in noarchivelog mode, but I'm not having much success. All the documentation I've read does not make it sound like it is required, but there are no guides on doing it. I am attempting to use

  • Eprint error creating account: Ajax submit failed: error = 403, Forbidden

    I am trying to create an eprint account. but when I hit submit I get: Ajax submit failed: error = 403, Forbidden I am running from a mac with OSX 10.8. And a new HP Photosmart 6515. The browser is Safari version 6.0. I've tried different namse, scree

  • Appearance in different browsers

    My web pages look fine in Safari, but lose almost all formatting in Firefox and Explorer. Is there a setting wrong that I can adjust or do I have to live with it? Thanks.

  • Conecction to the ccm database

    Hi guys.. i mpretty new to this topic... plz be kind.. :-) i m trying to change the busytrigger value in the database of ccm 6.0 with an sql command. how can i connect to the ccm database, where is it located and how is it called..?? Thanks for help

  • Job scheduling in ALE

    Hai,   My Requirement is like if i create a PO in one server it has to be convert as SO in another server.its working in properly  both the servers.i want to know how to do job scheduling(The interface needs to run once a day at particular time).Give