How to handle the F5 browser refresh
Hi All,
This may be a very silly question, but I am stuck on this and
can not find a suitable solution, please advise.
I have an application where the first screen is a login
screen, when a user logs in he is redirected to a diferent view
based on the users login permissions etc. The problem is whenever
we hit the F5 browser button the wrapper file is refreshed and the
embeddd swf (flex app) is reloaded reinitializing all the
application variables etc. This takes the screen view back to the
login screen although the user is logged.
How can I handle this?
I tried using shared objects but this would meen storing
every value in shared object. Is there any easier way out? Any
configuration change etc.
Please help.
Regards,
Paromita
You can handle security and authentication in your J2EE
server with the web.xml configuration file under the exploded WAR
directory \flex.war\WEB-INF if you use Flex Data Services,
LiveCycle Data Services ES or Blaze DS.
You specify what the login and error pages are. When you try
and access the Flex wrapper in the browser, you will be redirected
to the login page if you are not already logged in. If you are
already logged in, there will be no redirection.
Here is a sample <login-config> node in web.xml:
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/jblogin.jsp</form-login-page>
<form-error-page>/jblogin-error.jsp</form-error-page>
</form-login-config>
</login-config>
Similar Messages
-
How to handle Back button, Browser Refresh problem at server side.
Hi Friends,
How to handle Back button, Browser Refresh problem at server side in java?.
I am able to trace that,
request.getHeader("ACCEPT") is returning value- */*
when the browser was refreshed and returning different MIME types
for all other actions from browser.
I have doubt, will the above solution works always for all servers,browsers?.
Please also specify any solution to handle back button at server side?.
Thanks in Advance.
Venkat..I'm sorry I don't think tht's the right solution for
the above question....
We must be aware that whatever scripting methdologies
we either javascript/vbscript would executed @
client(browser) side not @ server side....
Dud If U get a good solution keep me updated.....
THANKS & REGARDS,
RAHULMy dear friend ...
the bad news is that u simply cant disable or add any listener to the back button of the browser.
When u hit the back button of ur browser the URL gets re-executed. So in case u have a JSP then the history.forward() is the best solution. [only if the page doesnt get expired similar to secure https sites]
Now dont say that user can have javascript disabled ...those users will have a pretty touch time browsing websites since javascripts r used extensively by almost all websites.
But in case u have an action.do or servlet call then u need to manage it using a session variable since the request will be sent to the server rather than client.
For multiple form submittion issues read the following article in javaworld...
Client vs. server solutions
Different solutions can solve this multiple form submission situation. Some transactional sites simply warn the user to wait for a response after submitting and not to submit twice. More sophisticated solutions involve either client scripting or server programming.
In the client-only strategy, a flag is set on the first submission, and, from then on, the submit button is disabled based on this flag. While appropriate in some situations, this strategy is more or less browser dependent and not as dependable as server solutions.
For a server-based solution, the Synchronizer Token pattern (from Core J2EE Patterns) can be applied, which requires minimal contribution from the client side. The basic idea is to set a token in a session variable before returning a transactional page to the client. This page carries the token inside a hidden field. Upon submission, request processing first tests for the presence of a valid token in the request parameter by comparing it with the one registered in the session. If the token is valid, processing can continue normally, otherwise an alternate course of action is taken. After testing, the token resets to null to prevent subsequent submissions until a new token is saved in the session, which must be done at the appropriate time based on the desired application flow of control.
for more details refer :
http://www.javaworld.com/javaworld/javatips/jw-javatip136.html
Hope u got the idea.
FYI I have been using both these ideas in my credit card payment gateway project. This concept has worked really well. -
How to handle the OK button of the parameters prompt of a crystal report
Hi,
how to handle the OK button of the parameters prompt of a crystal report in vba.NET?
I want to use the parameter prompt from the crystal report itself and I want to know when the report is ready. I need to export programatically by sending email to a list of employees after the parameters has been set. The emails I send depends on the results of the report.
Im using a CrystalReportViewer control in VS2010 and Crystal Report for VS2010 v13.0.1.220.Right. But the parameter screen is driven by the viewer. Unless you create your own parameter screen and pass the parameters to the report via code.
Another thing I am not sure about:
"Then by code I want to read all the employees id from the report and send email to them with specified pages of the report. (1 page per employee)"
How do you plan on reading the employee ID from the report? I am not aware of any API that will read a value in a report so that you can then decide what page to send to whom.
I think you're approaching this kinda backwards. A question to ask is; can you do what you are trying to do in code in the CR designer? If not, using APIs will not work either. I suspect your approach should be a report that uses an employee filter. Run the report for employee x, get the report populated with the data for that employee and email it. Repeat for employee x1, employee x2, etc.
- Ludek -
How to handle the control records in case of file to idoc scenario.
Hi All,
can you please clarify me how to handle the control records in case of file to idoc scenario.Hi,
In File to Idoc scenario even though you selected apply control record values from payload and you are not getting those correct values which you have provided in the mapping.
Also check the checkboxes Take sender from payload and Take receiver from payload along with the Apply control record values from payload checkbox
Regards
Seshagiri -
How to handle the different pricing conditions changes in BI.
Dear Friends
can any one send me Regarding
How to handle the different pricing conditions changes in BI.
Thanks & Regards
RamanaHi,
Take a look at the 0sd_o06 ODS and 2lis_13_vdkon datasource for sales billing conditions.
http://help.sap.com/saphelp_nw70/helpdata/EN/36/8188408bc0bb4de10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/7f/0f8c4037fba62be10000000a1550b0/frameset.htm
Regards. -
How to handle the stale cheques in EBRS
Dear Guru's
Can any bady explain me how to handle the stale cheque cases in EBRS, and what are the possible transaction codes using for that.
Any help can be greatly appreciated.
Regards,
kishroeHi
any bady know about this plz respond.
Thanks in Advance
kishore -
How to handle the extended vo in the extended controller
Hi,
I want to know how to handle the extended vo attributes in the extended controller.
I extended CompetenceElementsVO as 'CompetenceElementsEx' with 2 transient attributes called col1 and col2.
Here i want to pass value according based on some condition. for this i want to know how to handle these attributes.
I tried by using the extended vo name in the controller, if i use means then it is throwing error after the extended controller is implemented.
Same time if i try to refer this attributes from the original vo definition, jdev itself showing error.
please tell me how to handle this?
Thanks in advance,
SANHi San,
You have to extend the controller where your region is associated with,
And in that controller you get the AM(if there is more than one AM and your VO is associated with a child AM, first you have to get your required AM) and then
get the ViewObject(standard).
Then you should be able to get your newly added attributes.
Please find the below sample code to get the AM handle and VO from there, update the code according to your requirement,
Get all the VOs under the Root AM
writeLog(pageContext, "Room AM"+ pageContext.getRootApplicationModule());
String[] rootViewNames = pageContext.getRootApplicationModule().getViewObjectNames();
/* writeLog(pageContext," Length of the VOs from Rootm AM "+rootViewNames.length);
for (int j =0 ;j<rootViewNames.length ;j++ )
writeLog(pageContext,j +" Value "+rootViewNames[j]);
// Get requested AM from Root am
public OAApplicationModule getRequestedAM(OAPageContext pageContext, String requestedAMName)
writeLog(pageContext,"Requested AM called to check the AM "+requestedAMName );
String amName = "";
String objectivesAMName = requestedAMName;//"ObjectivesAM";
String nestedAMArray[] = pageContext.getRootApplicationModule().getApplicationModuleNames();
pageContext.writeDiagnostics(this,"Root AM=>"+pageContext.getRootApplicationModule().getName() + " Child AMs=>"+ nestedAMArray.length,1);
OAApplicationModule currentAM = null;
currentAM = (OAApplicationModule)pageContext.getRootApplicationModule();
for(int i = 0; i < nestedAMArray.length; i++)
amName = nestedAMArray;
pageContext.writeDiagnostics(this,"Nested AM Name=>"+amName + "and amName.indexOf(objectivesAMName) "+amName.indexOf(objectivesAMName),1);
currentAM = (OAApplicationModule)pageContext.getRootApplicationModule().findApplicationModule(amName);
//Get the view names
String[] viewNames = currentAM.getViewObjectNames();
for (int i =0 ;i<viewNames.length ;i++ )
writeLog(pageContext,i +" Value "+viewNames[i]);
if(!(amName.indexOf(objectivesAMName)==-1))
pageContext.writeDiagnostics(this,"Found Handle to My Nested AM " + amName ,1);
break;
return currentAM;
Get the VO from the AM
OAViewObject objAssessmentVO = (OAViewObject)yourAM.findViewObject("yourVO");
Thanks.
With Regards,
Kali.
OSSi. -
How to handle the call transaction in method of a custom business object
Hello all,
There is a custom report " RPTCORAPP" for approving leaves . As per my requirement i have develop a copy of leave workflow and for approval process i have call "RPTCORAPP" in Custom method of custom object. i have made a transaction for this custom report for approving attendances. I am calling this method though call transaction statement within method.
Problem: while approving the attendance workitem is not disappearing from the portal. Problem is due to call transaction statement.
once workitem come to the user, user click on it. control goes to the report, which display all the leave to approve on
the portal.
If after approving/ rejecting attendance user close the screen.workflow remain in the "process" status.Control wont come back after call transaction statement in the method.
At the same time if user clicks on back button inspite of closing the screen. it is working fine. workitem disappears from the portal.
How to handle the scenarion. if after approving/rejecting, i want the control to come back to the NEXT STATEMENT after call transactionstatement in my method.
Please help it out........:)Hi swami,
thanks for reply. but i am not using BDC in my method. iam just calling a custom transaction thriugh statement
Call transaction 'ZHR_APPROVE_CLINOUT'. This transaction directly run the report RPTCORAPP and display all the request. -
How to handle the table control in bapi?
how to handle the table control in bapi? example va01.
i pass multiple line item what is the procedure?
header detail same .
eample ship to party
sale to party.
line item mulptiple
10 mat1
2o mat2
30 mat3.
in bapi we can pass sinle line item.
any way to handle multiple line item pass through the bapi.
Message was edited by:
Karthikeyan PanduranganBAPI is not going through the screen flow logic so you need not to worry about the table control. Just check in the BAPi there must be one table parameter for line items just pass one int table with your data to that table parameter it will automatically update the tables.
Regards
shiba dutta -
How to handle the #error in ssrs expression
hi
Please any one help me to resolve this #error ,
I have a calculated filed in that expression i given a if condition like below
data of column is coming like this 0 , 0.0
=IIF(Fields!Column1.Value=0,0,((Fields!Column2.Value - Fields!Column1.Value)/( Fields!Column1.Value)))
how to handle the #error
Please let me know any oneHi deepuk23,
According to your description, when you use the IIF() function in the report you got some error,right?
The issue can be caused by the column1 and column2 have different datatype, I assumed that one is integer and another is float, when the Column1 is 0 or null, because IIF() function always evaluates both the true part and the false part, even
though it returns only one of them, it will throw out the error.
To resolve the issue, you should use a nested IIF() function to avoid the zero-divisor in any rate like below:
=IIF(Fields!Column1.Value=0,0,((Fields!Column2.Value - Fields!Column1.Value)/(IIF(Fields!Column1.Value=0,1,Fields!Column1.Value))))
For more information, please refer to this article:
FAQ: Why does the “Attempted to divide by zero” error still happen?
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
How to handle the errors in transformations
Hi
I am using SOA, JDev 10.1.3.3.
How to handle the exceptions in transformations.
If any thing goes wrong in transformation then how to handle that situation.
I am not getting any kind of instances like errored out..
Please help me out
Regards
PavankumarI think your issue is that your process is going into manual recovery.
In the console click on the tab BPEL processes. There is a link on the left for manual recovery. Do you see your processes there?
What happens if you put your transformation into a scope. The in that scope you have a catch All. In this catch All routine just do a terminate. This will error your process but you should see it appear in the console.
cheers
James -
How to handle the multiple line items in the Inbound idoc FM
Hi ,
Can any body give me how to handle the multiple line item in the idoc when we reprocessing it from workitem....
Thanks in Advance,,,,
Regards,
BharaniHi ,
Can any body give me how to handle the multiple line item in the idoc when we reprocessing it from workitem....
Thanks in Advance,,,,
Regards,
Bharani -
How to setup the Safari (browser) to be able play all the video on youtube?
How to setup the Safari (browser) to able play all the video on youtube? On Screen: Your browser does not currently recognize any of the video formats available. Thanks.
I got the answer and solution by installing the Flash Player for Mac OS.
Thank you Carolyn Samit.
Carolyn Samit San Francisco Bay Area
Re: Video not playing on youtube?
Jan 28, 2012 11:03 PM (in response to hkrache)
Most YouTube content requires the Flash plugin which is unrelated to either iPhone or IMovie.
Uninstall your current copy of Flash then reinstall new > Troubleshoot Flash Player | Mac OS
Relaunch your browser. Empty the browser cache. If you use Safari, go to the Safari menu bar click Safari > Empty Cache
Try a video. -
How to handle the 500 Internal Server Error + ADF
Hi,
How to handle the 500 Internal error ADF application? I tried with giving the error page in web.xml but it does not work
Please advicei'm not sure if this is related, but we also have the following in the web.xml file
<filter-mapping>
<filter-name>adfFaces</filter-name>
<url-pattern>*.jsp</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<url-pattern>*.jspx</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping> -
How to detect the *Acrobat Browser Plug-in version* installed on a users system, on Firefox, Safari, Opera, etc?
Or one script for detecting Plug-in version for major browsers. Need full example code.Wrote an article on this with code samples (Javascript + HTML) - basically there are differences between IE and other browsers. Chrome natively comes with the Chrome PDF Viewer so I've incorporated that in my detection script.
The script detects the browser type, and the installed acrobat version...
Have a look here:
Detect the Adobe Reader Plugin
Maybe you are looking for
-
Questions about Firewall, DHCP and other things
What I have; Linksys WRT54GSv4 Up to 5 dynamic IP addresses, from my ISP Fiber connection What I want; WLAN To use the 'real' dynamic IP addresses (no LAN of my own) Hardware Firewall (preferably from the Linksys) Is this even possible? I can't seem
-
Relationship Of cost Center & Profit Center
Hello Can anybody explain what could be cons of having relations of 1:N between profit center & Cost center Regards
-
Full Page view for PDF and TIF attachments
Hello Can any one help please, I upgraded my software for my device and no longer have the options for "full page view" to see detailed PDF and TIF attachments. This is a big problem for me please help. Thanks in advance. Message Edited by pltcare on
-
[Solved] vDrift compile problem
Tried to install vdrift from AUR but the pkgbuild is out of date. But I'd really like to get it going (I like this program) and thought someone just might know what to do. I think its missing a dependency or two and fails on the checks: You do not
-
Downloading dreamweaver only from design premium package CS5...
I just need Dreamweaver redownloaded... No longer have the CDs... I tried downloading Dreamweaver only but it says the registration number is incorrect... I don't want to download the entire package.. the rest works fine... help!