Redirect from one ADF SSO application to another ADF application
Dear All
I've 3 ADF application developed which have 3 different context roots
1. /XXXXView (http://<server>:<port>/XXXXView/)
2. /YYYYView (http://<server>:<port>/YYYYView/)
3. /ZZZZView (http://<server>:<port>/ZZZZView/)
Without ADF security being implemented I could redirect from one application to other using below code:
FacesContext fc = FacesContext.getCurrentInstance();
ExternalContext ectx = ctx.getExternalContext();
ectx.redirect("/YYYYView");
Then I implemented ADF security in /XXXXView application and also protected the application in OAM (the port changed to <ssoport> and the new URL is http://<server>:<ssoport>/XXXXView/). After implmenting ADF security the rediection from /XXXXView to other applications stopped working and gave the below error.
IllegalStateException: Response already committed
Thinking one ADF secure application might not redirect to another non ADF secure application, I also implmented ADF security in /YYYYView. But no luck. Still redirection didn't work.
Even I tried using the below code after following the blog (http://adfdeveloper.blogspot.in/2011/07/adf-auto-redirect-while-still-passing.html)
FacesContext fctx = FacesContext.getCurrentInstance();
ViewHandler vh = fctx.getApplication().getViewHandler();
UIViewRoot viewToRender = vh.createView(fctx, url);
fctx.setViewRoot(viewToRender);
fctx.renderResponse();
Still redirection didn't work. It will be of great help if anyone can help me resolving this issue.
Regards
Sibs
You will want to look into Component Usage in Web Dynpro.
http://help.sap.com/saphelp_nw04s/helpdata/en/0e/496ad66c601349a730502d3ea26e05/frameset.htm
Regards,
Rich Heilman
Similar Messages
-
Redirecting from one application to another
Hi All,
Anybody please tell me how to redirect from one application to another.
I have two application one is a1 and second is a2 inside orion.
a1 has a jsp file named a1index.jsp. and a2 has a jsp file named a2index.jsp.
in a1index.jsp file I am using response.sendRedirect("\a2\a2index.jsp") and redirecting to a2index.jsp. But it doesn't open a2index.jsp file as the syntex is not correct. .
Anybody please tell me what is the correct syntax to redirect from one application jsp to another jsp...
please reply soon..
Thanks in advance.......thanks for your reply, but it is giving following
error.......
Error parsing JSP page /admin/login.jsp
Syntax error in source/admin/login.jsp.java:23:
cannot resolve symbol (JSP page line 2)
symbol : variable RequestDispatcher
location: class /admin/login.jsp
RequestDispatcher =
getServletContext().getContext("a2/fabricatoradmin").g
etRequestDispatcher("\fablogin.jsp");
^
/admin/login.jsp.java:23: cannot resolve symbol (JSP
page line 2)
symbol : method getServletContext ()
location: class /admin/login.jsp
RequestDispatcher =
getServletContext().getContext("a2/fabricatoradmin").g
etRequestDispatcher("\fablogin.jsp");Thanks
please reply..Inside a jsp file u can use the application variable instead of using
getServletContext()
like application.getContext("/a2").getRequestDispatcher("/fabricatoradmin/fablogin.jsp");
regards
Pravin -
Pass data from one web application to another web application
Hi,
Please provide suggestion for following scenario:
Scenario: Basically the aim is to transfer large amount of data from one application to another and display JSP of second application.
User enteres data on a JSP of one web application. When he submits that data, another web application opens in new window and data from first application should be passed to this second web application. Another web application will display that data on its own JSP. User can perform whatever he wants on second application screen.
Possible solutions:
1) response.sendRedirect(): This makes GET request. But, there is large data to send. So, GET is not effective.
2) forward(request, response): Can't use as I have to pass data to different application that is in another context.
3) URLConnection: Here, I can make POST request and set attributes in HTTP request and make connection to another application. I can pass data using output stream. But, I can't display second application JSP to user even if I use input stream to read response. Because control will be ultimately in first application only.
Is there any othe method to achieve this or any of the above options extendable?
Please give your inputs.Hi,
According to your post, my understanding is that you want to migrate list data from one web application to another.
We can migrate list data programmatically, there are some articles for your reference.
http://blogs.msdn.com/b/tejasr/archive/2007/11/12/code-snippet-copy-list-data-between-sites-programmatically.aspx
http://www.fivenumber.com/copy-sharepoint-list-items-from-one-site-to-another-programmatically/
http://geekswithblogs.net/AnneBougie/archive/2009/01/23/copy-a-sharepoint-list.aspx
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Passing data from one UIX XML page to another UIX XML page
What are the various ways of passing data from one UIX XML page to another UIX XML page?
(a) If no bc4j is used.
(b) If bc4j is used.
(c) If my event handler calls:-
public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
then how can I pass data to the next UIX XML page?
Thanks,
Paul.What are the various ways of passing data from one UIX XML page to another UIX XML page?
(a) If no bc4j is used.For forwarded URLs; HttpServletRequest attributes [request], HttpSession attributes [session], ServletContext attributes [application].
For redirected URLs; HttpServletRequest parameters url, HttpSession attributes [session], ServletContext attributes [application].
(b) If bc4j is used.For forwarded URLs; BC4J Session properties.
For redirected URLs; BC4J Session properties IF release mode is NOT stateless.
(c) If my event handler calls:-
public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
then how can I pass data to the next UIX XML page?Return a UIEventResult (extends EventResult) from your event handler that has a data provider attached.
This data provider will be accessible in the next page with the name "ctrl:eventResult", where "ctrl" is the short prefix for the namespace "http://xmlns.oracle.com/uix/controller".
Regards,
John Fallows
Oracle Corporation. -
How can i copy files from one external hard disk to another using macbook pro with retina display
How can i copy files from one external hard drive to another using macbook pro with retina display?
That's odd - if you open Disk Utility (Applications->Utilities) and select the disk(s), how are they formatted? If you're only going to be used with your Mac, they should be formatted as "Mac OS Extended (Journaled)".
Clinton -
Navigating from one Web Dynpro app to another not belonging to same project
Hi All,
I wanted to know is it possible to navigate from one Web Dynpro app to another which does not belong to the same project. if yes how.
Regards
SidHi Siddarth,
If you want provide the interaction between two Web Dynpro applications then you must develop those projects as Development Components as DCs provides the reusability of the components created.
You can through these link to find out more information:
Where to start DC creation ?
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383</a>
Server Side Eventing:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/19e6e990-0201-0010-eca6-a62e342eaad3">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/19e6e990-0201-0010-eca6-a62e342eaad3</a>
Regards,
Jhansi -
Move WIKI data from one Mountain Lion Server to another
Hi.
I followed the instruction here:
http://support.apple.com/kb/HT5585
Under Copying all wikis from one OS X server to another OS X server, I am not even able to execute:
sudo pg_dump --format=c --compress=9 --blobs --username=collab --file=/tmp/collab.pgdump collab
It gives this error:
pg_dump: [archiver (db)] connection to database "collab" failed: FATAL: role "collab" does not exist
Any idea?
I just tested it on the productive server as well as a brand new install. Same outcome.
which then I moved the: /Library/Server/Wiki/FileData over but even stop/start, restart, wiki server is running but not able to load content, it's like it's been wiped clean.
matthewtry it and RATE correct answers
Hello Matthew
You're looking in the wrong spot
First things first - make yourself default sudo with sudo -s then you can forget prefixing it all the time.
If you just use pg_dump then it'll take the command from the /var-Directory - that's the wrong version
You have to specify the path for the Socket where the PSQL-Database for the wiki really is located by using the -h-option - it's not the default
that's why you get the error that role collab does not exist since you're connecting to a database in place where the role collab truy isn't part of it.
So - if you'd like to export the wiki-DB us the following and adapt the filename to what you like it to be.
bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -f /Volumes/USBSTICK/wikidatabase.pgdump -U collab collab
The first block specifies the "not default" pg_dump you'd like to use
The second block (-h "/Library/.....) tells pg_dump where to find the DB
The third block tells pg_dump to use port 5432
The fourth block (-f /Volumes/......) tells pg_dump to place its output into this file
The fifth block (-U collab) tells pg_dump to do this is role collab
The sixth block tells pg_dump from with DB to dump from
In your case extend my provided command with your options --format=c --compress=9 --blobs like this:
bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -F c --compress=9 -b -f /Volumes/USBSTICK/wikidatabase.pgdump -U collab collab
BTW- you can connect to the database, of course:
bash-3.2# psql -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 collab collab
try it and RATE correct answers
Here is my thread https://discussions.apple.com/thread/5751873 -
Communicate from one bounded task flow to another bounded task flow
Hi All can someone let me know how to communicate from one bounded task flow to another bounded task flow.
Hi,
you use contextual events to communicate from one region to another. Have a look here:
http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_adv.htm#CACJBFGI
Also keep an eye on
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfinsider-093342.html
At the end of this week or beginning of next week I am recording a sample for this
Frank -
How can I transfer songs from one computers iTunes library to another library?
How can I transfer songs from one computers iTunes library to another computers iTunes library?
See Here
iTunes: How to move your music to a new computer -
How can i authorize music from one apple id acount to another
how can i authorize music from one apple id acount to another? My IPhone 5 wont play my songs that were purches from my old apple id account
timss22 wrote:
how can i authorize music from one apple id acount to another?
You cannot. iTunes purchases remain on the iTunes account they were purchased with.
My IPhone 5 wont play my songs that were purches from my old apple id account
So just upload them from iTunes.
You have mulitple AppleIDs?
Why? -
How do I copy and paste from one page or file to another page or file - on the same screen?
How do I copy and paste from one page or file to another - on the same screen?
Open both of your images in the Editor. Click on the image you want to copy and press Ctrtl+A (select all) followed by Ctrl+C (copy) then click the tab for your other image and press Ctrl+V (paste)
Alternatively click on your background image then simply drag the second image from the photo/project bin and drop it into the main editor workspace on top of the background image. Use the move tool to position and the corner handles of the bounding box to scale. -
How do I move all my files from one User Profile (account) into another?
I needed to create a new account and want all of my files accessible in the new one.ok, what you're learning right now is 101 unix, which is good. Unix is a good thing
now: the way unix works, and macos (which uses unix underneath) the files and folders work like a hierarchy.
the start of that tree is /
so, if you were to do:
cd /
(cd means change directory)
it will bring you at the highest branch of the file system.
cd /Users
will bring you to where all the users are.
to see whats in /Users you can use your friend ls command
ls means list files/directories
so:
cd /Users
ls -la
(the -la here means show all (even hidden) and long format (very verbose)) this flag is very optional.
you will see
fred
user2
for example.
if you want to see the desktop of user2 you would change directory to it then list the files.
for example:
cd /Users/user2/Desktop
Note that the files and directory are case sensitive, so, desktop is NOT the same as Desktop, or DESKTOP
ls -la
you should then be able to see everything in users2 desktop
you could have done as well the same thing in smaller steps, for example:
cd /
cd Users
cd user2
cd Desktop
this is the equivalent of cd /Users/user2/Desktop
So, for your file, i don't know where it was, but know that if you log in as user2, it will directly put you in
/Users/user2
which most likely the file you had created from the other user was in /Users/user1
if you copied all the files from /Users/original_user to /Users/secondUser
most likely yes, all your mail, bookmarks etc would be copied over.
so in your case.
sudo chown -R seconduser:staff /Users/secondUser
should work
Remember that if you start a path with the character / it means start from the root of the file system, at the highest top you can ever get.
so
cd /Users/fred
is not the same as
cd Users/fred
unless you were in / already
i know it may be confusing at first but it's actually very logical if you play with it.
to simplify, think of it that / means C:\ on windows
you can't go any higher than C:\ (in a way)
if you're unsure which directory you're currently in, you can always type:
pwd
it will tell you where you are.
for example:
cd /
pwd
this shows /
cd Users
pwd
this now shows /Users
cd /System/Library
pwd will show /System/Library
cd /
cd /Users
cd fred
cd Library
pwd will show /Users/fred/Library
unix can look very scary but it's actually vital and very necessary to do tasks sometimes that would take for ever to do via the windows. This is good learning.
so for the myfile you had created, i can't tell you where it is, at the time you created, if you can do a pwd command you'll know the path,
ls -la (this shows all the files where you are)
if you see myfile in the list
do a pwd
whatever is return, the real location of the file would be:
whatever pwd returned / myfile
I hope that makes sense. -
Please help. I have transferred my iTunes library from one external hard drive to another plus added additional music now I have duplicates of the same music in many albums. How do I delete the duplicates without going through them one by one which would take forever? I understand how to get the "show exact duplicate" feature up on iTunes but, because they were added to the library on the exact day I can't seperate them I'm that manner. So each duplicate is right next to eachother in the exact duplicate screen.
My DeDuper script is designed to help clean up. See this thread for background.
tt2 -
How do I move my iphoto library from one external hard drive to another?
how do I move my iphoto library from one external hard drive to another?
Drag it there in the Finder and then launch iPhoto with the Option key held down. Point it to the new instance of the library.
(58012) -
How can I transfer albums from one of my accounts to another? My new account (Apple ID) email address is no longer available to me since I lost my job.
OK, now I have another problem. I typed in my email address wrong. Instead of optonline.net I typed in optimum.net. Though I can google my email address and it defaults to the optonline.net the email to confirm the change is not showing up. I know, real stupid. Now I cannot log onto either address as the original is not changed and the email has not showed so am I done here? I appreciate your help!!! Carl
Maybe you are looking for
-
Runtime error in transaction MFBF
Hi, In MFBF, am giving the following details: Material No. Plant Storage location Batch After this when i click on select post with correction, select lines and delete them all and save then its giving a dump saying , No status object available for I
-
In reciever jdbc adapter config sending data to multiple tables
Hi Masters, Can u help me with examples step by step procedure of sending data to multiple tables in reciever jdbc adapter .. configuration.... thanks in advance, jp.
-
Synchronous communication between BPEL and B2B
Hello All - I have below requirement. Can any one suggest good approach to this 1. Send a XML message from BPEL -- > Host Trading Partner -- > Target Trading Partner (WebService) 2. Receive XML response (Synchronous response) from Target Trading part
-
Slideshow on Secondary Monitor - Lightroom 4.4
Hi, I started a new post as i couldn't find a solution on the 2 previous posts from people who had similar issues. Basically, when i click to play slideshow it will only play on my primary monitor, not the secondary display (my TV via HDMI). I have s
-
Where is price information for livecycle PDF Generator module
for convert pdf to doc programmatically and i only use PDF Export functionality for that